GlobalObjects
Loading...
Searching...
No Matches
PtlAVDVList.h
Go to the documentation of this file.
1#ifndef INC_PTLAVDVLIST_H
2#define INC_PTLAVDVLIST_H
3//-----------------------------------------------------------------------------
36//-----------------------------------------------------------------------------
37#include "PtlListTypes.h"
38#include "PtlDVElement.h"
39#include <new>
40#include <stddef.h>
41//-----------------------------------------------------------------------------
42namespace ptl
43{
44 //---------------------------------------------------------------------------
77 {
78 protected:
79 //============== Attribute ============
80 //-----------------------------------------------------------------------
95 //-----------------------------------------------------------------------
107 //-----------------------------------------------------------------------
120 //-----------------------------------------------------------------------
133 //-----------------------------------------------------------------------
143 std::size_t m_nSize;
144 //-----------------------------------------------------------------------
145
146 public:
147 //============== Konstruktoren ============
148 //-----------------------------------------------------------------------
165 //-----------------------------------------------------------------------
175 virtual ~AVDVList();
176 //-----------------------------------------------------------------------
177
178 //============== Copy-Konstruktoren ============
179 //-----------------------------------------------------------------------
193 AVDVList( const AVDVList& rList );
194 //-----------------------------------------------------------------------
195
196 //============== Methoden ============
197 //-----------------------------------------------------------------------
269 virtual void * get( ElementPosition eElementPos );
270 //-----------------------------------------------------------------------
363 virtual int insert( void* pDataObject,
364 InsertPosition eWhere = InsertLAST,
365 VH eBeforeBehind = BEHIND );
366 //-----------------------------------------------------------------------
386 std::size_t getSize();
387 //-----------------------------------------------------------------------
412 std::size_t getNumberDataObjects( void* pDataObject );
413 //-----------------------------------------------------------------------
423 virtual void removeAll();
424 //-----------------------------------------------------------------------
450 //-----------------------------------------------------------------------
479 //-----------------------------------------------------------------------
480
481 protected:
482 //+ ============ HilfsMethoden ============
483 //-----------------------------------------------------------------------
514 virtual int _addElementFrom( const AVDVList & rList );
515 //-----------------------------------------------------------------------
563 DVElement * insertSrc( void* pDataObject,
564 DVElement* pReferenceDVElement,
565 VH eBeforeBehind );
566 //-----------------------------------------------------------------------
584 DVElement * removeSrc( DVElement * pDeadDVElement );
585 //-----------------------------------------------------------------------
586
587 public:
588 //============== Operatoren ============
589 //-----------------------------------------------------------------------
612 AVDVList & operator= ( const AVDVList & rList );
613 //-----------------------------------------------------------------------
614 };
615 //---------------------------------------------------------------------------
616} // namespace ptl
617#endif
Header for DVElement
For each library, here 'PtlContainer' there is a type file.
Base class for void-pointer lists.
Definition PtlAVDVList.h:77
virtual void * get(ElementPosition eElementPos)
std::size_t m_nSize
Definition PtlAVDVList.h:143
ListMode m_eListMode
Definition PtlAVDVList.h:94
std::size_t getSize()
AVDVList(const AVDVList &rList)
DVElement * m_pFirstDVElement
Definition PtlAVDVList.h:119
int getErrorCode()
DVElement * removeSrc(DVElement *pDeadDVElement)
int m_iErrorCode
Definition PtlAVDVList.h:106
DVElement * m_pLastDVElement
Definition PtlAVDVList.h:132
std::size_t getNumberDataObjects(void *pDataObject)
virtual void removeAll()
AVDVList & operator=(const AVDVList &rList)
ListMode getListMode()
virtual ~AVDVList()
virtual int insert(void *pDataObject, InsertPosition eWhere=InsertLAST, VH eBeforeBehind=BEHIND)
DVElement * insertSrc(void *pDataObject, DVElement *pReferenceDVElement, VH eBeforeBehind)
AVDVList(ListMode eMode=DEFAULT)
virtual int _addElementFrom(const AVDVList &rList)
Definition PtlATDVList.h:41
InsertPosition
Definition PtlListTypes.h:187
@ InsertLAST
Definition PtlListTypes.h:189
VH
Definition PtlListTypes.h:143
@ BEHIND
Definition PtlListTypes.h:145
ElementPosition
Definition PtlListTypes.h:106
const ListMode DEFAULT
Definition PtlListTypes.h:339
int ListMode
Definition PtlListTypes.h:338
Element of double linked lists.
Definition PtlDVElement.h:61