|
interface | IG.Lib.IIdentifiable |
| Classes whose instances have unique integer IDs. More...
|
|
interface | IG.Lib.IRegisterable< T > |
| 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: 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...
|
|
class | IG.Lib.IdGenerator |
| Utility class for generaton of unique IDs for objects of specific type. IDs generated by calls of GetNewId() from a specific object of this class are unique. Utilizes definition of IIdentifiable interface. Implementation notes: In every class whose instances should have unique IDs, instantiate a private static object of this type, and an instance member of the Proxy subtype of this class. Both objexts should be instantiated by appropriate initializers, and constructor of the proxy object should be called with static object as argument. Example implementation can be found in the ExampleInterfaceImplementation subclass of this class. More...
|
|
class | IG.Lib.IdProxy |
| Proxy class that stores the object's unique ID (generated by a static instance of the IdGenerator class) and provides functionality of IIdentifiable. More...
|
|
class | IG.Lib.ObjectRegister< T > |
| Provides implementation of register of objects of the specified type. Also generates unique IDs for objects of this type. This class utilizes implementation of IIdentifiable and IRegisterable interfaces. Implementation notes for IRegistable: For implementation, use a static instance of this class, and an a nonstatic instance of the IdProcy class (to generate and hold object's unique ID). subclass of this clas, initialized by that static instance. Example implementation can be found in the ExampleInterfaceImplementation subclass of this class. More...
|
|
class | IG.Lib.RegisterableExamples |
| Contains examples od implementation of the IIdentifieble and IRegistrable interface. They utilize implementation of helper classes from this file.. More...
|
|
class | IG.Lib.RegisterableExamples.ExampleIIdentifiable |
| Example implementation of IIdentifiable interface. More...
|
|
class | IG.Lib.RegisterableExamples.ExampleIRegistrable |
| Example implementation of IIdentifiable interface. More...
|
|