14#ifndef DENSESINGLYINDEXEDBLOCK_HPP_
15#define DENSESINGLYINDEXEDBLOCK_HPP_
28 template<
class ValueClass >
30 InterpreterClass::DenseSinglyIndexed< ValueClass > >
36 int const indexDigits = 5 );
47 hasEntry(
int const soughtIndex )
const;
55 template<
class ValueClass >
58 std::string
const& blockName,
59 ValueClass
const& defaultUnsetValue,
61 int const indexDigits ) :
63 InterpreterClass::DenseSinglyIndexed< ValueClass > >(
67 std::vector< int >( 1,
73 template<
class ValueClass >
81 template<
class ValueClass >
86 return this->dataBlocks[ this->lowestScaleIndex ]( soughtIndex );
89 template<
class ValueClass >
90 inline ValueClass
const&
92 int const soughtIndex )
const
95 return this->dataBlocks[ this->lowestScaleIndex ]( soughtIndex );
98 template<
class ValueClass >
101 int const soughtIndex )
const
106 this->dataBlocks[ this->lowestScaleIndex ].hasEntry( soughtIndex );
ValueClass & operator()(int const soughtIndex)
virtual ~DenseSinglyIndexedBlock()
DenseSinglyIndexedBlock(std::string const &blockName, ValueClass const &defaultUnsetValue, bool const isVerbose=false, int const indexDigits=5)
bool hasEntry(int const soughtIndex) const
ValueClass const defaultUnsetValue