GlobalObjects
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GloPointerList.h
Go to the documentation of this file.
1#ifndef INC_GLOPOINTERLIST_H
2#define INC_GLOPOINTERLIST_H
3//-----------------------------------------------------------------------------
43//-----------------------------------------------------------------------------
44#include <list>
45#include "GloTypes.h"
46#include "GloPointerLot.h"
47//-----------------------------------------------------------------------------
48namespace glo
49{
50 //---------------------------------------------------------------------------
51 #ifdef _MSC_VER
52 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
53 #pragma warning( disable : 4251 )
54 #endif
55 //---------------------------------------------------------------------------
73 {
74 private:
75 //============== Attribute
76 //-----------------------------------------------------------------------
86 std::list<BasePersistent *> m_poObjList;
87 //-----------------------------------------------------------------------
99 std::list< BasePersistent * >::iterator m_poObjListIterator;
100 //-----------------------------------------------------------------------
101
102 public:
103 //============== Konstruktoren
104 //-----------------------------------------------------------------------
115 //-----------------------------------------------------------------------
128 PointerList( Base & rBase );
129 //-----------------------------------------------------------------------
144 virtual ~PointerList();
145 //-----------------------------------------------------------------------
146
147 private:
148 //============== Konstruktoren
149 //-----------------------------------------------------------------------
160 //-----------------------------------------------------------------------
161
162 public:
163 //============== Methoden
164 //-----------------------------------------------------------------------
197 virtual int insertPers( BasePersistent * pNewObj );
198 //-----------------------------------------------------------------------
230 virtual int appendPers( BasePersistent * pNewObj );
231 //-----------------------------------------------------------------------
267 virtual int removePers( BasePersistent * pObject );
268 //-----------------------------------------------------------------------
306 virtual int getPers( BasePersistent *& prRetVal, EnSeekMode eMode );
307 //-----------------------------------------------------------------------
309
318 virtual void getAllClassIDs( std::list< ObjID > & rAllClassIDs ) const;
319 virtual bool inLot( const ObjID & object ) const;
320 virtual bool inLot( const BasePersistent & object ) const;
321 virtual bool inLot( const std::shared_ptr<BasePersistent> object ) const;
323 //-----------------------------------------------------------------------
344 virtual int getPersistent( BasePersistent *& prRetVal, const ObjID & rObjID );
345 //-----------------------------------------------------------------------
361 virtual int setCurrentObject( const ObjID & rObjID );
362 //-----------------------------------------------------------------------
376 virtual int setPosition( std::size_t nPosition );
377 //-----------------------------------------------------------------------
389 virtual std::size_t size() const;
390 //-----------------------------------------------------------------------
402 virtual void clear();
403 //-----------------------------------------------------------------------
426 std::list< BasePersistent * > & List();
427 //-----------------------------------------------------------------------
428
429
430 private:
431 //============== Operatoren
432 //-----------------------------------------------------------------------
442 inline PointerList & operator= ( const PointerList & );
443 //-----------------------------------------------------------------------
444 };
445 //---------------------------------------------------------------------------
446 #ifdef _MSC_VER
447 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
448 #pragma warning( default : 4251 )
449 #endif
450 //---------------------------------------------------------------------------
451} // namespace glo
452#endif
Header for PointerLot
For each library, here 'GlobalObjects' there is a type file.
#define __glo_export_dll
Definition GloTypes.h:70
Definition GloBase.h:263
Abstract base class for Persistent and the generic GenericPersistent.
Definition GloBasePersistent.h:124
An object ID consists of the class ID, a database ID and the actual unique object number (all unsigne...
Definition GloObjID.h:84
virtual int appendPers(BasePersistent *pNewObj)
std::list< BasePersistent * >::iterator m_poObjListIterator
Definition GloPointerList.h:99
virtual bool inLot(const std::shared_ptr< BasePersistent > object) const
See description in superclass.
virtual bool inLot(const BasePersistent &object) const
See description in superclass.
PointerList(Base &rBase)
virtual int setPosition(std::size_t nPosition)
virtual int setCurrentObject(const ObjID &rObjID)
PointerList(const PointerList &)
std::list< BasePersistent * > & List()
virtual ~PointerList()
virtual int getPersistent(BasePersistent *&prRetVal, const ObjID &rObjID)
virtual int removePers(BasePersistent *pObject)
virtual int getPers(BasePersistent *&prRetVal, EnSeekMode eMode)
virtual int insertPers(BasePersistent *pNewObj)
virtual void clear()
virtual void getAllClassIDs(std::list< ObjID > &rAllClassIDs) const
See description in superclass.
virtual std::size_t size() const
std::list< BasePersistent * > m_poObjList
Definition GloPointerList.h:86
virtual bool inLot(const ObjID &object) const
See description in superclass.
Definition GloAbstractBaseLot.h:49
EnSeekMode
Definition GloTypes.h:192