NDK class that represents a set of entities to help performing batch operations.
More...
Inherits iterator< std::forward_iterator_tag, const EntityHandle >.
|
using | size_type = std::size_t |
|
|
| EntityList (const EntityList &entityList) |
|
| EntityList (EntityList &&entityList) noexcept |
|
void | Clear () |
| Clears the set from every entities. More...
|
|
bool | Has (const Entity *entity) const |
| Checks whether or not the EntityList contains the entity. More...
|
|
bool | Has (EntityId entity) const |
| Checks whether or not the set contains the entity by id. More...
|
|
void | Insert (Entity *entity) |
| Inserts the entity into the set. More...
|
|
void | Remove (Entity *entity) |
| Removes the entity from the set. More...
|
|
void | Reserve (std::size_t entityCount) |
| Reserves enough space to contains entityCount entities. More...
|
|
iterator | begin () const |
|
bool | empty () const |
|
iterator | end () const |
|
size_type | size () const |
|
EntityList & | operator= (const EntityList &entityList) |
|
EntityList & | operator= (EntityList &&entityList) noexcept |
|
| iterator (const iterator &it) |
|
const EntityHandle & | operator* () const |
|
iterator & | operator= (const iterator &it) |
|
iterator & | operator++ () |
|
iterator | operator++ (int) |
|
|
bool | operator== (const iterator &lhs, const iterator &rhs) |
|
bool | operator!= (const iterator &lhs, const iterator &rhs) |
|
void | swap (iterator &lhs, iterator &rhs) |
|
NDK class that represents a set of entities to help performing batch operations.
◆ Clear()
void Ndk::EntityList::Clear |
( |
| ) |
|
|
inline |
Clears the set from every entities.
◆ Has() [1/2]
bool Ndk::EntityList::Has |
( |
const Entity * |
entity | ) |
const |
|
inline |
Checks whether or not the EntityList contains the entity.
- Returns
- true If it is the case
- Parameters
-
entity | Pointer to the entity |
◆ Has() [2/2]
bool Ndk::EntityList::Has |
( |
EntityId |
entity | ) |
const |
|
inline |
Checks whether or not the set contains the entity by id.
- Returns
- true If it is the case
- Parameters
-
id | Identifier of the entity |
◆ Insert()
void Ndk::EntityList::Insert |
( |
Entity * |
entity | ) |
|
|
inline |
Inserts the entity into the set.
Marks an entity as present in this entity list, it must belongs to the same world as others entities contained in this list.
- Parameters
-
entity | Valid pointer to an entity |
◆ Remove()
void Ndk::EntityList::Remove |
( |
Entity * |
entity | ) |
|
|
inline |
Removes the entity from the set.
- Parameters
-
entity | Pointer to the entity |
- See also
- Clear
◆ Reserve()
void Ndk::EntityList::Reserve |
( |
std::size_t |
entityCount | ) |
|
|
inline |
Reserves enough space to contains entityCount entities.
- Parameters
-
entityCount | Number of entities to reserve |
The documentation for this class was generated from the following files: