OpendTect
6.6
|
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 T | object_type |
typedef int | size_type |
Public Member Functions | |
SortedList (bool allowmultiples=true) | |
SortedList< T > & | add (const T &t) |
T * | arr () |
const T * | arr () const |
template<class U > | |
SortedList< T > & | copy (const U &) |
void | erase () |
size_type | indexOf (const T &) const |
template<class U > | |
void | intersect (const U &) |
bool | isEmpty () const |
bool | isPresent (const T &t) const |
SortedList< T > & | operator+= (const T &) |
template<class U > | |
SortedList< T > & | operator+= (const U &) |
SortedList< T > & | operator-= (const T &) |
template<class U > | |
SortedList< T > & | operator-= (const U &) |
template<class U > | |
SortedList< T > & | operator= (const U &) |
const T & | operator[] (size_type idx) const |
void | removeRange (size_type, size_type) |
void | removeSingle (size_type) |
void | setEmpty () |
size_type | size () const |
std::vector< T > & | vec () |
const std::vector< T > & | vec () const |
Protected Member Functions | |
size_type | getPos (const T &) const |
Protected Attributes | |
bool | allowmultiples_ |
VectorAccess< T, size_type > | vec_ |
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. 1995-2022