Torque3D Documentation / _generateds / StrongObjectRef

StrongObjectRef

Engine/source/core/util/refBase.h

Base class for StrongRefBase strong reference pointers.

More...

Protected Attributes

the object this RefObjectRef references

Public Functions

Constructor, assigns from the object and increments its reference count if it's not NULL.

Destructor, dereferences the object, if there is one.

set(StrongRefBase * object)

Assigns this reference object from an existing StrongRefBase instance.

Protected Functions

decrements the reference count on the referenced object

increments the reference count on the referenced object

Detailed Description

Base class for StrongRefBase strong reference pointers.

Protected Attributes

StrongRefBase * mObject 

the object this RefObjectRef references

Public Functions

StrongObjectRef(StrongRefBase * object)

Constructor, assigns from the object and increments its reference count if it's not NULL.

~StrongObjectRef()

Destructor, dereferences the object, if there is one.

set(StrongRefBase * object)

Assigns this reference object from an existing StrongRefBase instance.

Protected Functions

decRef()

decrements the reference count on the referenced object

incRef()

increments the reference count on the referenced object