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

Public Member Functions

 WeakPtr (const WeakPtr< T > &p)
 
 WeakPtr (RefCount::Referenced *p=0)
 
 WeakPtr (RefMan< T > &p)
 
 ~WeakPtr ()
 
RefMan< T > get () const
 
WeakPtr< T > & operator= (const WeakPtr< T > &p)
 
RefMan< T > & operator= (RefMan< T > &p)
 
T * operator= (T *p)
 
- Public Member Functions inherited from RefCount::WeakPtrBase
 operator bool () const
 
bool operator! () const
 
bool operator== (const WeakPtrBase &r) const
 

Additional Inherited Members

- Public Types inherited from RefCount::WeakPtrBase
typedef Threads::SpinLock LockType
 
- Protected Member Functions inherited from RefCount::WeakPtrBase
 WeakPtrBase ()
 
void clearPtr ()
 
void set (Referenced *)
 
- Protected Attributes inherited from RefCount::WeakPtrBase
LockType lock_
 
Referencedptr_
 

Detailed Description

template<class T>
class WeakPtr< T >

Observes a refereence counted object. If you wish to use the pointer, you have to obtain it using get().

<>

Constructor & Destructor Documentation

◆ WeakPtr() [1/3]

template<class T >
WeakPtr< T >::WeakPtr ( RefCount::Referenced p = 0)
inline

◆ WeakPtr() [2/3]

template<class T >
WeakPtr< T >::WeakPtr ( const WeakPtr< T > &  p)
inline

◆ WeakPtr() [3/3]

template<class T >
WeakPtr< T >::WeakPtr ( RefMan< T > &  p)
inline

◆ ~WeakPtr()

template<class T >
WeakPtr< T >::~WeakPtr ( )
inline

Member Function Documentation

◆ get()

template<class T >
RefMan< T > WeakPtr< T >::get

◆ operator=() [1/3]

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

◆ operator=() [2/3]

template<class T >
RefMan<T>& WeakPtr< T >::operator= ( RefMan< T > &  p)
inline

◆ operator=() [3/3]

template<class T >
T* WeakPtr< T >::operator= ( T *  p)
inline

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