Support Forum       G3D Web Page     
Public Member Functions | Public Attributes | List of all members
G3D::_internal::Indirector< Type > Class Template Reference


Wraps a pointer value so that it can be treated as the instance itself; convenient for inserting pointers into a Table but using the object equality instead of pointer equality. More...

Public Member Functions

 Indirector (Type *h)
 
 Indirector ()
 
size_t hashCode () const
 
bool operator== (const Indirector &m) const
 Returns true iff the values referenced by the handles are equivalent. More...
 
bool operator== (const Type &m) const
 

Public Attributes

Type * handle
 

Detailed Description

template<class Type>
class G3D::_internal::Indirector< Type >


Wraps a pointer value so that it can be treated as the instance itself; convenient for inserting pointers into a Table but using the object equality instead of pointer equality.

Constructor & Destructor Documentation

◆ Indirector() [1/2]

template<class Type>
G3D::_internal::Indirector< Type >::Indirector ( Type *  h)
inline

◆ Indirector() [2/2]

template<class Type>
G3D::_internal::Indirector< Type >::Indirector ( )
inline

Member Function Documentation

◆ hashCode()

template<class Type>
size_t G3D::_internal::Indirector< Type >::hashCode ( ) const
inline

◆ operator==() [1/2]

template<class Type>
bool G3D::_internal::Indirector< Type >::operator== ( const Indirector< Type > &  m) const
inline

Returns true iff the values referenced by the handles are equivalent.

◆ operator==() [2/2]

template<class Type>
bool G3D::_internal::Indirector< Type >::operator== ( const Type &  m) const
inline

Member Data Documentation

◆ handle

template<class Type>
Type* G3D::_internal::Indirector< Type >::handle

documentation generated on Wed Nov 24 2021 08:02:03 using doxygen 1.8.15