ATLAS Offline Software
|
#include <LookUpTable.h>
Public Types | |
typedef T | val_type |
typedef std::vector< val_type > | vec_type |
typedef std::pair< val_type, val_type > | pair_type |
typedef vec_type::iterator | vec_type_it |
typedef vec_type::const_iterator | vec_type_cit |
Public Member Functions | |
LookUpTable ()=default | |
~LookUpTable ()=default | |
bool | empty () const |
void | setData (const vec_type &data) |
const vec_type & | getData () const |
vec_type_it | begin () |
vec_type_it | end () |
vec_type_cit | begin () const |
vec_type_cit | end () const |
vec_type_cit | lowerBound (const val_type &val) |
pair_type | find (const val_type &val) const |
template<class CC > | |
pair_type | find (const val_type &val, const CC &c) const |
Private Attributes | |
vec_type | m_data |
Generic lookup table. Uses comparison function objects or the < operator to sort and look up values in the table.
Definition at line 21 of file LookUpTable.h.
typedef std::pair<val_type, val_type> LookUpTable< T, C >::pair_type |
Definition at line 25 of file LookUpTable.h.
typedef T LookUpTable< T, C >::val_type |
Definition at line 23 of file LookUpTable.h.
typedef std::vector<val_type> LookUpTable< T, C >::vec_type |
Definition at line 24 of file LookUpTable.h.
typedef vec_type::const_iterator LookUpTable< T, C >::vec_type_cit |
Definition at line 28 of file LookUpTable.h.
typedef vec_type::iterator LookUpTable< T, C >::vec_type_it |
Definition at line 27 of file LookUpTable.h.
|
default |
|
default |
|
inline |
Definition at line 38 of file LookUpTable.h.
|
inline |
Definition at line 40 of file LookUpTable.h.
|
inline |
Definition at line 33 of file LookUpTable.h.
|
inline |
Definition at line 39 of file LookUpTable.h.
|
inline |
Definition at line 41 of file LookUpTable.h.
|
inline |
Definition at line 71 of file LookUpTable.h.
|
inline |
Definition at line 46 of file LookUpTable.h.
|
inline |
Definition at line 36 of file LookUpTable.h.
|
inline |
|
inline |
|
private |
Definition at line 57 of file LookUpTable.h.