vrtree_cpp::HTypeR

Reference counted wrapper around a handle. Automatically closes the handle when there are no references left.

Public Attributes


The handle to wrap.


Reference counter. Automatically deletes itself when the refcount is zero.

Public Member Functions


void dec()

Manually decrement the refcount. If recount hits zero, handle is closed.


Construct a null handle.


HTypeR(T handle)

Construct from a raw node handle and make it refcounted.


HTypeR(const HTypeR< T > & other)

Copy an existing handle, incrementing its refcount.


void inc()

Manually increment the refcount (effectively makes the handle permanent until manually closed)


operator T() const

Access the raw node handle.


bool operator<(T other) const

Compare the raw node handle for storage in ordered containers.


HTypeR< T > & operator=(const HTypeR< T > & other)

Assign an existing handle.


HTypeR< T > & operator=(T handle)

Assign a raw handle and make it refcounted.


Decrements refcount, closing the node handle if this is the last reference.

Public Static Member Functions


static T * raw(const HTypeR< T > arr)

Converts an array of reference counted handles to an array of raw handles for passing to an api function that expects an array of handles. Return value is only valid until the next call to this function.

No Results.

Getting StartedArchitectureBest PracticesHow ToAdvanced TopicsChangelogvrtreevrtree_cppvtCoreCoreForeign Function InterfaceMetanodesMigrationsObserversPropertiesSettingsTreeUtilitiesAPI DefinitionsVR ExchangePluginsLua API