Base class for LookUp Tables.
More...
#include <L1GctLut.h>
|
uint16_t | lutValue (const uint16_t lutAddress) const |
| Access the look-up table contents for a given Address. More...
|
|
template<int KAddressBits, int KDataBits> |
int | operator!= (const L1GctLut< KAddressBits, KDataBits > &rhsLut) const |
| Inequality check between look-up tables. More...
|
|
template<int KAddressBits, int KDataBits> |
int | operator== (const L1GctLut< KAddressBits, KDataBits > &rhsLut) const |
| Equality check between look-up tables. More...
|
|
uint16_t | operator[] (const uint16_t lutAddress) const |
| Access the look-up table contents for a given Address. More...
|
|
void | setTerse () |
|
bool | setupOk () |
|
void | setVerbose () |
| control output messages More...
|
|
virtual | ~L1GctLut () |
|
|
template<int KAddressBits, int KDataBits> |
bool | equalityCheck (const L1GctLut< KAddressBits, KDataBits > &c) const |
|
| L1GctLut () |
|
virtual uint16_t | value (const uint16_t lutAddress) const =0 |
|
template<int NAddressBits, int NDataBits>
class L1GctLut< NAddressBits, NDataBits >
Base class for LookUp Tables.
- Author
- Greg Heath
- Date
- Feb 2007
Definition at line 19 of file L1GctLut.h.
◆ ~L1GctLut()
template<int NAddressBits, int NDataBits>
◆ L1GctLut()
template<int NAddressBits, int NDataBits>
◆ equalityCheck()
template<int NAddressBits, int NDataBits>
template<int KAddressBits, int KDataBits>
bool L1GctLut< NAddressBits, NDataBits >::equalityCheck |
( |
const L1GctLut< KAddressBits, KDataBits > & |
c | ) |
const |
|
protected |
◆ lutValue()
template<int NAddressBits, int NDataBits>
uint16_t L1GctLut< NAddressBits, NDataBits >::lutValue |
( |
const uint16_t |
lutAddress | ) |
const |
◆ operator!=()
template<int NAddressBits, int NDataBits>
template<int KAddressBits, int KDataBits>
int L1GctLut< NAddressBits, NDataBits >::operator!= |
( |
const L1GctLut< KAddressBits, KDataBits > & |
rhsLut | ) |
const |
|
inline |
Inequality check between look-up tables.
Definition at line 59 of file L1GctLut.h.
◆ operator==()
template<int NAddressBits, int NDataBits>
template<int KAddressBits, int KDataBits>
int L1GctLut< NAddressBits, NDataBits >::operator== |
( |
const L1GctLut< KAddressBits, KDataBits > & |
rhsLut | ) |
const |
|
inline |
Equality check between look-up tables.
Definition at line 53 of file L1GctLut.h.
◆ operator[]()
template<int NAddressBits, int NDataBits>
uint16_t L1GctLut< NAddressBits, NDataBits >::operator[] |
( |
const uint16_t |
lutAddress | ) |
const |
|
inline |
Access the look-up table contents for a given Address.
Definition at line 49 of file L1GctLut.h.
◆ printHeader()
template<int NAddressBits, int NDataBits>
std::string L1GctLut< NAddressBits, NDataBits >::printHeader |
( |
| ) |
const |
|
private |
◆ printLine()
template<int NAddressBits, int NDataBits>
std::string L1GctLut< NAddressBits, NDataBits >::printLine |
( |
const int |
add | ) |
const |
|
private |
Definition at line 146 of file L1GctLut.h.
147 std::stringstream
ss;
148 ss << std::hex << std::showbase;
150 ss << std::setw(7) <<
a <<
"|";
152 uint16_t address = static_cast<uint16_t>(
a++);
◆ setTerse()
template<int NAddressBits, int NDataBits>
void L1GctLut< NAddressBits, NDataBits >::setTerse |
( |
| ) |
|
|
inline |
◆ setupOk()
template<int NAddressBits, int NDataBits>
bool L1GctLut< NAddressBits, NDataBits >::setupOk |
( |
| ) |
|
|
inline |
◆ setVerbose()
template<int NAddressBits, int NDataBits>
void L1GctLut< NAddressBits, NDataBits >::setVerbose |
( |
| ) |
|
|
inline |
control output messages
Definition at line 66 of file L1GctLut.h.
◆ value()
template<int NAddressBits, int NDataBits>
virtual uint16_t L1GctLut< NAddressBits, NDataBits >::value |
( |
const uint16_t |
lutAddress | ) |
const |
|
protectedpure virtual |
◆ operator<<
template<int NAddressBits, int NDataBits>
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const L1GctLut< NAddressBits, NDataBits > & |
lut |
|
) |
| |
|
friend |
Overload << operator.
Definition at line 27 of file L1GctLut.h.
37 for (
int a = 0;
a <= maxAddress;
a +=
width) {
◆ m_setupOk
template<int NAddressBits, int NDataBits>
bool L1GctLut< NAddressBits, NDataBits >::m_setupOk |
|
protected |
◆ m_verbose
template<int NAddressBits, int NDataBits>
bool L1GctLut< NAddressBits, NDataBits >::m_verbose |
|
protected |
◆ MAX_ADDRESS_BITMASK
template<int NAddressBits, int NDataBits>
const uint16_t L1GctLut< NAddressBits, NDataBits >::MAX_ADDRESS_BITMASK = (1 << NAddressBits) - 1 |
|
static |
◆ MAX_DATA_BITMASK
template<int NAddressBits, int NDataBits>
const uint16_t L1GctLut< NAddressBits, NDataBits >::MAX_DATA_BITMASK = (1 << NDataBits) - 1 |
|
static |
◆ printWidth
template<int NAddressBits, int NDataBits>
const int L1GctLut< NAddressBits, NDataBits >::printWidth = 16 |
|
staticprivate |
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.