1 #ifndef REMEMBER_ANYTHINGFAST_HH 2 #define REMEMBER_ANYTHINGFAST_HH 23 if(newSize < this->
size())
return;
24 std::pair< T, long int> empty(0, 0);
28 void set(
unsigned int i,
const T& value,
long int configNumber=1){
34 std::pair< T, long int> trueValue(value, configNumber);
62 if(i < 0)
return false;
63 if(i >= (
long int) this->
size())
return false;
64 if(!(_anyVector[i].
second))
return false;
67 bool get(
int i, T& value,
long int configNumber=1){
76 if(!
valid(i))
return false;
void set(unsigned int i, const T &value, long int configNumber=1)
std::vector< std::pair< T, long int > > _anyVector
bool get(int i, T &value, long int configNumber=1)
void resize(unsigned int newSize)
static const double second
RememberAnythingFast(const RememberAnythingFast &other)