|
| Array () |
|
| Array (Array &pReference) |
|
virtual | ~Array () |
|
void | operator() (Array &pReference) |
|
T * | ptr (size_t pPos) |
| Returns a pointer to the actually stored element locate at pPos position.
|
|
void | push (T &pValueRef) |
| Creetes a copy of the value passed by reference and stores it at the end of the array.
|
|
void | push (T *pValuePtr) |
| Stores the given pointer (not a copy or a copy of the pointed element) at the end of the array.
|
|
T * | pop () |
| Retrieves the last element stored in the Array, deleting it from the Array.
|
|
void | clear () |
| Disposes all contained elements running their delete method and clear the internal container.
|
|
bool | forEach (ForEachWorker pWorker) |
| Executes the given pWorker function on every contained element.
|
|
size_t | size () |
| Returns the container size.
|
|
string & | lastErrorRef () |
| Returns a reference to the last stored error message.
|
|
ErrorCode | lastCode () |
| Returns the last stored code.
|
|
bool | valid () |
| Permits to know if the object has a valid internal state.
|
|
string & | typeRef () |
| Permits to know the type of this particular object.
|
|
|
| HSEPObject (const char *pType) |
| Constructor, providing the base for the state controlling instance.
|
|
virtual | ~HSEPObject () |
|
void | setLastError (string &pErrorMsgRef) |
| Assigns an error message text to the last executed operation.
|
|
void | setLastError (const string &pErrorMsgRef) |
| Assigns an error message text to the last executed operation.
|
|
void | setLastError (const char *pErrorMsg) |
| Assigns an error message text to the last executed operation.
|
|
void | setValid () |
| Defines that the object has a valid state.
|
|
void | setInvalid () |
| Defines that the object has an invalid state.
|
|
void | setLastCode (const ErrorCode pErrorCode) |
| Defines the internal result code for the object.
|
|
template<class T>
class HSEP::Array< T >
Template Array class that complements the base functionality found in an STL vector.
It is important to note that this container stores pointers to the contained elements, to avoid the traditional STL behavior of storing references. The STL's vector behavior, although looks harmless, can produce very dangerous programs when the given elements are created as local variables in the given function stack. As an interesting point, this problem can't be detected by the compiler.
Definition at line 46 of file Array.h.