|
lsst.afw
15.0-33-g5c41f601f+4
|
A functor-wrapper used in the implementation of SchemaMapper::forEach. More...
#include <SchemaMapperImpl.h>
Public Member Functions | |
| template<typename T > | |
| void | operator() (std::pair< Key< T >, Key< T > > const &pair) const |
| Call the wrapped function. More... | |
| void | operator() (KeyPairVariant const &v) const |
| Invoke the visitation. More... | |
| template<typename T > | |
| VisitorWrapper (T &&func) | |
| Construct the wrappper. More... | |
A functor-wrapper used in the implementation of SchemaMapper::forEach.
See SchemaImpl::VisitorWrapper for discussion of the motivation.
Definition at line 55 of file SchemaMapperImpl.h.
|
inlineexplicit |
Construct the wrappper.
Definition at line 75 of file SchemaMapperImpl.h.
|
inline |
Call the wrapped function.
Definition at line 58 of file SchemaMapperImpl.h.
|
inline |
Invoke the visitation.
The call to boost::apply_visitor will call the appropriate template of operator().
This overload allows a VisitorWrapper to be applied directly on a variant object with function-call syntax, allowing us to use it on our vector of variants with std::for_each and other STL algorithms.
Definition at line 71 of file SchemaMapperImpl.h.
1.8.13