|
A Visitor
which can be parametrized by std::function
instead of inheriting and overriding.
More...
#include <RobotAPI/libraries/armem/core/wm/visitor/FunctionalVisitor.h>
Public Member Functions | |
FunctionalVisitor () | |
bool | visit (const EntityInstance &instance) override |
bool | visit (EntityInstance &instance) override |
bool | visitEnter (const CoreSegment &coreSegment) override |
bool | visitEnter (const Entity &entity) override |
bool | visitEnter (const EntitySnapshot &snapshot) override |
bool | visitEnter (const Memory &memory) override |
bool | visitEnter (const ProviderSegment &providerSegment) override |
bool | visitEnter (CoreSegment &coreSegment) override |
bool | visitEnter (Entity &entity) override |
bool | visitEnter (EntitySnapshot &snapshot) override |
bool | visitEnter (Memory &memory) override |
bool | visitEnter (ProviderSegment &providerSegment) override |
virtual | ~FunctionalVisitor () override |
Public Member Functions inherited from Visitor | |
bool | applyTo (const CoreSegment &coreSegment) |
bool | applyTo (const Entity &entity) |
bool | applyTo (const EntityInstance &instance) |
bool | applyTo (const EntitySnapshot &snapshot) |
bool | applyTo (const Memory &memory) |
bool | applyTo (const ProviderSegment &providerSegment) |
bool | applyTo (CoreSegment &coreSegment) |
bool | applyTo (Entity &entity) |
bool | applyTo (EntityInstance &instance) |
bool | applyTo (EntitySnapshot &snapshot) |
bool | applyTo (Memory &memory) |
bool | applyTo (ProviderSegment &providerSegment) |
virtual bool | visitExit (const CoreSegment &coreSegment) |
virtual bool | visitExit (const Entity &entity) |
virtual bool | visitExit (const EntitySnapshot &snapshot) |
virtual bool | visitExit (const Memory &memory) |
virtual bool | visitExit (const ProviderSegment &providerSegment) |
virtual bool | visitExit (CoreSegment &coreSegment) |
virtual bool | visitExit (Entity &entity) |
virtual bool | visitExit (EntitySnapshot &snapshot) |
virtual bool | visitExit (Memory &memory) |
virtual bool | visitExit (ProviderSegment &providerSegment) |
Visitor () | |
virtual | ~Visitor () |
Public Attributes | |
std::function< bool(const CoreSegment &coreSegment)> | coreSegmentConstFn |
std::function< bool(CoreSegment &coreSegment)> | coreSegmentFn |
std::function< bool(const Entity &entity)> | entityConstFn |
std::function< bool(Entity &entity)> | entityFn |
std::function< bool(const EntityInstance &instance)> | instanceConstFn |
std::function< bool(EntityInstance &instance)> | instanceFn |
std::function< bool(const Memory &memory)> | memoryConstFn |
std::function< bool(Memory &memory)> | memoryFn |
std::function< bool(const ProviderSegment &providerSegment)> | providerSegmentConstFn |
std::function< bool(ProviderSegment &providerSegment)> | providerSegmentFn |
std::function< bool(const EntitySnapshot &snapshot)> | snapshotConstFn |
std::function< bool(EntitySnapshot &snapshot)> | snapshotFn |
A Visitor
which can be parametrized by std::function
instead of inheriting and overriding.
Definition at line 15 of file FunctionalVisitor.h.
Definition at line 12 of file FunctionalVisitor.cpp.
|
overridevirtual |
Definition at line 17 of file FunctionalVisitor.cpp.
|
inlineoverridevirtual |
Reimplemented from Visitor.
Definition at line 75 of file FunctionalVisitor.h.
|
inlineoverridevirtual |
Reimplemented from Visitor.
Definition at line 44 of file FunctionalVisitor.h.
|
inlineoverridevirtual |
Reimplemented from Visitor.
Definition at line 58 of file FunctionalVisitor.h.
|
inlineoverridevirtual |
Reimplemented from Visitor.
Definition at line 66 of file FunctionalVisitor.h.
|
inlineoverridevirtual |
Reimplemented from Visitor.
Definition at line 70 of file FunctionalVisitor.h.
|
inlineoverridevirtual |
Reimplemented from Visitor.
Definition at line 54 of file FunctionalVisitor.h.
|
inlineoverridevirtual |
Reimplemented from Visitor.
Definition at line 62 of file FunctionalVisitor.h.
|
inlineoverridevirtual |
Reimplemented from Visitor.
Definition at line 27 of file FunctionalVisitor.h.
|
inlineoverridevirtual |
Reimplemented from Visitor.
Definition at line 35 of file FunctionalVisitor.h.
|
inlineoverridevirtual |
Reimplemented from Visitor.
Definition at line 39 of file FunctionalVisitor.h.
|
inlineoverridevirtual |
Reimplemented from Visitor.
Definition at line 23 of file FunctionalVisitor.h.
|
inlineoverridevirtual |
Reimplemented from Visitor.
Definition at line 31 of file FunctionalVisitor.h.
std::function<bool(const CoreSegment& coreSegment)> coreSegmentConstFn |
Definition at line 85 of file FunctionalVisitor.h.
std::function<bool(CoreSegment& coreSegment)> coreSegmentFn |
Definition at line 84 of file FunctionalVisitor.h.
std::function<bool(const Entity& entity)> entityConstFn |
Definition at line 91 of file FunctionalVisitor.h.
std::function<bool(Entity& entity)> entityFn |
Definition at line 90 of file FunctionalVisitor.h.
std::function<bool(const EntityInstance& instance)> instanceConstFn |
Definition at line 97 of file FunctionalVisitor.h.
std::function<bool(EntityInstance& instance)> instanceFn |
Definition at line 96 of file FunctionalVisitor.h.
Definition at line 82 of file FunctionalVisitor.h.
Definition at line 81 of file FunctionalVisitor.h.
std::function<bool(const ProviderSegment& providerSegment)> providerSegmentConstFn |
Definition at line 88 of file FunctionalVisitor.h.
std::function<bool(ProviderSegment& providerSegment)> providerSegmentFn |
Definition at line 87 of file FunctionalVisitor.h.
std::function<bool(const EntitySnapshot& snapshot)> snapshotConstFn |
Definition at line 94 of file FunctionalVisitor.h.
std::function<bool(EntitySnapshot& snapshot)> snapshotFn |
Definition at line 93 of file FunctionalVisitor.h.