BWAPI  4.1.2
An API for interacting with Starcraft: Broodwar (1.16.1)
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules
Public Member Functions | List of all members
BWAPI::BestFilter< _PARAM > Class Template Reference

Public Member Functions

template<typename _T >
 BestFilter (const _T &predicate)
 
template<typename _T >
BestFilter< _PARAM > operator&& (const _T &other) const
 
_PARAM operator() (const _PARAM &p1, const _PARAM &p2) const
 
template<typename _T >
BestFilter< _PARAM > & operator= (const _T &other)
 

Detailed Description

template<typename _PARAM>
class BWAPI::BestFilter< _PARAM >

The BestFilter is used to compare two objects with each other.

Each function object compares two of the same object and returns the most desirable one.

Note
: A function object should return one of the two given parameters, never nullptr. Both parameters being given should never be nullptr.

Constructor & Destructor Documentation

template<typename _PARAM >
template<typename _T >
BWAPI::BestFilter< _PARAM >::BestFilter ( const _T &  predicate)

Member Function Documentation

template<typename _PARAM >
template<typename _T >
BestFilter<_PARAM>& BWAPI::BestFilter< _PARAM >::operator= ( const _T &  other)
template<typename _PARAM >
template<typename _T >
BestFilter<_PARAM> BWAPI::BestFilter< _PARAM >::operator&& ( const _T &  other) const
template<typename _PARAM >
_PARAM BWAPI::BestFilter< _PARAM >::operator() ( const _PARAM &  p1,
const _PARAM &  p2 
) const