lsst.afw
20.0.0-13-gad96b2d30+614f89f815
|
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 54 of file SchemaMapperImpl.h.
|
inlineexplicit |
Construct the wrappper.
Definition at line 74 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 70 of file SchemaMapperImpl.h.
|
inline |
Call the wrapped function.
Definition at line 57 of file SchemaMapperImpl.h.