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

Public Types

typedef int idx_type
 
typedef Threads::SpinLock LockType
 
typedef int size_type
 

Public Member Functions

void cleanupNullPtrs ()
 
void erase ()
 
idx_type indexOf (const T *) const
 
bool operator+= (const WeakPtr< T > &)
 
bool operator+= (RefMan< T > &)
 
RefMan< T > operator[] (idx_type)
 
ConstRefMan< T > operator[] (idx_type) const
 
void removeRange (idx_type from, idx_type to)
 
void removeSingle (idx_type, bool keep_order=true)
 
size_type size () const
 
bool validIdx (idx_type) const
 

Private Attributes

LockType lock_
 
ManagedObjectSet< WeakPtr< T > > ptrs_
 

Additional Inherited Members

- Protected Attributes inherited from RefCount::WeakPtrSetBase
Threads::Atomic< int > blockcleanup_ = 0
 

Detailed Description

template<class T>
class WeakPtrSet< T >

<>

Member Typedef Documentation

◆ idx_type

template<class T >
typedef int WeakPtrSet< T >::idx_type

◆ LockType

template<class T >
typedef Threads::SpinLock WeakPtrSet< T >::LockType

◆ size_type

template<class T >
typedef int WeakPtrSet< T >::size_type

Member Function Documentation

◆ cleanupNullPtrs()

template<class T >
void WeakPtrSet< T >::cleanupNullPtrs
inline

◆ erase()

template<class T >
void WeakPtrSet< T >::erase
inline

◆ indexOf()

template<class T >
int WeakPtrSet< T >::indexOf ( const T *  p) const
inline

◆ operator+=() [1/2]

template<class T >
bool WeakPtrSet< T >::operator+= ( const WeakPtr< T > &  toadd)
inline

◆ operator+=() [2/2]

template<class T >
bool WeakPtrSet< T >::operator+= ( RefMan< T > &  toadd)
inline

◆ operator[]() [1/2]

template<class T >
RefMan< T > WeakPtrSet< T >::operator[] ( idx_type  idx)
inline

◆ operator[]() [2/2]

template<class T >
ConstRefMan< T > WeakPtrSet< T >::operator[] ( idx_type  idx) const
inline

◆ removeRange()

template<class T >
void WeakPtrSet< T >::removeRange ( idx_type  from,
idx_type  to 
)
inline

◆ removeSingle()

template<class T >
void WeakPtrSet< T >::removeSingle ( idx_type  idx,
bool  keep_order = true 
)
inline

◆ size()

template<class T >
int WeakPtrSet< T >::size
inline

◆ validIdx()

template<class T >
bool WeakPtrSet< T >::validIdx ( idx_type  idx) const
inline

Member Data Documentation

◆ lock_

template<class T >
LockType WeakPtrSet< T >::lock_
mutableprivate

◆ ptrs_

template<class T >
ManagedObjectSet<WeakPtr<T> > WeakPtrSet< T >::ptrs_
private

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