IGLib 1.4
The IGLib base library for development of numerical, technical and business applications.
|
Proxy class that stores the object's unique ID (generated by a static instance of the IdGenerator class) and provides functionality of IIdentifiable. More...
Public Member Functions | |
IdProxy (IdGenerator generator) | |
Creates a new ID holder, with ID automatically generated by the specified ID generator. ID generator should be a static non-null class (e.g. initialized by initializer). | |
void | AssignId () |
Assigns ID to this object that is process-unique across all object of this type and its derived types. | |
Protected Attributes | |
int | _id |
Properties | |
int | Id [get] |
Gets unique ID of the current interpreter. Command Id is unique across all objects of this type and derived types. | |
Private Member Functions | |
IdProxy () |
Proxy class that stores the object's unique ID (generated by a static instance of the IdGenerator class) and provides functionality of IIdentifiable.
IG::Lib::IdProxy::IdProxy | ( | ) | [inline, private] |
IG::Lib::IdProxy::IdProxy | ( | IdGenerator | generator | ) | [inline] |
Creates a new ID holder, with ID automatically generated by the specified ID generator. ID generator should be a static non-null class (e.g. initialized by initializer).
generator |
void IG::Lib::IdProxy::AssignId | ( | ) | [inline] |
Assigns ID to this object that is process-unique across all object of this type and its derived types.
int IG::Lib::IdProxy::_id [protected] |
int IG::Lib::IdProxy::Id [get] |
Gets unique ID of the current interpreter. Command Id is unique across all objects of this type and derived types.
Implements IG::Lib::IIdentifiable.