GlobalObjects
Loading...
Searching...
No Matches
GloPointerList.h
Go to the documentation of this file.
1#ifndef INC_GLOPOINTERLIST_H
2#define INC_GLOPOINTERLIST_H
3//-----------------------------------------------------------------------------
36//-----------------------------------------------------------------------------
37#include <list>
38#include "GloTypes.h"
39#include "GloPointerLot.h"
40//-----------------------------------------------------------------------------
41namespace glo
42{
43 //---------------------------------------------------------------------------
44 #ifdef _MSC_VER
45 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
46 #pragma warning( disable : 4251 )
47 #endif
48 //---------------------------------------------------------------------------
66 {
67 private:
68 //============== Attribute
69 //-----------------------------------------------------------------------
79 std::list<BasePersistent *> m_poObjList;
80 //-----------------------------------------------------------------------
92 std::list< BasePersistent * >::iterator m_poObjListIterator;
93 //-----------------------------------------------------------------------
94
95 public:
96 //============== Konstruktoren
97 //-----------------------------------------------------------------------
108 //-----------------------------------------------------------------------
121 PointerList( Base & rBase );
122 //-----------------------------------------------------------------------
137 virtual ~PointerList();
138 //-----------------------------------------------------------------------
139
140 private:
141 //============== Konstruktoren
142 //-----------------------------------------------------------------------
153 //-----------------------------------------------------------------------
154
155 public:
156 //============== Methoden
157 //-----------------------------------------------------------------------
190 virtual int insertPers( BasePersistent * pNewObj );
191 //-----------------------------------------------------------------------
223 virtual int appendPers( BasePersistent * pNewObj );
224 //-----------------------------------------------------------------------
260 virtual int removePers( BasePersistent * pObject );
261 //-----------------------------------------------------------------------
299 virtual int getPers( BasePersistent *& prRetVal, EnSeekMode eMode );
300 //-----------------------------------------------------------------------
302
311 virtual void getAllClassIDs( std::list< ObjID > & rAllClassIDs ) const;
312 virtual bool inLot( const ObjID & object ) const;
313 virtual bool inLot( const BasePersistent & object ) const;
314 virtual bool inLot( const std::shared_ptr<BasePersistent> object ) const;
316 //-----------------------------------------------------------------------
337 virtual int getPersistent( BasePersistent *& prRetVal, const ObjID & rObjID );
338 //-----------------------------------------------------------------------
354 virtual int setCurrentObject( const ObjID & rObjID );
355 //-----------------------------------------------------------------------
369 virtual int setPosition( std::size_t nPosition );
370 //-----------------------------------------------------------------------
382 virtual std::size_t size() const;
383 //-----------------------------------------------------------------------
395 virtual void clear();
396 //-----------------------------------------------------------------------
419 std::list< BasePersistent * > & List();
420 //-----------------------------------------------------------------------
421
422
423 private:
424 //============== Operatoren
425 //-----------------------------------------------------------------------
435 inline PointerList & operator= ( const PointerList & );
436 //-----------------------------------------------------------------------
437 };
438 //---------------------------------------------------------------------------
439 #ifdef _MSC_VER
440 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
441 #pragma warning( default : 4251 )
442 #endif
443 //---------------------------------------------------------------------------
444} // namespace glo
445#endif
Header for PointerLot
For each library, here 'GlobalObjects' there is a type file.
#define __glo_export_dll
Definition GloTypes.h:63
This class is the interface to the persistent objects. Here "objects" can be registered,...
Definition GloBase.h:250
Abstract base class for Persistent and the generic GenericPersistent.
Definition GloBasePersistent.h:102
An object ID consists of the class ID, a database ID and the actual unique object number (all unsigne...
Definition GloObjID.h:77
Is the base class of a template list. The persistent objects are managed in a std::list....
Definition GloPointerList.h:66
virtual int appendPers(BasePersistent *pNewObj)
std::list< BasePersistent * >::iterator m_poObjListIterator
Definition GloPointerList.h:92
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:79
virtual bool inLot(const ObjID &object) const
See description in superclass.
Is the abstract base class of pointer sets and lists.
Definition GloPointerLot.h:62
Definition GloAbstractBaseLot.h:42
EnSeekMode
Definition GloTypes.h:166