#include <lut.hh>
Collaboration diagram for oln::level::hlut< T, T2 >:
Public Types | |
typedef T2 | output_t |
Public Member Functions | |
hlut () | |
hlut & | set (const T &val, const T2 &newval) |
const T2 | operator() (const T &val) const |
If the value has not been set, return id (see the example).
** hlut<int> l; ** ** l.set(16, 64); ** ** cout << l(16) << "," // print 64, ** << l(51) << endl; // print 51 **
Definition at line 54 of file lut.hh.
hlut& oln::level::hlut< T, T2 >::set | ( | const T & | val, | |
const T2 & | newval | |||
) | [inline] |
const T2 oln::level::hlut< T, T2 >::operator() | ( | const T & | val | ) | const [inline] |