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

Public Member Functions

 ConstArrPtrMan (const T *=nullptr)
 
ConstArrPtrMan< T > & operator= (const T *)
 
- 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)
 

Private Member Functions

 ConstArrPtrMan (const ConstArrPtrMan< T > &)=delete
 
ConstArrPtrMan< T > & operator= (const ConstArrPtrMan< T > &)=delete
 

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 ConstArrPtrMan< T >

Smart pointer for const pointers allocated as arrays.

<>

Constructor & Destructor Documentation

◆ ConstArrPtrMan() [1/2]

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

◆ ConstArrPtrMan() [2/2]

template<class T >
ConstArrPtrMan< T >::ConstArrPtrMan ( const ConstArrPtrMan< T > &  )
privatedelete

Member Function Documentation

◆ deleteFunc()

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

◆ operator=() [1/2]

template<class T >
ConstArrPtrMan<T>& ConstArrPtrMan< T >::operator= ( const ConstArrPtrMan< T > &  )
privatedelete

◆ operator=() [2/2]

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

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