BWAPI 4.2.0 An API for interacting with Starcraft: Broodwar (1.16.1) |
Public Member Functions | |
template<typename T > | |
CompareFilter (const T &predicate) | |
bool | isValid () const |
UnaryFilter< PType > | operator!= (const RType &cmp) const |
template<typename T > | |
CompareFilter< PType, RType, std::function< RType(PType)> > | operator% (const T &other) const |
template<typename T > | |
CompareFilter< PType, RType, std::function< RType(PType)> > | operator& (const T &other) const |
CompareFilter< PType, RType, std::function< RType(PType)> > | operator& (RType other) const |
RType | operator() (PType u) const |
CompareFilter< PType, RType, std::function< RType(PType)> > | operator* (RType other) const |
template<typename T > | |
CompareFilter< PType, RType, std::function< RType(PType)> > | operator* (const T &other) const |
template<typename T > | |
CompareFilter< PType, RType, std::function< RType(PType)> > | operator+ (const T &other) const |
CompareFilter< PType, RType, std::function< RType(PType)> > | operator+ (RType other) const |
template<typename T > | |
CompareFilter< PType, RType, std::function< RType(PType)> > | operator- (const T &other) const |
CompareFilter< PType, RType, std::function< RType(PType)> > | operator- (RType other) const |
template<typename T > | |
CompareFilter< PType, RType, std::function< RType(PType)> > | operator/ (const T &other) const |
UnaryFilter< PType > | operator< (const RType &cmp) const |
UnaryFilter< PType > | operator<= (const RType &cmp) const |
UnaryFilter< PType > | operator== (const RType &cmp) const |
UnaryFilter< PType > | operator> (const RType &cmp) const |
UnaryFilter< PType > | operator>= (const RType &cmp) const |
template<typename T > | |
CompareFilter< PType, RType, std::function< RType(PType)> > | operator^ (const T &other) const |
CompareFilter< PType, RType, std::function< RType(PType)> > | operator^ (RType other) const |
CompareFilter< PType, RType, std::function< RType(PType)> > | operator| (RType other) const |
template<typename T > | |
CompareFilter< PType, RType, std::function< RType(PType)> > | operator| (const T &other) const |
The CompareFilter is a container in which a stored function predicate returns a value.
Arithmetic and bitwise operators will return a new CompareFilter that applies the operation to the result of the original functor. If any relational operators are used, then it creates a UnaryFilter that returns the result of the operation.
PType | The parameter type, which is the type passed into the functor. |
RType | (optional) The functor's return type. It is int by default. |
Container | (optional) Storage container for the function predicate. It is std::function<RType(PType)> by default. |
References std::numeric_limits::max().