|
Public Types |
|
typedef T * | TplHdle |
| | Typedef of a pointer to the managed object.
|
|
typedef P & | IDRef |
| | Typedef of a reference to the ID value.
|
|
typedef const P & | IDRefCst |
| | Typedef of a const reference to the ID value.
|
|
typedef std::map< P, TplHdle > | TplMap |
| | Typedef of the corresponding std::map of the manager.
|
|
typedef std::pair< P, TplHdle > | TplPair |
| | Typedef of the corresponding std::pair.
|
|
typedef TplMap::iterator | iterator |
| | Typedef of the corresponding std::map iterator.
|
typedef CL_TEMPLATE_OBJECT_MANAGER<
T, P > | TplManager |
Public Member Functions |
| _SG_TLS_INLINE | CL_TEMPLATE_OBJECT_MANAGER (TplManager *_RemoteManager) |
| | Default constructor. [MORE HERE].
|
|
_SG_TLS_INLINE | ~CL_TEMPLATE_OBJECT_MANAGER (void) |
| | Default destructor.
|
| _SG_TLS_INLINE TplHdle | Add (IDRefCst _ID) |
| | Look into the local and remote manager for an object named by _ID, if found return it. Else create a new object T with ID _ID and return it.
|
| _SG_TLS_INLINE TplHdle | AddObj (TplHdle _Obj) |
| | Look into the local and remote manager for an object corresponding to _Obj, if found return it. Else add _Obj to the local manager and remote manager.
|
| _SG_TLS_INLINE TplHdle | GetLastAdded () |
| | Return the latest object added.
|
| _SG_TLS_INLINE TplHdle | Find (IDRefCst _ID) |
| | Look into the local and remote manager for an object named by _ID, if found return it.
|
| _SG_TLS_INLINE iterator | FindLocalPair (IDRefCst _ID) |
| | Look into the local manager for an iterator named by _ID.
|
| virtual _SG_TLS_INLINE size_t | Delete (IDRefCst _ID) |
| | Delete the object identified by its IDRef.
|
| virtual _SG_TLS_INLINE size_t | DeleteAllLocal () |
| | Delete all local object's pair.
|
| _SG_TLS_INLINE TplHdle | Get (IDRefCst _ID) |
| | Return the requested 'T' object pointer. If not present in the local manager, it will look in the remote manager(if defined).
|
| _SG_TLS_INLINE TplHdle | operator[] (IDRefCst _ID) |
| | Return the requested 'T' object pointer. If not present in the local manager, it will look in the remote manager(if defined).
|
| iterator | GetFirstIter () |
| iterator | GetLastIter () |
| TplHdle | GetFirstObj () |
| TplHdle | GetLastObj () |
| _SG_TLS_INLINE size_t | GetCount () |
| _SG_TLS_INLINE TplHdle | SetDefaultObj (IDRefCst _ID) |
| | Add a default object that will be returned when the requested object is not found. [MORE HERE].
|
| _SG_TLS_INLINE TplHdle | GetDefaultObj () |
| | Return the default object.
|
|
_SG_TLS_INLINE void | PrintAllObjects () |
| | Print all objects name and value to the console.
|
|
_SG_TLS_INLINE bool | SwapID (IDRefCst _ID1, IDRefCst _ID2) |
| | Swap 2 ID from two objects.
|
|
_SG_TLS_INLINE bool | SwapID (TplHdle _Obj1, TplHdle _Obj2) |
| | Swap 2 ID from two objects.
|
| _SG_TLS_INLINE TplHdle | UpdateID (IDRefCst _IDsrc, IDRefCst _IDnew) |
| | Update the ID of an object. Look for the object, then look for if the new ID is free. If not return NULL. Then update the object ID.
|
Protected Member Functions |
| virtual _SG_TLS_INLINE bool | IsObjValide (TplHdle _Obj) |
| | Check if the object is valid. May be redefined in herited class.
|
| virtual _SG_TLS_INLINE TplHdle | CreateObj (IDRefCst _ID, std::string _ObjType="") |
| | Check if the object is valid. May be redefined in herited class.
|
| _SG_TLS_INLINE TplHdle | AddLocal (IDRefCst _ID) |
| | Look into the local manager for an object named by _ID, if found return it. Else create a new object T with ID _ID and return it.
|
| _SG_TLS_INLINE TplHdle | AddLocalObj (TplHdle _Obj) |
| | Look into the local manager for an object corresponding to _Obj, if found return it. Else add _Obj to the local manager and remote manager.
|
| _SG_TLS_INLINE TplHdle | AddRemote (IDRefCst _ID) |
| | Look into the remote manager for an object named by _ID, if found return it. Else create a new object T with ID _ID and return it.
|
| _SG_TLS_INLINE TplHdle | AddRemoteObj (TplHdle _Obj) |
| | Look into the remote manager for an object corresponding to _Obj, if found return it. Else add _Obj to the local manager and remote manager.
|
| _SG_TLS_INLINE TplHdle | FindLocal (IDRefCst _ID) |
| | Look into the local manager for an object named by _ID, if found return it.
|
| _SG_TLS_INLINE TplHdle | FindRemote (IDRefCst _ID) |
| | Look into the remote manager for an object named by _ID, if found return it.
|