GlobalObjects
|
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 &) | |
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).
|
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.
|
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). |
|
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.
|
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:
|
inline |