EntitySelector Class Reference

#include <RobotAPI/libraries/armem/client/query/selectors.h>

+ Inheritance diagram for EntitySelector:

Public Member Functions

EntitySelectorall () override
 
 EntitySelector ()=default
 
SnapshotSelectorsnapshots ()
 Start specifying entity snapshots. More...
 
SnapshotSelectorsnapshots (const SnapshotSelector &selector)
 
template<class ... Ts>
SnapshotSelectorsnapshots (Ts... args)
 
EntitySelectorwithID (const MemoryID &id) override
 
EntitySelectorwithName (const std::string &name) override
 
EntitySelectorwithNamesMatching (const std::string &regex) override
 
- Public Member Functions inherited from InnerSelectorOps< EntitySelector, armem::query::data::ProviderSegmentQueryPtr, SnapshotSelector >
virtual std::vector< armem::query::data::ProviderSegmentQueryPtr > buildQueries () const
 
 InnerSelectorOps ()=default
 
- Public Member Functions inherited from ParentSelectorOps< EntitySelector, SnapshotSelector >
virtual ~ParentSelectorOps ()=default
 
- Public Member Functions inherited from ChildSelectorOps< EntitySelector, armem::query::data::ProviderSegmentQueryPtr >
void addQueries (const std::vector< IceInternal::Handle< QueryT >> &queries)
 
void addQuery (const IceInternal::Handle< QueryT > &query)
 
 ChildSelectorOps ()=default
 
virtual ~ChildSelectorOps ()=default
 
- Public Member Functions inherited from NameSelectorOps< EntitySelector >
 NameSelectorOps ()=default
 
virtual EntitySelectorwithNames (const std::vector< std::string > &names)
 
EntitySelectorwithNames (const StringContainerT &names)
 
EntitySelectorwithNames (IteratorT begin, IteratorT end)
 
virtual EntitySelectorwithNamesContaining (const std::string &substring)
 
virtual EntitySelectorwithNamesEndingWith (const std::string &suffix)
 
virtual EntitySelectorwithNamesStartingWith (const std::string &prefix)
 
virtual ~NameSelectorOps ()=default
 

Protected Member Functions

void _setChildQueries (armem::query::data::ProviderSegmentQueryPtr &query, const armem::query::data::EntityQuerySeq &childQueries) const override
 
- Protected Member Functions inherited from InnerSelectorOps< EntitySelector, armem::query::data::ProviderSegmentQueryPtr, SnapshotSelector >
virtual void _setChildQueries (armem::query::data::ProviderSegmentQueryPtr &query, const std::vector< typename SnapshotSelector ::armem::query::data::ProviderSegmentQueryPtr > &childQueries) const=0
 
- Protected Member Functions inherited from ParentSelectorOps< EntitySelector, SnapshotSelector >
ChildT_addChild ()
 
ChildT_addChild (const ChildT &child)
 
ChildT_addChild (Ts... args)
 
- Protected Member Functions inherited from ChildSelectorOps< EntitySelector, armem::query::data::ProviderSegmentQueryPtr >
DerivedQueryT & _addQuery ()
 
void _apply (T arg)
 
void _apply (T arg, Ts... args)
 

Additional Inherited Members

- Public Types inherited from ParentSelectorOps< EntitySelector, SnapshotSelector >
using ChildT = SnapshotSelector
 
using DerivedT = EntitySelector
 
- Public Types inherited from ChildSelectorOps< EntitySelector, armem::query::data::ProviderSegmentQueryPtr >
using DerivedT = EntitySelector
 
using QueryT = armem::query::data::ProviderSegmentQueryPtr
 
- Protected Attributes inherited from ParentSelectorOps< EntitySelector, SnapshotSelector >
std::vector< ChildT_children
 
- Protected Attributes inherited from ChildSelectorOps< EntitySelector, armem::query::data::ProviderSegmentQueryPtr >
std::vector< QueryT_queries
 

Detailed Description

Definition at line 42 of file selectors.h.

Constructor & Destructor Documentation

◆ EntitySelector()

EntitySelector ( )
default

Member Function Documentation

◆ _setChildQueries()

void _setChildQueries ( armem::query::data::ProviderSegmentQueryPtr &  query,
const armem::query::data::EntityQuerySeq &  childQueries 
) const
overrideprotected

Definition at line 117 of file selectors.cpp.

◆ all()

EntitySelector & all ( )
overridevirtual

Implements ChildSelectorOps< EntitySelector, armem::query::data::ProviderSegmentQueryPtr >.

Definition at line 96 of file selectors.cpp.

+ Here is the caller graph for this function:

◆ snapshots() [1/3]

SnapshotSelector & snapshots ( )

Start specifying entity snapshots.

Definition at line 86 of file selectors.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ snapshots() [2/3]

SnapshotSelector& snapshots ( const SnapshotSelector selector)

◆ snapshots() [3/3]

SnapshotSelector& snapshots ( Ts...  args)
inline

Definition at line 56 of file selectors.h.

+ Here is the call graph for this function:

◆ withID()

EntitySelector& withID ( const MemoryID id)
inlineoverridevirtual

Implements ChildSelectorOps< EntitySelector, armem::query::data::ProviderSegmentQueryPtr >.

Definition at line 63 of file selectors.h.

+ Here is the call graph for this function:

◆ withName()

EntitySelector & withName ( const std::string &  name)
overridevirtual

Implements NameSelectorOps< EntitySelector >.

Definition at line 103 of file selectors.cpp.

+ Here is the caller graph for this function:

◆ withNamesMatching()

EntitySelector & withNamesMatching ( const std::string &  regex)
overridevirtual

Implements NameSelectorOps< EntitySelector >.

Definition at line 110 of file selectors.cpp.


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