The VariantVisitorAdaptor class adapts an AbstractVisitor implementation to the boost::static_visitor interface, so it can be used to visit boost::variant objects.
More...
#include <variantvisitoradaptor.h>
The VariantVisitorAdaptor class adapts an AbstractVisitor implementation to the boost::static_visitor interface, so it can be used to visit boost::variant objects.
Constructs a VariantVisitorAdaptor object with the given visitor.
- Parameters
-
[in] | visitor | The visitor object to which the visit calls will be forwarded. |
template<typename T >
void jmespath::ast::VariantVisitorAdaptor::operator() |
( |
const T & |
variant | ) |
const |
|
inline |
Calls the appropriate visit method of the visitor object with the address of the variant object.
- Parameters
-
[in] | variant | The object that the visitor should visit. |
void jmespath::ast::VariantVisitorAdaptor::operator() |
( |
const boost::blank & |
| ) |
const |
|
inline |
Does nothing, defined to ignore empty variants and to avoid calling the visitor object with a blank value.
The visitor object to which the visit calls will be forwarded.
The documentation for this class was generated from the following files: