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

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 > &  )
delete

◆ 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-2022