public

Inheritance Graph

graph BT
	_Ptr
	click _Ptr "classEScript_1_1__Ptr"

Description

Simple wrapper for a pointer to a possibly.

Information

   
   
_T * get() const
Returns a pointer to the referenced Object .
   
_T * operator->() const
Direct access to the referenced Object .
   
bool isNull() const
Returns true if the referenced object is nullptr.
   
bool isNotNull() const
Returns true if the referenced object is not nullptr.
   
  operator bool() const
   
bool operator==(const _Ptr & other) const
   
bool operator==(const _CountedRef < _T > & other) const
   
bool operator==(const _T * o2) const
   
bool operator!=(const _Ptr & other) const
   
bool operator!=(const _CountedRef < _T > & other) const
   
bool operator!=(const _T * o2) const

Public Functions

   
   
  _Ptr()
   
  _Ptr(_T * _obj)
   
  _Ptr(const _CountedRef < _T > & other)
   
void swap( _Ptr & other)
Swap the referenced pointers without touching the reference counter.
template< class _T2 >  
_T2 * toType() const
Tries to convert object to given Type ; returns nullptr if object is nullptr or not of given type.
template< class _T2 >  
_T2 * castTo() const

Documentation

function
EScript::_Ptr::get

public const inline
   
   
_T * get( ) const

Returns a pointer to the referenced Object .

Defined in EScript/EScript/Utils/ObjRef.h:136


function
EScript::_Ptr::operator->

public const inline
   
   
_T * operator->( ) const

Direct access to the referenced Object .

Defined in EScript/EScript/Utils/ObjRef.h:139


function
EScript::_Ptr::isNull

public const inline
   
   
bool isNull( ) const

Returns true if the referenced object is nullptr.

Defined in EScript/EScript/Utils/ObjRef.h:142


function
EScript::_Ptr::isNotNull

public const inline
   
   
bool isNotNull( ) const

Returns true if the referenced object is not nullptr.

Defined in EScript/EScript/Utils/ObjRef.h:145


function
EScript::_Ptr::operator bool

public const inline explicit
   
   
operator bool( ) const

Defined in EScript/EScript/Utils/ObjRef.h:147


function
EScript::_Ptr::operator==

public const inline
     
     
bool operator==( const _Ptr & other ) const

Defined in EScript/EScript/Utils/ObjRef.h:149


function
EScript::_Ptr::operator==

public const inline
     
     
bool operator==( const _CountedRef < _T > & other ) const

Defined in EScript/EScript/Utils/ObjRef.h:150


function
EScript::_Ptr::operator==

public const inline
     
     
bool operator==( const _T * o2 ) const

Defined in EScript/EScript/Utils/ObjRef.h:151


function
EScript::_Ptr::operator!=

public const inline
     
     
bool operator!=( const _Ptr & other ) const

Defined in EScript/EScript/Utils/ObjRef.h:152


function
EScript::_Ptr::operator!=

public const inline
     
     
bool operator!=( const _CountedRef < _T > & other ) const

Defined in EScript/EScript/Utils/ObjRef.h:153


function
EScript::_Ptr::operator!=

public const inline
     
     
bool operator!=( const _T * o2 ) const

Defined in EScript/EScript/Utils/ObjRef.h:154


function
EScript::_Ptr::_Ptr

public inline
   
   
_Ptr( )

Defined in EScript/EScript/Utils/ObjRef.h:117


function
EScript::_Ptr::_Ptr

public inline
     
     
_Ptr( _T * _obj )

Defined in EScript/EScript/Utils/ObjRef.h:118


function
EScript::_Ptr::_Ptr

public inline
     
     
_Ptr( const _CountedRef < _T > & other )

Defined in EScript/EScript/Utils/ObjRef.h:119


function
EScript::_Ptr::swap

public inline
     
     
void swap( _Ptr & other )

Swap the referenced pointers without touching the reference counter.

Defined in EScript/EScript/Utils/ObjRef.h:122


function
EScript::_Ptr::toType

public const inline
   
template< class _T2 >  
_T2 * toType( ) const

Tries to convert object to given Type ; returns nullptr if object is nullptr or not of given type.

Defined in EScript/EScript/Utils/ObjRef.h:130


function
EScript::_Ptr::castTo

public const inline
   
template< class _T2 >  
_T2 * castTo( ) const

Defined in EScript/EScript/Utils/ObjRef.h:131