#include <eosim/utils/entityqueuelifo.hpp>
Inheritance diagram for eosim::utils::EntityQueueLifo:
Public Member Functions | |
EntityQueueLifo () | |
The constructor creates an empty EntityQueueLifo. | |
~EntityQueueLifo () | |
The destructor of EntityQueueLifo. It assumed that all entities in a simulation are created dynamically, so when an EntityQueueLifo is destroyed it deletes every entity stored. | |
void | push (core::Entity *ent) |
This operation adds ent at the begining of queue. | |
core::Entity * | pop () |
This operation returns and remove the first entity in the queue. | |
void | remove (unsigned int i) |
This operation removes the entity whose position is i. | |
bool | empty () |
This operation returns 1 if the queue is empty. | |
core::Entity * | operator[] (unsigned int i) |
This operation returns the entity whose position is i. | |
unsigned int | size () |
This operation returns the size of the queue. |
Entity * EntityQueueLifo::pop | ( | ) | [virtual] |
This operation returns and remove the first entity in the queue.
Implements eosim::utils::EntityQueue.
void EntityQueueLifo::remove | ( | unsigned int | i | ) | [virtual] |
This operation removes the entity whose position is i.
Implements eosim::utils::EntityQueue.
Entity * EntityQueueLifo::operator[] | ( | unsigned int | i | ) | [virtual] |
This operation returns the entity whose position is i.
Implements eosim::utils::EntityQueue.