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/DynamicVisitorBase.hpp>
Public Member Functions | |
virtual void | operator() (const std::string &name, 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 14 of file DynamicVisitorBase.hpp.
|
nodiscardpure virtual |
Acceptance function for the visitor.
id | the std::type_index associated to the type to visit |
Implemented in Ra::Core::DynamicVisitor.
|
pure virtual |
Execute a visiting operator on accepted types.
Visiting the association is done by calling the visit operator associated with the underlying type of the variable in.
name | Varible name in the visited variable set. |
in | The variable value to process |
userParam | The optional user define parameter to forward to type associated functor. |
Implemented in Ra::Core::DynamicVisitor.