OpendTect-6_4  6.4
Public Member Functions | Static Private Member Functions | List of all members
ConstRefMan< T > Class Template Reference
Inheritance diagram for ConstRefMan< T >:
[legend]

Public Member Functions

 ConstRefMan (const ConstRefMan< T > &)
 
 ConstRefMan (const T *=0)
 
ConstRefMan< T > & operator= (const T *p)
 
ConstRefMan< T > & operator= (const ConstRefMan< T > &)
 
const T * ptr () const
 
 operator const T * () const
 
const T * operator-> () const
 
const T & operator* () const
 
- Public Member Functions inherited from PtrManBase< T >
bool operator! () const
 
T * set (T *p, bool doerase=true)
 Returns old pointer if not erased. More...
 
T * release ()
 Returns pointer. I won't take care of it any longer. More...
 
void erase ()
 
bool setIfNull (T *p)
 
T * createIfNull (PointerCreator=createSingleObject< T >)
 

Static Private Member Functions

static void ref (T *p)
 
static void unRef (T *p)
 

Additional Inherited Members

- Public Types inherited from PtrManBase< T >
typedef T *(* PointerCreator) ()
 
- Protected Types inherited from PtrManBase< T >
typedef void(* PtrFunc) (T *)
 
- Protected Member Functions inherited from PtrManBase< T >
 PtrManBase (PtrFunc setfunc, PtrFunc deletor, T *)
 
virtual ~PtrManBase ()
 
- Protected Attributes inherited from PtrManBase< T >
Threads::AtomicPointer< T > ptr_
 
PtrFunc setfunc_
 
PtrFunc deletefunc_
 

Detailed Description

template<class T>
class ConstRefMan< T >

Smart pointer for reference counted objects.

Constructor & Destructor Documentation

template<class T>
ConstRefMan< T >::ConstRefMan ( const ConstRefMan< T > &  p)
inline
template<class T>
ConstRefMan< T >::ConstRefMan ( const T *  p = 0)
inline

Member Function Documentation

template<class T>
ConstRefMan< T >::operator const T * ( ) const
inline
template<class T>
const T& ConstRefMan< T >::operator* ( ) const
inline
template<class T>
const T* ConstRefMan< T >::operator-> ( ) const
inline
template<class T>
ConstRefMan< T > & ConstRefMan< T >::operator= ( const T *  p)
inline
template<class T>
ConstRefMan< T > & ConstRefMan< T >::operator= ( const ConstRefMan< T > &  p)
inline
template<class T>
const T* ConstRefMan< T >::ptr ( ) const
inline
template<class T>
static void ConstRefMan< T >::ref ( T *  p)
inlinestaticprivate
template<class T>
static void ConstRefMan< T >::unRef ( T *  p)
inlinestaticprivate

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019