OpendTect  6.6
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Private Attributes | List of all members
ManagedObjectSetBase< T > Class Template Reference

Helper class to RefObjectSet and ManagedObjectSet. More...

Inheritance diagram for ManagedObjectSetBase< T >:
[legend]

Public Types

typedef ObjectSet< T >::idx_type idx_type
 
typedef ObjectSet< T >::size_type size_type
 
- Public Types inherited from ObjectSet< T >
typedef impl_type::const_iterator const_iterator
 
typedef const value_typeconst_reference
 
typedef size_type difference_type
 
typedef size_type idx_type
 
typedef impl_type::iterator iterator
 
typedef T object_type
 
typedef value_typereference
 
typedef int size_type
 
typedef T * value_type
 

Public Member Functions

virtual void erase ()
 
virtual bool isManaged () const
 
virtual ManagedObjectSetBase< T > & operator-= (T *)
 
virtual T * removeAndTake (idx_type, bool kporder=true)
 
virtual void removeRange (idx_type, idx_type)
 
virtual T * removeSingle (idx_type, bool kporder=true)
 
virtual T * replace (idx_type, T *)
 
- Public Member Functions inherited from ObjectSet< T >
 ObjectSet ()
 
 ObjectSet (const ObjectSet &)
 
 ObjectSet (T *)
 
 ObjectSet (T *, T *)
 
 ObjectSet (T *, T *, T *)
 
virtual ~ObjectSet ()
 
ObjectSetadd (T *t)
 
bool addIfNew (T *)
 
void allowNull (bool yn=true)
 
virtual void append (const ObjectSet &)
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
virtual ObjectSetclone () const
 
virtual void copy (const ObjectSet &)
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
T * first ()
 
const T * first () const
 
virtual T * get (const T *) const
 check & unconst More...
 
virtual T * get (idx_type)
 
virtual const T * get (idx_type) const
 
idx_type getIdx (const_iterator it) const
 
idx_type getIdx (iterator it) const
 
virtual idx_type indexOf (const T *) const
 
virtual void insertAfter (T *newptr, idx_type)
 
virtual void insertAt (T *newptr, idx_type)
 
virtual bool isPresent (const T *) const
 
T * last ()
 
const T * last () const
 
size_type max_size () const
 
virtual int64_t nrItems () const
 
bool nullAllowed () const
 
bool operator!= (const ObjectSet &oth) const
 
ObjectSetoperator+= (T *t)
 
ObjectSetoperator= (const ObjectSet &)
 
bool operator== (const ObjectSet &) const
 
const T * operator[] (const T *t) const
 
T * operator[] (idx_type i)
 
const T * operator[] (idx_type i) const
 
void plainErase ()
 
virtual T * pop ()
 
void push (T *t)
 
virtual void reverse ()
 
void setNullAllowed (bool yn=true)
 
size_type size () const
 
void swap (idx_type, idx_type)
 
void swap (ObjectSet &oth)
 
virtual void swapItems (int64_t i1, int64_t i2)
 
void useIndexes (const idx_type *)
 
virtual bool validIdx (int64_t) const
 
- Public Member Functions inherited from OD::Set
virtual ~Set ()
 
bool isEmpty () const
 
void setEmpty ()
 

Protected Types

typedef void(* PtrFunc) (T *ptr)
 
- Protected Types inherited from ObjectSet< T >
typedef VectorAccess< T *, size_typeimpl_type
 

Protected Member Functions

 ManagedObjectSetBase (PtrFunc delfunc)
 
 ~ManagedObjectSetBase ()
 
- Protected Member Functions inherited from ObjectSet< T >
virtual ObjectSetdoAdd (T *)
 

Private Attributes

PtrFunc delfunc_
 

Additional Inherited Members

- Static Public Member Functions inherited from OD::Set
static int maxIdx32 ()
 
static int64_t maxIdx64 ()
 
- Protected Attributes inherited from ObjectSet< T >
bool allow0_ = false
 
impl_type vec_
 

Detailed Description

template<class T>
class ManagedObjectSetBase< T >

Helper class to RefObjectSet and ManagedObjectSet.

<>

Member Typedef Documentation

◆ idx_type

template<class T >
typedef ObjectSet<T>::idx_type ManagedObjectSetBase< T >::idx_type

◆ PtrFunc

template<class T >
typedef void(* ManagedObjectSetBase< T >::PtrFunc) (T *ptr)
protected

◆ size_type

template<class T >
typedef ObjectSet<T>::size_type ManagedObjectSetBase< T >::size_type

Constructor & Destructor Documentation

◆ ManagedObjectSetBase()

template<class T >
ManagedObjectSetBase< T >::ManagedObjectSetBase ( PtrFunc  delfunc)
inlineprotected

◆ ~ManagedObjectSetBase()

template<class T >
ManagedObjectSetBase< T >::~ManagedObjectSetBase
inlineprotected

Member Function Documentation

◆ erase()

template<class T >
void ManagedObjectSetBase< T >::erase
inlinevirtual

Reimplemented from ObjectSet< T >.

◆ isManaged()

template<class T >
virtual bool ManagedObjectSetBase< T >::isManaged ( ) const
inlinevirtual

Reimplemented from ObjectSet< T >.

◆ operator-=()

template<class T >
ManagedObjectSetBase< T > & ManagedObjectSetBase< T >::operator-= ( T *  ptr)
inlinevirtual

Reimplemented from ObjectSet< T >.

◆ removeAndTake()

template<class T >
T * ManagedObjectSetBase< T >::removeAndTake ( idx_type  vidx,
bool  kporder = true 
)
inlinevirtual

Does not delete the entry.

◆ removeRange()

template<class T >
void ManagedObjectSetBase< T >::removeRange ( idx_type  i1,
idx_type  i2 
)
inlinevirtual

Reimplemented from ObjectSet< T >.

◆ removeSingle()

template<class T >
T * ManagedObjectSetBase< T >::removeSingle ( idx_type  vidx,
bool  kporder = true 
)
inlinevirtual

Removes entry and returns 0

Reimplemented from ObjectSet< T >.

◆ replace()

template<class T >
T * ManagedObjectSetBase< T >::replace ( idx_type  vidx,
T *  ptr 
)
inlinevirtual

Deletes entry and returns 0

Reimplemented from ObjectSet< T >.

Reimplemented in RefObjectSet< T >.

Member Data Documentation

◆ delfunc_

template<class T >
PtrFunc ManagedObjectSetBase< T >::delfunc_
private

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