OpendTect
7.0
|
Sets of (small) copyable elements. More...
Inherits OD::ValVec< T, std::int32_t >.
Inherited by PolyLineND< T >.
Public Types | |
typedef OD::ValVec< T, std::int32_t >::idx_type | idx_type |
typedef OD::ValVec< T, std::int32_t >::size_type | size_type |
Public Types inherited from OD::ValVec< T, std::int32_t > | |
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 std::int32_t | size_type |
typedef T | value_type |
Public Member Functions | |
TypeSet () | |
TypeSet (const T *t, size_type nr) | |
TypeSet (const TypeSet &oth) | |
TypeSet (size_type nr, T typ) | |
TypeSet (T typ) | |
TypeSet * | clone () const override |
Public Member Functions inherited from OD::ValVec< T, std::int32_t > | |
virtual | ~ValVec () |
ValVec & | add (const T &) |
virtual bool | addIfNew (const T &) |
virtual bool | append (const T *, size_type) |
virtual bool | append (const ValVec &) |
virtual T * | arr () |
3rd party access More... | |
virtual const T * | arr () const |
iterator | begin () |
const_iterator | begin () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
virtual ValVec & | copy (const T *, size_type) |
virtual ValVec & | copy (const ValVec &) |
size_type | count (const T &) const |
virtual void | createDifference (const ValVec &, bool must_preserve_order=false) |
Removes all items present in other set. More... | |
virtual void | createIntersection (const ValVec &) |
Only keeps common items. More... | |
virtual void | createUnion (const ValVec &) |
bool | empty () const |
iterator | end () |
const_iterator | end () const |
void | erase () override |
T & | first () |
const T & | first () const |
T & | get (idx_type) |
const T & | get (idx_type) const |
virtual size_type | getCapacity () const |
idx_type | getIdx (const_iterator it) const |
idx_type | getIdx (iterator it) const |
virtual idx_type | indexOf (T, bool forward=true, idx_type start=-1) const |
virtual void | insert (idx_type, const T &) |
bool | isPresent (const T &) const |
T & | last () |
const T & | last () const |
size_type | max_size () const |
virtual void | move (idx_type from, idx_type to) |
std::int64_t | nrItems () const override |
bool | operator!= (const ValVec &oth) const |
ValVec & | operator+= (const T &t) |
ValVec & | operator-= (const T &t) |
ValVec & | operator= (const ValVec &oth) |
bool | operator== (const ValVec &) const |
T & | operator[] (idx_type i) |
const T & | operator[] (idx_type i) const |
T | pop () |
bool | push (const T &) |
virtual void | removeRange (idx_type from, idx_type to) |
virtual void | removeSingle (idx_type, bool preserver_order=true) |
void | replace (T, T) |
void | reverse () override |
void | setAll (T) |
virtual bool | setCapacity (size_type sz, bool withmargin) |
virtual bool | setSize (size_type sz, T val=T()) |
size_type | size () const |
void | swap (std::int32_t, std::int32_t) |
void | swap (ValVec &oth) |
void | swapItems (std::int64_t i1, std::int64_t i2) override |
virtual void | useIndexes (const idx_type *) |
bool | validIdx (std::int64_t) const override |
std::vector< T > & | vec () |
const std::vector< T > & | vec () const |
Public Member Functions inherited from OD::Set | |
virtual | ~Set () |
bool | isEmpty () const |
void | setEmpty () |
Additional Inherited Members | |
Static Public Member Functions inherited from OD::Set | |
static std::int32_t | maxIdx32 () |
static std::int64_t | maxIdx64 () |
Protected Types inherited from OD::ValVec< T, std::int32_t > | |
typedef VectorAccess< T, std::int32_t > | impl_type |
Protected Member Functions inherited from OD::ValVec< T, std::int32_t > | |
ValVec () | |
ValVec (const T *, size_type nr) | |
ValVec (const ValVec &) | |
ValVec (size_type nr, T typ) | |
T * | gtArr () const |
Protected Attributes inherited from OD::ValVec< T, std::int32_t > | |
impl_type | vec_ |
Sets of (small) copyable elements.
TypeSet/LargeValVec are meant for simple types or small objects that have a copy constructor. The ‘-=’ operator will only remove the first occurrence that matches using the ‘==’ operator. The requirement of the presence of that operator is actually not that bad: at least you can't forget it.
Do not make TypeSet<bool> (don't worry, it won't compile). Use the BoolTypeSet typedef just after the class definition. See vectoraccess.h for details on why.
<>
typedef OD::ValVec<T, std::int32_t >::idx_type TypeSet< T >::idx_type |
typedef OD::ValVec<T, std::int32_t >::size_type TypeSet< T >::size_type |
Implements OD::ValVec< T, std::int32_t >.
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024