OpendTect-6_4  6.4
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 > &)
 
 ConstArrPtrMan (const T *=0)
 
ConstArrPtrMan< T > & operator= (const T *p)
 
ConstArrPtrMan< T > & operator= (const ConstArrPtrMan< T > &)
 Will give linkerror if used. More...
 
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 deleteFunc (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 ConstArrPtrMan< T >

Smart pointer for const pointers allocated as arrays.

Constructor & Destructor Documentation

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

Member Function Documentation

template<class T>
static void ConstArrPtrMan< T >::deleteFunc ( T *  p)
inlinestaticprivate
template<class T>
ConstArrPtrMan< T >::operator const T * ( ) const
inline
template<class T>
const T& ConstArrPtrMan< T >::operator* ( ) const
inline
template<class T>
const T* ConstArrPtrMan< T >::operator-> ( ) const
inline
template<class T >
ConstArrPtrMan< T > & ConstArrPtrMan< T >::operator= ( const T *  p)
inline
template<class T>
ConstArrPtrMan<T>& ConstArrPtrMan< T >::operator= ( const ConstArrPtrMan< T > &  )

Will give linkerror if used.

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

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