|
ug4
|
#include <smart_pointer.h>
Public Member Functions | |
| template<class T , template< class TPtr > class TFreePolicy> | |
| ConstSmartPtr< T, TFreePolicy > | cast_reinterpret () const |
| Returns a SmartPtr with the specified type and shared reference counting. | |
| ConstSmartPtr () | |
| template<class T , template< class TPtr > class TFreePolicy> | |
| ConstSmartPtr (const ConstSmartPtr< T, TFreePolicy > &sp) | |
| ConstSmartPtr (const ConstSmartPtr< void > &sp) | |
| template<class T , template< class TPtr > class TFreePolicy> | |
| ConstSmartPtr (const SmartPtr< T, TFreePolicy > &sp) | |
| ConstSmartPtr (const SmartPtr< void > &sp) | |
| ConstSmartPtr (NullSmartPtr) | |
| ConstSmartPtr (void *ptr, void(*freeFunc)(const void *)) | |
| const void * | get () const |
| bool | invalid () const |
| returns true if the pointer is invalid, false if not. | |
| void | invalidate () |
| operator bool () const noexcept | |
| template<class T , template< class TPtr > class TFreePolicy> | |
| ConstSmartPtr< void > & | operator= (const ConstSmartPtr< T, TFreePolicy > &sp) |
| ConstSmartPtr< void > & | operator= (const ConstSmartPtr< void > &sp) |
| template<class T , template< class TPtr > class TFreePolicy> | |
| ConstSmartPtr< void > & | operator= (const SmartPtr< T, TFreePolicy > &sp) |
| ConstSmartPtr< void > & | operator= (const SmartPtr< void > &sp) |
| ConstSmartPtr< void > & | operator= (NullSmartPtr) |
| int | refcount () const |
| template<class T , template< class TPtr > class TFreePolicy> | |
| void | set_impl (const void *ptr) |
| sets the void* to a different location correspoding to a cast to a new type T | |
| bool | valid () const |
| returns true if the pointer is valid, false if not. | |
| ~ConstSmartPtr () | |
Private Member Functions | |
| void | release () |
Private Attributes | |
| void(* | m_freeFunc )(const void *) |
| const void * | m_ptr |
| int * | m_refCountPtr |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References ConstSmartPtr< T, FreePolicy >::release().
|
inline |
Returns a SmartPtr with the specified type and shared reference counting.
USE WITH CARE! ONLY COMPATIBLE TYPES SHOULD BE USED
References ConstSmartPtr< T, FreePolicy >::m_ptr.
|
inline |
References ConstSmartPtr< T, FreePolicy >::m_ptr.
Referenced by ug::bridge::lua::LuaParsing< const void * >::checkAndGet(), and ug::vrl::jObject2PtrVector().
|
inline |
returns true if the pointer is invalid, false if not.
References ConstSmartPtr< T, FreePolicy >::m_ptr.
|
inline |
|
inlineexplicitnoexcept |
References ConstSmartPtr< T, FreePolicy >::m_ptr.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
References ConstSmartPtr< T, FreePolicy >::m_ptr.
|
inline |
sets the void* to a different location correspoding to a cast to a new type T
!!! WARNING: THIS METHOD IS DANDGEROUS: DO NOT USE IT UNLESS YOU REALLY KNOW WHAT YOU ARE DOING !!!
References ConstSmartPtr< T, FreePolicy >::m_ptr.
|
inline |
returns true if the pointer is valid, false if not.
References ConstSmartPtr< T, FreePolicy >::m_ptr.
|
private |
|
private |
|
private |