IGLib 1.4
The IGLib base library for development of numerical, technical and business applications.
|
Example implementation of IIdentifiable interface. More...
Public Member Functions | |
ExampleIIdentifiable (string str) | |
override string | ToString () |
Protected Attributes | |
string | _msg |
Properties | |
virtual int | Id [get] |
Returns unique Id (in the scope of a given type) of the current object. Method is defined as virtual so that derived class can have its own IDs by defining its own static Identifiable.Generator object. | |
Private Attributes | |
IIdentifiable | _idProxy = new IdProxy(_idGenerator) |
Proxy object that implements the IIdentifiable interface for this object. | |
Static Private Attributes | |
static IdGenerator | _idGenerator = new IdGenerator(1 ) |
Static object that generates IDs for this class: |
Example implementation of IIdentifiable interface.
IG::Lib::RegisterableExamples::ExampleIIdentifiable::ExampleIIdentifiable | ( | string | str | ) | [inline] |
override string IG::Lib::RegisterableExamples::ExampleIIdentifiable::ToString | ( | ) | [inline] |
string IG::Lib::RegisterableExamples::ExampleIIdentifiable::_msg [protected] |
IdGenerator IG::Lib::RegisterableExamples::ExampleIIdentifiable::_idGenerator = new IdGenerator(1 ) [static, private] |
Static object that generates IDs for this class:
IIdentifiable IG::Lib::RegisterableExamples::ExampleIIdentifiable::_idProxy = new IdProxy(_idGenerator) [private] |
Proxy object that implements the IIdentifiable interface for this object.
virtual int IG::Lib::RegisterableExamples::ExampleIIdentifiable::Id [get] |
Returns unique Id (in the scope of a given type) of the current object. Method is defined as virtual so that derived class can have its own IDs by defining its own static Identifiable.Generator object.
Implements IG::Lib::IIdentifiable.