PCL
|
A wrapper class that applies a unary predicate to pointers to objects. More...
#include <Indirect.h>
Public Member Functions | |
IndirectUnaryPredicate (const IndirectUnaryPredicate< TPtr, UP > &)=default | |
IndirectUnaryPredicate (UP p) | |
bool | operator() (TPtr ptr) const |
The UP template argument represents a unary predicate type of the form:
bool (*UP)( T )
The TPtr template argument represents a pointer to UP's argument type. TPtr is also the argument type of IndirectUnaryPredicate::operator ()().
IndirectUnaryPredicate can be used as UP, but acting on pointers to objects of type T.
Definition at line 184 of file Indirect.h.
|
inline |
Constructs an IndirectUnaryFunction to wrap a unary predicate p.
Definition at line 191 of file Indirect.h.
|
default |
Copy constructor.
|
inline |
Function call operator. Applies the wrapped unary predicate to *ptr and returns its resulting value.
If ptr is nullptr, the predicate is not invoked and false is returned.
Definition at line 207 of file Indirect.h.