![]() |
OpendTect-6_4
6.4
|
Set of (small) copyable elements. More...
Inherits TypeSetBase< T, int >.
Inherited by PolyLineND< T >.
Public Member Functions | |
| TypeSet () | |
| TypeSet (int nr, T typ) | |
| TypeSet (const T *t, int nr) | |
| TypeSet (const TypeSet< T > &t) | |
Public Member Functions inherited from TypeSetBase< T, int > | |
| virtual | ~TypeSetBase () |
| TypeSetBase< T, int > & | operator= (const TypeSetBase< T, int > &ts) |
| size_type | size () const |
| virtual int64_t | nrItems () const |
| virtual bool | setSize (size_type, T val=T()) |
| virtual bool | setCapacity (size_type sz, bool withmargin) |
| virtual size_type | getCapacity () const |
| void | setAll (T) |
| void | replace (T, T) |
| T & | operator[] (size_type) |
| const T & | operator[] (size_type) const |
| T & | first () |
| const T & | first () const |
| T & | last () |
| const T & | last () const |
| virtual bool | validIdx (int64_t) const |
| virtual size_type | indexOf (T, bool forward=true, size_type start=-1) const |
| bool | isPresent (const T &) const |
| size_type | count (const T &) const |
| TypeSetBase< T, int > & | add (const T &) |
| virtual void | insert (size_type, const T &) |
| bool | push (const T &) |
| T | pop () |
| TypeSetBase< T, int > & | operator+= (const T &t) |
| virtual bool | append (const T *, size_type) |
| virtual bool | append (const TypeSetBase< T, int > &) |
| virtual bool | addIfNew (const T &) |
| virtual TypeSetBase< T, int > & | copy (const T *, size_type) |
| virtual TypeSetBase< T, int > & | copy (const TypeSetBase< T, int > &) |
| virtual void | createUnion (const TypeSetBase< T, int > &) |
| virtual void | createIntersection (const TypeSetBase< T, int > &) |
| Only keeps common items. More... | |
| virtual void | createDifference (const TypeSetBase< T, int > &, bool must_preserve_order=false) |
| Removes all items present in other set. More... | |
| virtual void | swap (int64_t, int64_t) |
| virtual void | move (size_type from, size_type to) |
| virtual void | getReOrdered (const size_type *, TypeSetBase< T, int > &) |
| Fills as per the given array of indexes. More... | |
| virtual void | reverse () |
| virtual void | erase () |
| virtual void | removeSingle (size_type, bool preserver_order=true) |
| TypeSetBase< T, int > & | operator-= (const T &) |
| virtual void | removeRange (size_type from, size_type to) |
| virtual T * | arr () |
| 3rd party access More... | |
| virtual const T * | arr () const |
| 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 | |
Public Types inherited from TypeSetBase< T, int > | |
| typedef int | size_type |
| typedef T | object_type |
Protected Member Functions inherited from TypeSetBase< T, int > | |
| TypeSetBase () | |
| TypeSetBase (size_type nr, T typ) | |
| TypeSetBase (const T *, size_type nr) | |
| TypeSetBase (const TypeSetBase< T, size_type > &) | |
| virtual T * | gtArr () const |
Protected Attributes inherited from TypeSetBase< T, int > | |
| VectorAccess< T, int > | vec_ |
Set of (small) copyable elements.
TypeSet is 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.
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019