Implementation of the vector property class. More...
#include <vector_property.h>
Public Member Functions | |
| vector_property () | |
| Constructor. More... | |
| T & | operator[] (entity_index e) |
| Property getter. More... | |
| const T & | operator[] (entity_index e) const |
| Constant property getter. More... | |
| T & | at (entity_index e) |
| Property getter with range check. More... | |
| const T & | at (entity_index e) const |
| Constant property getter with range check. More... | |
| std::vector< T >::const_iterator | begin () const |
| Begin iterator. More... | |
| std::vector< T >::const_iterator | end () const |
| End iterator. More... | |
| T * | data () |
| const T * | data () const |
Public Member Functions inherited from ophidian::entity_system::property | |
| virtual | ~property () |
| Virtual destructor. | |
Describes an implementation of the property class that stores the properties in a vector, acessed by the entity index.
| T | Type of the property value to be stored. |
|
inline |
Default constructor. Creates an empty vector property.
|
inline |
Returns the property value for an entity after checking the range.
| entity_index | The index of the entity to get the property. |
|
inline |
Returns the property value for an entity after checking the range. Necessary when there is only a constant reference to the properties.
| entity_index | The index of the entity to get the property. |
|
inline |
Returns an iterator pointing to the beginning of the vector of properties.
|
inline |
Returns an iterator pointing to the end of the vector of properties.
|
inline |
Returns the property value for an entity.
| entity_index | The index of the entity to get the property. |
|
inline |
Returns the property value for an entity. Necessary when there is only a constant reference to the properties.
| entity_index | The index of the entity to get the property. |
1.8.6