Urho.RefCounted Class

Base class for intrusively reference-counted objects. These are noncopyable and non-assignable.

See Also: RefCounted

Syntax

public class RefCounted : IDisposable

Requirements

Namespace: Urho
Assembly: Urho (in Urho.dll)
Assembly Versions: 1.0.0.0

The members of Urho.RefCounted are listed below.

See Also: Object

Public Constructors

Protected Constructors

Constructs a new instance of Urho.RefCounted, given a raw pointer to an unmanaged object

Public Properties

[read-only]
HandleIntPtr.
[read-only]
IsDeletedBoolean. True if underlying native object is deleted

Protected Properties

Public Methods

AddRef()
Increment reference count. Can also be called outside of a SharedPtr for traditional reference counting.
Dispose()
override
Equals(Object) : Boolean
Finalize()
override
GetHashCode() : Int32
RefCountPtr() : RefCount*
Return pointer to the reference count structure.
Refs() : Int32
Return reference count.
ReleaseRef()
Decrement reference count and delete self if no more references. Can also be called outside of a SharedPtr for traditional reference counting.
WeakRefs() : Int32
Return weak reference count.

Protected Methods

Public Operators