메소드 | 설명 | |
---|---|---|
Clear ( ) : void |
Clears internal elements.
|
|
GetContext ( ) : Antmicro.Migrant.ObjectIdentifierContext |
Gets the context of object identifier that can be used for open stream serialization.
|
|
GetId ( object o ) : int |
For a given object, returns its unique ID. The new ID is used if object was not presented to this class earlier, otherwise the previously returned is used.
|
|
GetId ( object o, bool &isNew ) : int |
For a given object, returns its unique ID. The new ID is used if object was not presented to this class earlier, otherwise the previously returned is used.
|
|
GetObject ( int id ) : object |
For an ID which was previously returned by the Antmicro.Migrant.ObjectIdentifier.GetId(object, out bool) method, returns an object for which this ID was generated.
|
|
ObjectIdentifier ( ) : System |
Initializes a new instance of the Antmicro.Migrant.ObjectIdentifier class.
|
|
ObjectIdentifier ( Antmicro.Migrant.ObjectIdentifierContext context ) : System |
Initializes a new instance of the Antmicro.Migrant.ObjectIdentifier class, reusing given context.
|
|
SetIdentifierForObject ( object o, int id ) : void |
Sets new identifier for object. REMARK: Setting new mapping of object to id does not remove the old one. As a reuslt, after this operation asking for id of old object and new object results in returing the same identifier. This behaviour is intended to support surrogated objects.
|
|
this ( int id ) : object |
For an ID which was previously returned by the Antmicro.Migrant.ObjectIdentifier.GetId(object, out bool) method, returns an object for which this ID was generated.
|
public GetContext ( ) : Antmicro.Migrant.ObjectIdentifierContext | ||
리턴 | Antmicro.Migrant.ObjectIdentifierContext |
public GetId ( object o ) : int | ||
o | object | /// An object to give unique ID for. /// |
리턴 | int |
public GetId ( object o, bool &isNew ) : int | ||
o | object | /// An object to give unique ID for. /// |
isNew | bool | /// Out parameter specifying if returned id has just been generated. /// |
리턴 | int |
public GetObject ( int id ) : object | ||
id | int |
/// The unique ID, previously returned by the |
리턴 | object |
public ObjectIdentifier ( Antmicro.Migrant.ObjectIdentifierContext context ) : System | ||
context | Antmicro.Migrant.ObjectIdentifierContext | Context to reuse. |
리턴 | System |
public SetIdentifierForObject ( object o, int id ) : void | ||
o | object | Object |
id | int | Identifier |
리턴 | void |
public this ( int id ) : object | ||
id | int |
/// The unique ID, previously returned by the |
리턴 | object |