![]() |
OpendTect
6.3
|
A SortedTable keeps track of ids and their corresponding values. Each id can only be present once. More...
Public Types | |
| typedef int | size_type |
| typedef T | object_type |
Public Member Functions | |
| SortedTable () | |
| size_type | size () const |
| void | set (IDT id, T val) |
| bool | get (IDT id, T &val) const |
| const IDT & | id (size_type idx) const |
| const T & | val (size_type idx) const |
| bool | remove (IDT id) |
| void | erase () |
Private Attributes | |
| TypeSet< T > | vals_ |
| SortedList< IDT > | ids_ |
A SortedTable keeps track of ids and their corresponding values. Each id can only be present once.
| typedef T SortedTable< IDT, T >::object_type |
| typedef int SortedTable< IDT, T >::size_type |
|
inline |
|
inline |
|
inline |
If id is not found, val is unchanged and false is returned. If id is found, val is set and true is returned.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017