Radium Engine
1.5.20
|
Base class for dynamically configurable visitors Users can implement this interface to build custom visitors without any restriction. To ease visitor configuration, see class DynamicVisitor. More...
#include <Core/Containers/VariableSet.hpp>
Public Member Functions | |
virtual void | operator() (std::any &&in, std::any &&userParam) const =0 |
Execute a visiting operator on accepted types. | |
virtual bool | accept (const std::type_index &id) const =0 |
Acceptance function for the visitor. | |
Base class for dynamically configurable visitors Users can implement this interface to build custom visitors without any restriction. To ease visitor configuration, see class DynamicVisitor.
Definition at line 281 of file VariableSet.hpp.
|
nodiscardpure virtual |
Acceptance function for the visitor.
id | the std::type_index associated to the type to visit |
Implemented in Ra::Core::VariableSet::DynamicVisitor.
|
pure virtual |
Execute a visiting operator on accepted types.
in | The variable to process |
userParam | The optional user define parameter to forward to type associated functor The variable in contains a wrapping of the association name->value whose visit is accepted. Visiting the association is done by calling the visit operator associated with the underlying type of the variable in. |
Implemented in Ra::Core::VariableSet::DynamicVisitor.