|
|
Data of an entity at one point in time. More...
#include <RobotAPI/libraries/armem/core/base/EntitySnapshotBase.h>
Inheritance diagram for EntitySnapshotBase< _EntityInstanceT, _Derived >:Public Types | |
| using | EntityInstanceT = _EntityInstanceT |
Public Types inherited from MemoryContainerBase< std::vector< _EntityInstanceT >, _Derived > | |
| using | ContainerT = std::vector< _EntityInstanceT > |
| using | DerivedT = _Derived |
Public Member Functions | |
| EntityInstanceT & | addInstance () |
| EntityInstanceT & | addInstance (const EntityInstanceT &instance) |
| Add a single instance with data. More... | |
| EntityInstanceT & | addInstance (EntityInstanceT &&instance) |
| EntitySnapshotBase () | |
| EntitySnapshotBase (const EntitySnapshotBase &other)=default | |
| EntitySnapshotBase (const MemoryID &id) | |
| EntitySnapshotBase (EntitySnapshotBase &&other)=default | |
| EntitySnapshotBase (Time time, const MemoryID &parentID={}) | |
| bool | equalsDeep (const DerivedT &other) const |
| EntityInstanceT * | findInstance (const MemoryID &instanceID) |
| const EntityInstanceT * | findInstance (const MemoryID &instanceID) const |
| EntityInstanceT * | findInstance (int index) |
| const EntityInstanceT * | findInstance (int index) const |
| template<class InstanceFunctionT > | |
| bool | forEachInstance (InstanceFunctionT &&func) |
| template<class InstanceFunctionT > | |
| bool | forEachInstance (InstanceFunctionT &&func) const |
| template<class InstanceFunctionT > | |
| bool | forEachInstanceIn (const MemoryID &id, InstanceFunctionT &&func) |
| template<class InstanceFunctionT > | |
| bool | forEachInstanceIn (const MemoryID &id, InstanceFunctionT &&func) const |
| EntityInstanceT & | getInstance (const MemoryID &instanceID) |
| Get the given instance. More... | |
| const EntityInstanceT & | getInstance (const MemoryID &instanceID) const |
| EntityInstanceT & | getInstance (int index) |
| Get the given instance. More... | |
| const EntityInstanceT & | getInstance (int index) const |
| std::vector< int > | getInstanceIndices () const |
| std::string | getKeyString () const |
| bool | hasInstance (const MemoryID &instanceID) const |
| bool | hasInstance (int index) const |
| bool | hasInstances () const |
| Indicate whether this snapshot has any instances. More... | |
| EntitySnapshotBase & | operator= (const EntitySnapshotBase &other)=default |
| EntitySnapshotBase & | operator= (EntitySnapshotBase &&other)=default |
| Time & | time () |
| const Time & | time () const |
| void | update (const EntityUpdate &update) |
Public Member Functions inherited from MemoryContainerBase< std::vector< _EntityInstanceT >, _Derived > | |
| ContainerT::iterator | begin () |
| ContainerT::const_iterator | begin () const |
| void | clear () |
| bool | empty () const |
| ContainerT::iterator | end () |
| ContainerT::const_iterator | end () const |
| bool | forEachChild (ChildFunctionT &&func) |
| bool | forEachChild (ChildFunctionT &&func) const |
| MemoryContainerBase () | |
| MemoryContainerBase (const MemoryContainerBase &other)=default | |
| MemoryContainerBase (const MemoryID &id) | |
| MemoryContainerBase (MemoryContainerBase &&other)=default | |
| MemoryContainerBase & | operator= (const MemoryContainerBase &other)=default |
| MemoryContainerBase & | operator= (MemoryContainerBase &&other)=default |
| std::size_t | size () const |
Public Member Functions inherited from MemoryItem | |
| MemoryID & | id () |
| const MemoryID & | id () const |
| MemoryItem () | |
| MemoryItem (const MemoryID &id) | |
| MemoryItem (const MemoryItem &other)=default | |
| MemoryItem (MemoryItem &&other)=default | |
| MemoryItem & | operator= (const MemoryItem &other)=default |
| MemoryItem & | operator= (MemoryItem &&other)=default |
Static Public Member Functions | |
| static std::string | getLevelName () |
Additional Inherited Members | |
Protected Member Functions inherited from MemoryContainerBase< std::vector< _EntityInstanceT >, _Derived > | |
| ChildT & | _addChild (const KeyT &key, ChildArgs... childArgs) |
| void | _checkContainerName (const std::string &gottenName, const std::string &actualName, bool emptyOk=true) const |
| DerivedT & | _derived () |
| const DerivedT & | _derived () const |
| ContainerT & | container () |
| const ContainerT & | container () const |
Protected Member Functions inherited from MemoryItem | |
| ~MemoryItem () | |
Protected Attributes inherited from MemoryContainerBase< std::vector< _EntityInstanceT >, _Derived > | |
| ContainerT | _container |
Protected Attributes inherited from MemoryItem | |
| MemoryID | _id |
Data of an entity at one point in time.
Definition at line 24 of file EntitySnapshotBase.h.
| using EntityInstanceT = _EntityInstanceT |
Definition at line 33 of file EntitySnapshotBase.h.
|
inline |
Definition at line 37 of file EntitySnapshotBase.h.
|
inlineexplicit |
Definition at line 41 of file EntitySnapshotBase.h.
|
inlineexplicit |
Definition at line 46 of file EntitySnapshotBase.h.
|
default |
|
default |
|
inline |
|
inline |
Add a single instance with data.
| instance | The instance. |
| <tt>armem::error::InvalidArgument</tt> | If the given index is invalid. Must be equal to container.size() or -1 (meaning push_back) |
Definition at line 264 of file EntitySnapshotBase.h.
Here is the caller graph for this function:
|
inline |
Definition at line 270 of file EntitySnapshotBase.h.
|
inline |
Definition at line 302 of file EntitySnapshotBase.h.
|
inline |
Definition at line 136 of file EntitySnapshotBase.h.
|
inline |
Definition at line 143 of file EntitySnapshotBase.h.
|
inline |
|
inline |
Definition at line 100 of file EntitySnapshotBase.h.
|
inline |
| func | Function like void process(EntityInstanceT& instance)> |
Definition at line 178 of file EntitySnapshotBase.h.
Here is the caller graph for this function:
|
inline |
| func | Function like void process (const EntityInstanceT& instance) |
Definition at line 188 of file EntitySnapshotBase.h.
|
inline |
| func | Function like void process(EntityInstanceT& instance)> |
Definition at line 198 of file EntitySnapshotBase.h.
|
inline |
| func | Function like void process (const EntityInstanceT& instance) |
Definition at line 216 of file EntitySnapshotBase.h.
|
inline |
Get the given instance.
| index | The instance's index. |
| <tt>armem::error::MissingEntry</tt> | If the given index is invalid. |
| <tt>armem::error::InvalidMemoryID</tt> | If memory ID does not have an instance index. |
Definition at line 158 of file EntitySnapshotBase.h.
|
inline |
Definition at line 165 of file EntitySnapshotBase.h.
|
inline |
Get the given instance.
| index | The instance's index. |
| <tt>armem::error::MissingEntry</tt> | If the given index is invalid. |
Definition at line 114 of file EntitySnapshotBase.h.
Here is the caller graph for this function:
|
inline |
Definition at line 121 of file EntitySnapshotBase.h.
|
inline |
|
inline |
Definition at line 322 of file EntitySnapshotBase.h.
|
inlinestatic |
Definition at line 328 of file EntitySnapshotBase.h.
|
inline |
Definition at line 86 of file EntitySnapshotBase.h.
|
inline |
Definition at line 79 of file EntitySnapshotBase.h.
|
inline |
Indicate whether this snapshot has any instances.
Definition at line 72 of file EntitySnapshotBase.h.
|
default |
|
default |
|
inline |
|
inline |
Definition at line 65 of file EntitySnapshotBase.h.
|
inline |