OpendTect
6.6
|
Set of pointers to objects. More...
Inherits OD::Set.
Inherited by ManagedObjectSetBase< T >.
Public Types | |
typedef impl_type::const_iterator | const_iterator |
typedef const value_type & | const_reference |
typedef size_type | difference_type |
typedef size_type | idx_type |
typedef impl_type::iterator | iterator |
typedef T | object_type |
typedef value_type & | reference |
typedef int | size_type |
typedef T * | value_type |
Public Member Functions | |
ObjectSet () | |
ObjectSet (const ObjectSet &) | |
ObjectSet (T *) | |
ObjectSet (T *, T *) | |
ObjectSet (T *, T *, T *) | |
virtual | ~ObjectSet () |
ObjectSet & | add (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 ObjectSet * | clone () const |
virtual void | copy (const ObjectSet &) |
bool | empty () const |
iterator | end () |
const_iterator | end () const |
virtual void | erase () |
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 | isManaged () const |
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 |
ObjectSet & | operator+= (T *t) |
virtual ObjectSet & | operator-= (T *) |
ObjectSet & | operator= (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 | removeRange (idx_type from, idx_type to) |
virtual T * | removeSingle (idx_type, bool keep_order=true) |
virtual T * | replace (idx_type, 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 VectorAccess< T *, size_type > | impl_type |
Protected Member Functions | |
virtual ObjectSet & | doAdd (T *) |
Protected Attributes | |
bool | allow0_ = false |
impl_type | vec_ |
Additional Inherited Members | |
Static Public Member Functions inherited from OD::Set | |
static int | maxIdx32 () |
static int64_t | maxIdx64 () |
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.
Note: you can use indexOf(ptr) to see whether the object is in the set. If you know that the object is in the set, and you need the index of it, then you can use getIdx(ptr) to obtain its index.
<>
typedef impl_type::const_iterator ObjectSet< T >::const_iterator |
typedef const value_type& ObjectSet< T >::const_reference |
typedef size_type ObjectSet< T >::difference_type |
|
protected |
typedef impl_type::iterator ObjectSet< T >::iterator |
typedef T ObjectSet< T >::object_type |
typedef value_type& ObjectSet< T >::reference |
typedef T* ObjectSet< T >::value_type |
|
inline |
|
inline |
Reimplemented in ManagedObjectSet< WellDataIOProvider >, ManagedObjectSet< visSurvey::HorizonDisplay::IntersectionData >, ManagedObjectSet< visBase::Text >, ManagedObjectSet< uiToolButtonSetup >, ManagedObjectSet< uiGraphicsItem >, ManagedObjectSet< uiGMTOverlayGrpFactory::Entry >, ManagedObjectSet< T >, ManagedObjectSet< Strat::Lithology >, ManagedObjectSet< SeisTrcReader >, ManagedObjectSet< SeisPSIOProvider >, ManagedObjectSet< Seis::PreLoadDataEntry >, ManagedObjectSet< SectorData >, ManagedObjectSet< Projection >, ManagedObjectSet< OD::PythonAccess::ModuleInfo >, ManagedObjectSet< OD::ModDep >, ManagedObjectSet< Marker >, ManagedObjectSet< LineData >, ManagedObjectSet< LaySeqAttrib >, ManagedObjectSet< IOPar >, ManagedObjectSet< HostData >, ManagedObjectSet< GMTParFactory::Entry >, ManagedObjectSet< DataPackMgr >, ManagedObjectSet< DataEntry >, ManagedObjectSet< const UnitOfMeasure >, and ManagedObjectSet< BufferString >.
|
inline |
|
inline |
|
inline |
Implements OD::Set.
Reimplemented in RefObjectSet< T >, ManagedObjectSet< T >, ManagedObjectSet< uiGMTOverlayGrpFactory::Entry >, ManagedObjectSet< WellDataIOProvider >, ManagedObjectSet< OD::PythonAccess::ModuleInfo >, ManagedObjectSet< visBase::Text >, ManagedObjectSet< DataPackMgr >, ManagedObjectSet< visSurvey::HorizonDisplay::IntersectionData >, ManagedObjectSet< LineData >, ManagedObjectSet< uiToolButtonSetup >, ManagedObjectSet< Seis::PreLoadDataEntry >, ManagedObjectSet< IOPar >, ManagedObjectSet< uiGraphicsItem >, ManagedObjectSet< HostData >, ManagedObjectSet< SeisTrcReader >, ManagedObjectSet< GMTParFactory::Entry >, ManagedObjectSet< Strat::Lithology >, ManagedObjectSet< SeisPSIOProvider >, ManagedObjectSet< const UnitOfMeasure >, ManagedObjectSet< LaySeqAttrib >, ManagedObjectSet< OD::ModDep >, ManagedObjectSet< Marker >, ManagedObjectSet< BufferString >, ManagedObjectSet< SectorData >, ManagedObjectSet< DataEntry >, and ManagedObjectSet< Projection >.
Reimplemented in RefObjectSet< T >.
|
inline |
|
inline |
|
inlinevirtual |
Implements OD::Set.
Reimplemented in ManagedObjectSetBase< T >.
|
inline |
|
inline |
|
inlinevirtual |
check & unconst
|
inline |
|
inlinevirtual |
Reimplemented in RefObjectSet< T >.
|
inlinevirtual |
Reimplemented in ManagedObjectSetBase< T >.
|
inlinevirtual |
|
inline |
|
inline |
|
inlinevirtual |
Implements OD::Set.
|
inline |
Reimplemented in ManagedObjectSetBase< T >.
|
inline |
|
inline |
Not virtual. Don't use casually.
|
inlinevirtual |
|
inline |
Reimplemented in ManagedObjectSetBase< T >.
|
inlinevirtual |
Reimplemented in ManagedObjectSetBase< T >.
Reimplemented in RefObjectSet< T >, and ManagedObjectSetBase< T >.
|
inline |
|
inlinevirtual |
Implements OD::Set.
|
inlinevirtual |
Implements OD::Set.
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022