![]() |
OpendTect-6_4
6.4
|
A SortedList is a list where all objects are stored in ascending order. The objects should be capable of doing <,> and ==. If allowmultiples is true, multiple objects with the same value are allowed in the list. More...
Public Types | |
| typedef int | size_type |
| typedef T | object_type |
Public Member Functions | |
| SortedList (bool allowmultiples=true) | |
| bool | isEmpty () const |
| size_type | size () const |
| const T & | operator[] (size_type idx) const |
| bool | isPresent (const T &t) const |
| size_type | indexOf (const T &) const |
| SortedList< T > & | operator+= (const T &) |
| SortedList< T > & | operator-= (const T &) |
| SortedList< T > & | add (const T &t) |
| template<class U > | |
| SortedList< T > & | copy (const U &) |
| template<class U > | |
| SortedList< T > & | operator= (const U &) |
| template<class U > | |
| SortedList< T > & | operator+= (const U &) |
| template<class U > | |
| SortedList< T > & | operator-= (const U &) |
| template<class U > | |
| void | intersect (const U &) |
| void | erase () |
| void | setEmpty () |
| void | removeSingle (size_type) |
| void | removeRange (size_type, size_type) |
| std::vector< T > & | vec () |
| const std::vector< T > & | vec () const |
| T * | arr () |
| const T * | arr () const |
Protected Member Functions | |
| size_type | getPos (const T &) const |
Protected Attributes | |
| VectorAccess< T, size_type > | vec_ |
| bool | allowmultiples_ |
A SortedList is a list where all objects are stored in ascending order. The objects should be capable of doing <,> and ==. If allowmultiples is true, multiple objects with the same value are allowed in the list.
A SortedList can be used together with all other lists that have a [] operator, such as TypeSets.
| typedef T SortedList< T >::object_type |
| typedef int SortedList< T >::size_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
If not found, it will return position of the item just above, and size() if val is higher than highest val
|
inline |
Returns -1 if not found
Remove all entries not present in both lists.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019