OpendTect  6.6
Public Member Functions | Static Private Member Functions | List of all members
ConstPtrMan< T > Class Template Reference
Inheritance diagram for ConstPtrMan< T >:
[legend]

Public Member Functions

 ConstPtrMan (const ConstPtrMan< T > &)=delete
 
 ConstPtrMan (const T *=nullptr)
 
 ConstPtrMan (ConstPtrMan< T > &&)
 
ConstPtrMan< T > & operator= (const ConstPtrMan< T > &)=delete
 
ConstPtrMan< T > & operator= (const T *p)
 
- Public Member Functions inherited from ConstPtrManBase< T >
T * getNonConstPtr () const
 
 operator const T * () const
 
const T & operator* () const
 
const T * operator-> () const
 
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)
 

Static Private Member Functions

static void deleteFunc (T *p)
 

Additional Inherited Members

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

Detailed Description

template<class T>
class ConstPtrMan< T >

Smart pointer for normal const pointers.

<>

Constructor & Destructor Documentation

◆ ConstPtrMan() [1/3]

template<class T >
ConstPtrMan< T >::ConstPtrMan ( const T *  p = nullptr)
inline

◆ ConstPtrMan() [2/3]

template<class T >
ConstPtrMan< T >::ConstPtrMan ( ConstPtrMan< T > &&  p)
inline

◆ ConstPtrMan() [3/3]

template<class T >
ConstPtrMan< T >::ConstPtrMan ( const ConstPtrMan< T > &  )
delete

Member Function Documentation

◆ deleteFunc()

template<class T >
static void ConstPtrMan< T >::deleteFunc ( T *  p)
inlinestaticprivate

◆ operator=() [1/2]

template<class T >
ConstPtrMan<T>& ConstPtrMan< T >::operator= ( const ConstPtrMan< T > &  )
delete

◆ operator=() [2/2]

template<class T >
ConstPtrMan< T > & ConstPtrMan< T >::operator= ( const T *  p)
inline

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