Abstract superclass for template lists that include a pointer to objects or objects as copies in the list. More...
#include <PtlATDVList.h>
Public Member Functions | |
ATDVList (ListMode eMode=DEFAULT) | |
virtual | ~ATDVList () |
int | currentElementCache (ElementCache eWhich) |
int | getErrorCode () |
virtual ListMode | getListMode ()=0 |
std::size_t | getSize () |
VDVList * | getVDVList () |
Protected Attributes | |
VDVList * | m_VDVListe |
Private Member Functions | |
ATDVList (const ATDVList &) | |
ATDVList & | operator= (const ATDVList &) |
Abstract superclass for template lists that include a pointer to objects or objects as copies in the list.
Constructor with optional parameter passing. List is empty at first. With the parameter eMode you can instantiate a list, which includes data objects several times (no parameter or DEFAULT) or only once (UNIQUE) and/or should be the owner of the data objects (RESPONSIBLE).
References ptl::DEFAULT.
Referenced by ATDVList(), ptl::TDVList< T_DATA >::TDVList(), and operator=().
|
virtual |
Destructor, emptying list.
|
private |
Copy constructor is not available. This is to prevent a programmer from passing an object from this class to a function, for example, by value.
References ATDVList().
|
inline |
This method allows you to cache the pointer to the current element. This allows e.g. to work through the list (which moves the current pointer) and then restore the current pointer.
[in] | eWhich | Specifies whether the pointer to the current DV-element is buffered (M) or restored (RM). |
References m_VDVListe.
|
inline |
Returns the last error code.
Should be called after insert methods to check if errors occurred.
If errors INSTANTIATE_DVELEMENT occurred, the instance should be deleted if no other error handling is implemented in subclasses.
References m_VDVListe.
|
inlinepure virtual |
Returns the List mode.
Example:
Here pure virtual, so this class is abstract.
Implemented in ptl::TDVList< T_DATA >, and ptl::TDVList< ini::Line >.
|
inline |
Returns the number of elements contained in the list.
Example:
References m_VDVListe.
|
inline |
Returns the pointer to the capped VDVList. Used by iterator classes, for example, to work in this VDVList.
References m_VDVListe.
Assignment operator= is not available
References ATDVList().
|
protected |
Pointer to VDVList, which works with void pointers.
Referenced by ptl::TDVList< T_DATA >::addElementFrom(), currentElementCache(), ptl::TDVList< T_DATA >::get(), ptl::TDVList< T_DATA >::get(), ptl::TDVList< T_DATA >::get(), getErrorCode(), ptl::TDVList< T_DATA >::getListMode(), ptl::TDVList< T_DATA >::getNumberDataObjects(), getSize(), getVDVList(), ptl::TDVList< T_DATA >::insert(), ptl::TDVList< T_DATA >::operator=(), ptl::TDVList< T_DATA >::remove(), and ptl::TDVList< T_DATA >::setCurrentPosition().