Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
RefConst< T > Class Template Reference

#include <Reference.h>

Public Member Functions

 RefConst ()
 Constructor. More...
 
 RefConst (const T *inRHS)
 
 RefConst (const RefConst< T > &inRHS)
 
 RefConst (RefConst< T > &&inRHS) noexcept
 
 RefConst (const Ref< T > &inRHS)
 
 RefConst (Ref< T > &&inRHS) noexcept
 
 ~RefConst ()
 
RefConst< T > & operator= (const T *inRHS)
 Assignment operators. More...
 
RefConst< T > & operator= (const RefConst< T > &inRHS)
 
RefConst< T > & operator= (RefConst< T > &&inRHS) noexcept
 
RefConst< T > & operator= (const Ref< T > &inRHS)
 
RefConst< T > & operator= (Ref< T > &&inRHS) noexcept
 
 operator const T * () const
 Casting operators. More...
 
const T * operator-> () const
 Access like a normal pointer. More...
 
const T & operator* () const
 
bool operator== (const T *inRHS) const
 Comparison. More...
 
bool operator== (const RefConst< T > &inRHS) const
 
bool operator== (const Ref< T > &inRHS) const
 
bool operator!= (const T *inRHS) const
 
bool operator!= (const RefConst< T > &inRHS) const
 
bool operator!= (const Ref< T > &inRHS) const
 
const T * GetPtr () const
 Get pointer. More...
 
void ** InternalGetPointer ()
 INTERNAL HELPER FUNCTION USED BY SERIALIZATION. More...
 

Detailed Description

template<class T>
class RefConst< T >

Class for automatic referencing, this is the equivalent of a CONST 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

Constructor & Destructor Documentation

◆ RefConst() [1/6]

template<class T >
RefConst< T >::RefConst ( )
inline

Constructor.

◆ RefConst() [2/6]

template<class T >
RefConst< T >::RefConst ( const T *  inRHS)
inline

◆ RefConst() [3/6]

template<class T >
RefConst< T >::RefConst ( const RefConst< T > &  inRHS)
inline

◆ RefConst() [4/6]

template<class T >
RefConst< T >::RefConst ( RefConst< T > &&  inRHS)
inlinenoexcept

◆ RefConst() [5/6]

template<class T >
RefConst< T >::RefConst ( const Ref< T > &  inRHS)
inline

◆ RefConst() [6/6]

template<class T >
RefConst< T >::RefConst ( Ref< T > &&  inRHS)
inlinenoexcept

◆ ~RefConst()

template<class T >
RefConst< T >::~RefConst ( )
inline

Member Function Documentation

◆ GetPtr()

template<class T >
const T * RefConst< T >::GetPtr ( ) const
inline

Get pointer.

◆ InternalGetPointer()

template<class T >
void ** RefConst< T >::InternalGetPointer ( )
inline

INTERNAL HELPER FUNCTION USED BY SERIALIZATION.

◆ operator const T *()

template<class T >
RefConst< T >::operator const T * ( ) const
inline

Casting operators.

◆ operator!=() [1/3]

template<class T >
bool RefConst< T >::operator!= ( const Ref< T > &  inRHS) const
inline

◆ operator!=() [2/3]

template<class T >
bool RefConst< T >::operator!= ( const RefConst< T > &  inRHS) const
inline

◆ operator!=() [3/3]

template<class T >
bool RefConst< T >::operator!= ( const T *  inRHS) const
inline

◆ operator*()

template<class T >
const T & RefConst< T >::operator* ( ) const
inline

◆ operator->()

template<class T >
const T * RefConst< T >::operator-> ( ) const
inline

Access like a normal pointer.

◆ operator=() [1/5]

template<class T >
RefConst< T > & RefConst< T >::operator= ( const Ref< T > &  inRHS)
inline

◆ operator=() [2/5]

template<class T >
RefConst< T > & RefConst< T >::operator= ( const RefConst< T > &  inRHS)
inline

◆ operator=() [3/5]

template<class T >
RefConst< T > & RefConst< T >::operator= ( const T *  inRHS)
inline

Assignment operators.

◆ operator=() [4/5]

template<class T >
RefConst< T > & RefConst< T >::operator= ( Ref< T > &&  inRHS)
inlinenoexcept

◆ operator=() [5/5]

template<class T >
RefConst< T > & RefConst< T >::operator= ( RefConst< T > &&  inRHS)
inlinenoexcept

◆ operator==() [1/3]

template<class T >
bool RefConst< T >::operator== ( const Ref< T > &  inRHS) const
inline

◆ operator==() [2/3]

template<class T >
bool RefConst< T >::operator== ( const RefConst< T > &  inRHS) const
inline

◆ operator==() [3/3]

template<class T >
bool RefConst< T >::operator== ( const T *  inRHS) const
inline

Comparison.


The documentation for this class was generated from the following file: