Jolt Physics
A multi core friendly Game Physics Engine
|
#include <Reference.h>
Public Member Functions | |
Ref () | |
Constructor. | |
Ref (T *inRHS) | |
Ref (const Ref< T > &inRHS) | |
Ref (Ref< T > &&inRHS) noexcept | |
~Ref () | |
Ref< T > & | operator= (T *inRHS) |
Assignment operators. | |
Ref< T > & | operator= (const Ref< T > &inRHS) |
Ref< T > & | operator= (Ref< T > &&inRHS) noexcept |
operator T* () const | |
Casting operators. | |
T * | operator-> () const |
Access like a normal pointer. | |
T & | operator* () const |
bool | operator== (const T *inRHS) const |
Comparison. | |
bool | operator== (const Ref< T > &inRHS) const |
bool | operator!= (const T *inRHS) const |
bool | operator!= (const Ref< T > &inRHS) const |
T * | GetPtr () const |
Get pointer. | |
uint64 | GetHash () const |
Get hash for this object. | |
void ** | InternalGetPointer () |
INTERNAL HELPER FUNCTION USED BY SERIALIZATION. | |
Friends | |
template<class T2 > | |
class | RefConst |
Class for automatic referencing, this is the equivalent of a pointer to type T if you assign a value to this class it will increment the reference count by one of this object, and if you assign something else it will decrease the reference count of the first object again. If it reaches a reference count of zero it will be deleted
|
inline |
Get pointer.
|
inline |
INTERNAL HELPER FUNCTION USED BY SERIALIZATION.
|
inline |
Casting operators.
|
inline |
|
inline |
|
inline |
Access like a normal pointer.
|
inline |
Comparison.