BWAPI  4.2.0
An API for interacting with Starcraft: Broodwar (1.16.1)
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.

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

Constructor & Destructor Documentation

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

Member Function Documentation

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