A vector that can be used as a resource. More...
Public Member Functions | |
ResourceVector (unsigned int size) | |
Constructor. | |
~ResourceVector () | |
Destructor. | |
const T & | operator[] (unsigned int i) const |
Returns the i-th element (const version) | |
T & | operator[] (unsigned int i) |
Returns the i-th element. | |
unsigned int | size () const |
Returns the size of the vector. | |
Protected Attributes | |
const unsigned int | m_size |
The number of elements. | |
T *const | m_vector |
The vector containing the elements. | |
Detailed Description
template<class T>
class farsa::ResourceVector< T >
A vector that can be used as a resource.
The number of elements must be set in the constructor and cannot be changed.
Definition at line 35 of file helperresources.h.
Constructor & Destructor Documentation
|
inline |
Constructor.
Note that the elem
- Parameters
-
size The number of elements in the vector
Definition at line 44 of file helperresources.h.
|
inline |
Destructor.
Definition at line 54 of file helperresources.h.
Member Function Documentation
|
inline |
Returns the i-th element (const version)
- Parameters
-
i the index of the element to return
- Returns
- the value of the element
Definition at line 73 of file helperresources.h.
|
inline |
Returns the i-th element.
- Parameters
-
i the index of the element to return
- Returns
- the value of the element
Definition at line 84 of file helperresources.h.
|
inline |
Returns the size of the vector.
Definition at line 62 of file helperresources.h.
Member Data Documentation
|
protected |
The number of elements.
Definition at line 93 of file helperresources.h.
|
protected |
The vector containing the elements.
Definition at line 98 of file helperresources.h.
The documentation for this class was generated from the following file:
- utilities/include/helperresources.h