OpendTect  6.6
Public Member Functions | Protected Types | Protected Member Functions | List of all members
NonConstPtrManBase< T > Class Template Reference
Inheritance diagram for NonConstPtrManBase< T >:
[legend]

Public Member Functions

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

Protected Types

typedef void(* PtrFunc) (T *)
 
- Protected Types inherited from PtrManBase< T >
typedef void(* PtrFunc) (T *)
 

Protected Member Functions

 NonConstPtrManBase (PtrFunc setfunc, PtrFunc deletor, T *p)
 
- Protected Member Functions inherited from PtrManBase< T >
 PtrManBase (PtrFunc setfunc, PtrFunc deletor, T *)
 
virtual ~PtrManBase ()
 

Additional Inherited Members

- Public Types inherited from PtrManBase< T >
typedef T *(* PointerCreator) ()
 
- Protected Attributes inherited from PtrManBase< T >
PtrFunc deletefunc_
 
Threads::AtomicPointer< T > ptr_
 
PtrFunc setfunc_
 

Detailed Description

template<class T>
class NonConstPtrManBase< T >

<>

Member Typedef Documentation

◆ PtrFunc

template<class T >
typedef void(* NonConstPtrManBase< T >::PtrFunc) (T *)
protected

Constructor & Destructor Documentation

◆ NonConstPtrManBase()

template<class T >
NonConstPtrManBase< T >::NonConstPtrManBase ( PtrFunc  setfunc,
PtrFunc  deletor,
T *  p 
)
inlineprotected

Member Function Documentation

◆ getNonConstPtr()

template<class T >
T* NonConstPtrManBase< T >::getNonConstPtr ( ) const
inline

◆ operator const T *()

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

◆ operator T*()

template<class T >
NonConstPtrManBase< T >::operator T* ( )
inline

◆ operator*() [1/2]

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

◆ operator*() [2/2]

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

◆ operator->() [1/2]

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

◆ operator->() [2/2]

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

◆ ptr() [1/2]

template<class T >
T* NonConstPtrManBase< T >::ptr ( )
inline

◆ ptr() [2/2]

template<class T >
const T* NonConstPtrManBase< T >::ptr ( ) const
inline

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