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

Set of pointers to objects. More...

Inherits OD::Set.

Inherited by ManagedObjectSet< T >.

Public Types

typedef int size_type
 
typedef T object_type
 

Public Member Functions

 ObjectSet ()
 
 ObjectSet (const ObjectSet< T > &)
 
virtual ~ObjectSet ()
 
ObjectSet< T > & operator= (const ObjectSet< T > &)
 
virtual bool isManaged () const
 
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 T * replace (size_type idx, T *)
 
virtual void insertAt (T *newptr, size_type)
 
virtual void insertAfter (T *newptr, size_type)
 
virtual void copy (const ObjectSet< T > &)
 
virtual void append (const ObjectSet< T > &)
 
virtual void swap (int64_t, int64_t)
 
virtual void reverse ()
 
virtual void erase ()
 
virtual T * pop ()
 
virtual T * removeSingle (size_type, bool keep_order=true)
 
virtual void removeRange (size_type from, size_type to)
 
virtual ObjectSet< T > & operator-= (T *)
 
void plainErase ()
 
- Public Member Functions inherited from OD::Set
virtual ~Set ()
 
bool isEmpty () const
 
void setEmpty ()
 

Protected Member Functions

virtual ObjectSet< T > & doAdd (T *)
 

Protected Attributes

VectorAccess< void *, size_typevec_
 
bool allow0_
 

Detailed Description

template<class T>
class ObjectSet< T >

Set of pointers to objects.

The ObjectSet does not manage the objects, it is just a collection of pointers to the objects. If you want management, use ManagedObjectSet.

Member Typedef Documentation

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

Constructor & Destructor Documentation

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

Member Function Documentation

template<class T>
ObjectSet<T>& ObjectSet< T >::add ( T *  t)
inline
template<class T>
bool ObjectSet< T >::addIfNew ( T *  ptr)
inline
template<class T >
void ObjectSet< T >::allowNull ( bool  yn = true)
inline
template<class T>
void ObjectSet< T >::append ( const ObjectSet< T > &  os)
inlinevirtual
template<class T>
void ObjectSet< T >::copy ( const ObjectSet< T > &  os)
inlinevirtual
template<class T>
ObjectSet< T > & ObjectSet< T >::doAdd ( T *  ptr)
inlineprotectedvirtual

Reimplemented in PropertyRefSet.

template<class T>
virtual void ObjectSet< T >::erase ( )
inlinevirtual
template<class T >
T * ObjectSet< T >::first ( )
inline
template<class T >
const T * ObjectSet< T >::first ( ) const
inline
template<class T>
ObjectSet< T >::size_type ObjectSet< T >::indexOf ( const T *  ptr) const
inlinevirtual
template<class T>
void ObjectSet< T >::insertAfter ( T *  newptr,
size_type  idx 
)
inlinevirtual
template<class T>
void ObjectSet< T >::insertAt ( T *  newptr,
size_type  idx 
)
inlinevirtual
template<class T>
virtual bool ObjectSet< T >::isManaged ( ) const
inlinevirtual
template<class T>
bool ObjectSet< T >::isPresent ( const T *  ptr) const
inlinevirtual

Reimplemented in PropertyRefSet, and BufferStringSet.

template<class T >
T * ObjectSet< T >::last ( )
inline
template<class T >
const T * ObjectSet< T >::last ( ) const
inline
template<class T>
virtual int64_t ObjectSet< T >::nrItems ( ) const
inlinevirtual

Implements OD::Set.

template<class T>
bool ObjectSet< T >::nullAllowed ( ) const
inline
template<class T>
ObjectSet<T>& ObjectSet< T >::operator+= ( T *  t)
inline
template<class T>
ObjectSet< T > & ObjectSet< T >::operator-= ( T *  ptr)
inlinevirtual
template<class T>
ObjectSet< T > & ObjectSet< T >::operator= ( const ObjectSet< T > &  os)
inline
template<class T >
T * ObjectSet< T >::operator[] ( size_type  idx)
inlinevirtual
template<class T >
const T * ObjectSet< T >::operator[] ( size_type  idx) const
inlinevirtual
template<class T>
T * ObjectSet< T >::operator[] ( const T *  t) const
inlinevirtual

check & unconst

template<class T>
void ObjectSet< T >::plainErase ( )
inline

Not virtual. Don't use casually.

template<class T >
T * ObjectSet< T >::pop ( )
inlinevirtual
template<class T>
void ObjectSet< T >::push ( T *  t)
inline
template<class T >
void ObjectSet< T >::removeRange ( size_type  from,
size_type  to 
)
inlinevirtual
template<class T >
T * ObjectSet< T >::removeSingle ( size_type  idx,
bool  keep_order = true 
)
inlinevirtual
template<class T>
T * ObjectSet< T >::replace ( size_type  idx,
T *  newptr 
)
inlinevirtual
template<class T >
void ObjectSet< T >::reverse ( )
inlinevirtual
template<class T>
size_type ObjectSet< T >::size ( ) const
inline
template<class T >
void ObjectSet< T >::swap ( int64_t  idx0,
int64_t  idx1 
)
inlinevirtual

Implements OD::Set.

template<class T >
bool ObjectSet< T >::validIdx ( int64_t  idx) const
inlinevirtual

Implements OD::Set.

Member Data Documentation

template<class T>
bool ObjectSet< T >::allow0_
protected
template<class T>
VectorAccess<void*,size_type> ObjectSet< T >::vec_
protected

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