FunctionalVisitor Class Reference

A Visitor which can be parametrized by std::function instead of inheriting and overriding. More...

#include <RobotAPI/libraries/armem/core/wm/visitor/FunctionalVisitor.h>

+ Inheritance diagram for FunctionalVisitor:

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
 

Detailed Description

A Visitor which can be parametrized by std::function instead of inheriting and overriding.

Definition at line 15 of file FunctionalVisitor.h.

Constructor & Destructor Documentation

◆ FunctionalVisitor()

Definition at line 12 of file FunctionalVisitor.cpp.

◆ ~FunctionalVisitor()

~FunctionalVisitor ( )
overridevirtual

Definition at line 17 of file FunctionalVisitor.cpp.

Member Function Documentation

◆ visit() [1/2]

bool visit ( const EntityInstance instance)
inlineoverridevirtual

Reimplemented from Visitor.

Definition at line 75 of file FunctionalVisitor.h.

+ Here is the call graph for this function:

◆ visit() [2/2]

bool visit ( EntityInstance instance)
inlineoverridevirtual

Reimplemented from Visitor.

Definition at line 44 of file FunctionalVisitor.h.

+ Here is the call graph for this function:

◆ visitEnter() [1/10]

bool visitEnter ( const CoreSegment coreSegment)
inlineoverridevirtual

Reimplemented from Visitor.

Definition at line 58 of file FunctionalVisitor.h.

+ Here is the call graph for this function:

◆ visitEnter() [2/10]

bool visitEnter ( const Entity entity)
inlineoverridevirtual

Reimplemented from Visitor.

Definition at line 66 of file FunctionalVisitor.h.

+ Here is the call graph for this function:

◆ visitEnter() [3/10]

bool visitEnter ( const EntitySnapshot snapshot)
inlineoverridevirtual

Reimplemented from Visitor.

Definition at line 70 of file FunctionalVisitor.h.

+ Here is the call graph for this function:

◆ visitEnter() [4/10]

bool visitEnter ( const Memory memory)
inlineoverridevirtual

Reimplemented from Visitor.

Definition at line 54 of file FunctionalVisitor.h.

+ Here is the call graph for this function:

◆ visitEnter() [5/10]

bool visitEnter ( const ProviderSegment providerSegment)
inlineoverridevirtual

Reimplemented from Visitor.

Definition at line 62 of file FunctionalVisitor.h.

+ Here is the call graph for this function:

◆ visitEnter() [6/10]

bool visitEnter ( CoreSegment coreSegment)
inlineoverridevirtual

Reimplemented from Visitor.

Definition at line 27 of file FunctionalVisitor.h.

+ Here is the call graph for this function:

◆ visitEnter() [7/10]

bool visitEnter ( Entity entity)
inlineoverridevirtual

Reimplemented from Visitor.

Definition at line 35 of file FunctionalVisitor.h.

+ Here is the call graph for this function:

◆ visitEnter() [8/10]

bool visitEnter ( EntitySnapshot snapshot)
inlineoverridevirtual

Reimplemented from Visitor.

Definition at line 39 of file FunctionalVisitor.h.

+ Here is the call graph for this function:

◆ visitEnter() [9/10]

bool visitEnter ( Memory memory)
inlineoverridevirtual

Reimplemented from Visitor.

Definition at line 23 of file FunctionalVisitor.h.

+ Here is the call graph for this function:

◆ visitEnter() [10/10]

bool visitEnter ( ProviderSegment providerSegment)
inlineoverridevirtual

Reimplemented from Visitor.

Definition at line 31 of file FunctionalVisitor.h.

+ Here is the call graph for this function:

Member Data Documentation

◆ coreSegmentConstFn

std::function<bool(const CoreSegment& coreSegment)> coreSegmentConstFn

Definition at line 85 of file FunctionalVisitor.h.

◆ coreSegmentFn

std::function<bool(CoreSegment& coreSegment)> coreSegmentFn

Definition at line 84 of file FunctionalVisitor.h.

◆ entityConstFn

std::function<bool(const Entity& entity)> entityConstFn

Definition at line 91 of file FunctionalVisitor.h.

◆ entityFn

std::function<bool(Entity& entity)> entityFn

Definition at line 90 of file FunctionalVisitor.h.

◆ instanceConstFn

std::function<bool(const EntityInstance& instance)> instanceConstFn

Definition at line 97 of file FunctionalVisitor.h.

◆ instanceFn

std::function<bool(EntityInstance& instance)> instanceFn

Definition at line 96 of file FunctionalVisitor.h.

◆ memoryConstFn

std::function<bool(const Memory& memory)> memoryConstFn

Definition at line 82 of file FunctionalVisitor.h.

◆ memoryFn

std::function<bool(Memory& memory)> memoryFn

Definition at line 81 of file FunctionalVisitor.h.

◆ providerSegmentConstFn

std::function<bool(const ProviderSegment& providerSegment)> providerSegmentConstFn

Definition at line 88 of file FunctionalVisitor.h.

◆ providerSegmentFn

std::function<bool(ProviderSegment& providerSegment)> providerSegmentFn

Definition at line 87 of file FunctionalVisitor.h.

◆ snapshotConstFn

std::function<bool(const EntitySnapshot& snapshot)> snapshotConstFn

Definition at line 94 of file FunctionalVisitor.h.

◆ snapshotFn

std::function<bool(EntitySnapshot& snapshot)> snapshotFn

Definition at line 93 of file FunctionalVisitor.h.


The documentation for this class was generated from the following files: