object::DynamicList< T, N, callDestructor > Class Template Reference
DynamicList is a simple abstraction of a list with a dynamic length, supporting an iterator interface. More...
#include <DynamicList.h>
Public Member Functions | |
void | delElement (const T *v) |
Removes the specified element from the storage. | |
T * | newElement () |
Delivers a new Element. |
Detailed Description
template<typename T, unsigned int N = 0, bool callDestructor = true>
class object::DynamicList< T, N, callDestructor >
DynamicList is a simple abstraction of a list with a dynamic length, supporting an iterator interface.
It is derived from the std::List and supports the same interface as the ConstantSizeList to allow unification (e.g. same number of template parameters). Furthermore, it provides methodes for getting new elements and for the deletion of such one.
- Template Parameters:
-
T element type to be stored N count element, but here it is ignored and only part due to providing the same interface callDestructor enables switiching between the destruction of all objects residing in the underlying container or doing nothing, in order to safe program space. In embedded environments it is sometimes possible to forbear destruction. The parameter is ignored and only part due to providing the same interface
Member Function Documentation
template<typename T , unsigned int N = 0, bool callDestructor = true>
void object::DynamicList< T, N, callDestructor >::delElement | ( | const T * | v | ) | [inline] |
Removes the specified element from the storage.
template<typename T , unsigned int N = 0, bool callDestructor = true>
T* object::DynamicList< T, N, callDestructor >::newElement | ( | ) | [inline] |
Delivers a new Element.
- Returns:
- a pointer to an element or zero if no element is created
The documentation for this class was generated from the following file:
- include/object/DynamicList.h