OpendTect-6_4  6.4
Public Types | Public Member Functions | List of all members
ManagedObjectSet< T > Class Template Reference

ObjectSet where the objects contained are owned by this set. More...

Inheritance diagram for ManagedObjectSet< T >:
[legend]

Public Types

typedef int size_type
 
typedef T object_type
 
- Public Types inherited from ObjectSet< T >
typedef int size_type
 
typedef T object_type
 

Public Member Functions

 ManagedObjectSet ()
 
 ManagedObjectSet (const ManagedObjectSet< T > &)
 
virtual ~ManagedObjectSet ()
 
ManagedObjectSet< T > & operator= (const ObjectSet< T > &)
 
ManagedObjectSet< T > & operator= (const ManagedObjectSet< T > &)
 
virtual bool isManaged () const
 
virtual void erase ()
 
virtual void append (const ObjectSet< T > &)
 
virtual void removeRange (size_type, size_type)
 
virtual T * removeSingle (int idx, bool kporder=true)
 
virtual T * removeAndTake (int idx, bool kporder=true)
 
virtual T * replace (int idx, T *)
 
virtual ManagedObjectSet< T > & operator-= (T *)
 
- Public Member Functions inherited from ObjectSet< T >
 ObjectSet ()
 
 ObjectSet (const ObjectSet< T > &)
 
virtual ~ObjectSet ()
 
ObjectSet< T > & operator= (const ObjectSet< T > &)
 
bool nullAllowed () const
 
void allowNull (bool yn=true)
 
size_type size () const
 
virtual int64_t nrItems () const
 
virtual T * operator[] (size_type)
 
virtual const T * operator[] (size_type) const
 
virtual T * operator[] (const T *) const
 check & unconst More...
 
virtual bool validIdx (int64_t) const
 
virtual bool isPresent (const T *) const
 
virtual size_type indexOf (const T *) const
 
T * first ()
 
const T * first () const
 
T * last ()
 
const T * last () const
 
ObjectSet< T > & add (T *t)
 
ObjectSet< T > & operator+= (T *t)
 
void push (T *t)
 
bool addIfNew (T *)
 
virtual void insertAt (T *newptr, size_type)
 
virtual void insertAfter (T *newptr, size_type)
 
virtual void copy (const ObjectSet< T > &)
 
virtual void swap (int64_t, int64_t)
 
virtual void reverse ()
 
virtual T * pop ()
 
void plainErase ()
 
- Public Member Functions inherited from OD::Set
virtual ~Set ()
 
bool isEmpty () const
 
void setEmpty ()
 

Additional Inherited Members

- Protected Member Functions inherited from ObjectSet< T >
virtual ObjectSet< T > & doAdd (T *)
 
- Protected Attributes inherited from ObjectSet< T >
VectorAccess< void *, size_typevec_
 
bool allow0_
 

Detailed Description

template<class T>
class ManagedObjectSet< T >

ObjectSet where the objects contained are owned by this set.

Member Typedef Documentation

template<class T>
typedef T ManagedObjectSet< T >::object_type
template<class T>
typedef int ManagedObjectSet< T >::size_type

Constructor & Destructor Documentation

template<class T>
ManagedObjectSet< T >::ManagedObjectSet ( )
inline
template<class T>
ManagedObjectSet< T >::ManagedObjectSet ( const ManagedObjectSet< T > &  t)
inline
template<class T >
ManagedObjectSet< T >::~ManagedObjectSet ( )
inlinevirtual

Member Function Documentation

template<class T>
void ManagedObjectSet< T >::append ( const ObjectSet< T > &  os)
inlinevirtual

Reimplemented from ObjectSet< T >.

template<class T>
virtual void ManagedObjectSet< T >::erase ( )
inlinevirtual

Reimplemented from ObjectSet< T >.

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

Reimplemented from ObjectSet< T >.

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

Reimplemented from ObjectSet< T >.

template<class T>
ManagedObjectSet< T > & ManagedObjectSet< T >::operator= ( const ObjectSet< T > &  os)
inline
template<class T>
ManagedObjectSet< T > & ManagedObjectSet< T >::operator= ( const ManagedObjectSet< T > &  os)
inline
template<class T >
T * ManagedObjectSet< T >::removeAndTake ( int  idx,
bool  kporder = true 
)
inlinevirtual

Does not delete the entry.

template<class T >
void ManagedObjectSet< T >::removeRange ( size_type  i1,
size_type  i2 
)
inlinevirtual

Reimplemented from ObjectSet< T >.

template<class T >
T * ManagedObjectSet< T >::removeSingle ( int  idx,
bool  kporder = true 
)
inlinevirtual

Deletes entry and returns 0

Reimplemented from ObjectSet< T >.

template<class T>
T * ManagedObjectSet< T >::replace ( int  idx,
T *  ptr 
)
inlinevirtual

Deletes entry and returns 0

Reimplemented from ObjectSet< T >.


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