GlobalObjects
Loading...
Searching...
No Matches
glo::Manager::ObjIdWithDepends Struct Reference

A structure to map the object ID of a persistent object with the data records of the dependent objects (dependent means; should be saved, deleted, monitored, locked, etc.). More...

#include <GloManager.h>

Public Member Functions

 ObjIdWithDepends (const ObjID &rObjID, std::map< ObjID, Record *, std::less< ObjID > > *pDependRecordMap)
 
 ~ObjIdWithDepends ()
 

Public Attributes

ObjID m_ObjID
 
std::map< ObjID, Record *, std::less< ObjID > > * m_pDependRecordMap
 

Detailed Description

A structure to map the object ID of a persistent object with the data records of the dependent objects (dependent means; should be saved, deleted, monitored, locked, etc.).

Author
Helmut Jakoby

Constructor & Destructor Documentation

◆ ObjIdWithDepends()

glo::Manager::ObjIdWithDepends::ObjIdWithDepends ( const ObjID & rObjID,
std::map< ObjID, Record *, std::less< ObjID > > * pDependRecordMap )

Constructor with parameters.

Parameters
[in]rObjIDThe object ID of a persistent object.
[in]pDependRecordMapA container of records, here the records of the dependent objects of the object with the passed object ID.
Attention
The data records in the passed container become the property of this object, therefore they must not be 'forgotten' by the parent instance (see Record::forget() ).

◆ ~ObjIdWithDepends()

glo::Manager::ObjIdWithDepends::~ObjIdWithDepends ( )

Destructor. All records in m_pDependRecordMap are forgotten and m_pDependRecordMap is removed from memory.

Member Data Documentation

◆ m_ObjID

ObjID glo::Manager::ObjIdWithDepends::m_ObjID

The object ID of a persistent object.

◆ m_pDependRecordMap

std::map< ObjID, Record *, std::less<ObjID> >* glo::Manager::ObjIdWithDepends::m_pDependRecordMap

A container of records, here the records of the dependent objects of the object with the object ID from m_ObjID


The documentation for this struct was generated from the following file: