ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
Defines the basic cell updater of the space hash. More...
#include <space_hash.h>
Public Member Functions | |
virtual | ~CSpaceHashUpdater () |
Class destructor. | |
virtual void | operator() (CAbstractSpaceHash< ENTITY > &c_space_hash, ENTITY &c_entity)=0 |
Updates the necessary cells of a space hash. |
Defines the basic cell updater of the space hash.
If you want to store your entities in a space hash, you need to implement this interface. The aim of this class is to call CAbstractSpaceHash::UpdateCell() for each cell in which the entity must be contained.
Entity | The type of entity held by the corresponding space hash |
Definition at line 269 of file space_hash.h.
virtual argos::CSpaceHashUpdater< ENTITY >::~CSpaceHashUpdater | ( | ) | [inline, virtual] |
Class destructor.
Definition at line 276 of file space_hash.h.
virtual void argos::CSpaceHashUpdater< ENTITY >::operator() | ( | CAbstractSpaceHash< ENTITY > & | c_space_hash, |
ENTITY & | c_entity | ||
) | [pure virtual] |
Updates the necessary cells of a space hash.
c_space_hash | The space hash to update |
c_entity | The entity indexed by the space hash. |
Implemented in argos::CLEDEntitySpaceHashUpdater, and argos::CRABEquippedEntitySpaceHashUpdater.