OpendTect
7.0
|
Is a class that holds a "top N" list with the N highest (or lowest) values that is added. Each value has an associated value that can be used as an identifier of where the value comes from or something like that. More...
Public Member Functions | |
TopList (int maxsize) | |
virtual | ~TopList () |
void | addValue (VT val, AVT aval) |
AVT | getAssociatedValue (int rank) const |
bool | getHighestValue (VT &) const |
bool | getLowestValue (VT &) const |
VT | getValue (int rank) const |
int | isEmpty () const |
void | reset () |
int | size () const |
Private Attributes | |
const int | maxsize_ |
TypeSet< std::pair< VT, AVT > > | values_ |
Is a class that holds a "top N" list with the N highest (or lowest) values that is added. Each value has an associated value that can be used as an identifier of where the value comes from or something like that.
<>
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Removes all values
|
inline |
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024