Public Member Functions | |
| RefCounter (T obj) | |
| Constructs a RefCounter object around the specified object. | |
| void | AddRef () |
| Increases the reference count. | |
| void | Dispose () |
| Decreases the reference count, and if it hits zero Dispose is called on the object. | |
| int | GetRefCount () |
| Returns the number of references. This is meant for debugging purposes only, do not write code which calls Dispose until GetRefCount drops to zero. | |
Properties | |
| T | Value [get] |
| Gets the object this is wrapped around. | |
| bool | IsDisposed [get] |
| Returns true if the object has had its Dispose member called, and thus no more calls on that object should be made. | |
[Experimental - This class may disappear in the future.]
| T |
| T | : | IDisposable |
| AgateLib.Utility.RefCounter< T >.RefCounter | ( | T | obj | ) |
Constructs a RefCounter object around the specified object.
| obj |
| void AgateLib.Utility.RefCounter< T >.AddRef | ( | ) |
Increases the reference count.
| void AgateLib.Utility.RefCounter< T >.Dispose | ( | ) |
Decreases the reference count, and if it hits zero Dispose is called on the object.
| int AgateLib.Utility.RefCounter< T >.GetRefCount | ( | ) |
Returns the number of references. This is meant for debugging purposes only, do not write code which calls Dispose until GetRefCount drops to zero.
bool AgateLib.Utility.RefCounter< T >.IsDisposed [get] |
Returns true if the object has had its Dispose member called, and thus no more calls on that object should be made.
T AgateLib.Utility.RefCounter< T >.Value [get] |
Gets the object this is wrapped around.
|
AgateLib Awesome Game and Tool Engine Library |
|