IGLib
1.5
The IGLib base library for development of numerical, technical and business applications.
|
Objects of this type have a unique ID (unique for all objects of a given type) and can be registered in the register of existent objects of the specified type. Implementation notes: Use an object of RegisterableGenerator .ProxyRegisterable as proxy object to implement functionality. Registerable.Example contains an example of how to do that, or can even be inherited to provide all functionality automatically (but this may not be feasible because multiple inheritance is not supported, and our class already inherits form another one). More...
Public Member Functions | |
void | Register () |
Registers the current object. Subsequent calls (after the first one) have no effect. More... | |
bool | IsRegistered () |
Returns true if the current object is registered, false if not. More... | |
void | Unregister () |
Unregisters the current object if it is currently registered. Can be performed several times, in this case only the first call may have effect. More... | |
Properties | |
ObjectRegister< T > | ObjectRegister [get] |
Gets the object register where the current object can be registered. More... | |
![]() | |
int | Id [get] |
Returns unique ID (in the scope of a given type) of the current object. More... | |
Objects of this type have a unique ID (unique for all objects of a given type) and can be registered in the register of existent objects of the specified type. Implementation notes: Use an object of RegisterableGenerator .ProxyRegisterable as proxy object to implement functionality. Registerable.Example contains an example of how to do that, or can even be inherited to provide all functionality automatically (but this may not be feasible because multiple inheritance is not supported, and our class already inherits form another one).
T | : | class | |
T | : | IIdentifiable |
void IG.Lib.IRegisterable< T >.Register | ( | ) |
Registers the current object. Subsequent calls (after the first one) have no effect.
Implemented in IG.Lib.RegisterableExamples.ExampleIRegistrable, IG.Lib.ExpressionEvaluatorJs, IG.Lib.CommandLineInterpreter, and IG.Lib.CommandLine.
bool IG.Lib.IRegisterable< T >.IsRegistered | ( | ) |
Returns true if the current object is registered, false if not.
Implemented in IG.Lib.RegisterableExamples.ExampleIRegistrable, IG.Lib.ExpressionEvaluatorJs, IG.Lib.CommandLineInterpreter, and IG.Lib.CommandLine.
void IG.Lib.IRegisterable< T >.Unregister | ( | ) |
Unregisters the current object if it is currently registered. Can be performed several times, in this case only the first call may have effect.
Implemented in IG.Lib.RegisterableExamples.ExampleIRegistrable, IG.Lib.ExpressionEvaluatorJs, IG.Lib.CommandLineInterpreter, and IG.Lib.CommandLine.
|
get |
Gets the object register where the current object can be registered.