PCL
|
A wrapper class that applies a unary function to pointers to objects. More...
#include <Indirect.h>
Public Member Functions | |
IndirectUnaryFunction (IndirectUnaryFunction< TPtr, UF > &)=default | |
IndirectUnaryFunction (UF f) | |
void | operator() (TPtr ptr) const |
The UF template argument represents a unary function type of the form:
void (*UF)( T )
The TPtr template argument represents a pointer to UF's argument type. TPtr is also the argument type of IndirectUnaryFunction::operator ()().
IndirectUnaryFunction can be used as UF, but acting on pointers to objects of type T.
Definition at line 79 of file Indirect.h.
|
inline |
Constructs an IndirectUnaryFunction to wrap a unary m_function f.
Definition at line 86 of file Indirect.h.
|
default |
Copy constructor.
|
inline |
Function call operator. Applies the wrapped unary function to *ptr.
If ptr is nullptr, the function is not invoked and calling this member function has no effect.
Definition at line 102 of file Indirect.h.