#include <slr.h>
Public Member Functions | |
VarVectorCollection (int nSize=0) | |
~VarVectorCollection () | |
void | setSize (int sz) |
VarVector & | operator[] (int i) |
int | size () const |
bool | getDiskMode () const |
void | setDiskMode (bool x) |
void | release () |
Make sure there is space for one vector. | |
void | releaseAll () |
Release all vectors from the memory, saving if necessary. | |
Static Public Attributes | |
static const char * | tmpdir = "/tmp" |
Private Attributes | |
VarVector * | vecs |
unsigned * | ages |
unsigned | currentAge |
int | nVecs |
int | nAllocated |
bool | diskMode |
LR::VarVectorCollection::VarVectorCollection | ( | int | nSize = 0 |
) | [inline, explicit] |
LR::VarVectorCollection::~VarVectorCollection | ( | ) |
bool LR::VarVectorCollection::getDiskMode | ( | ) | const [inline] |
VarVector & LR::VarVectorCollection::operator[] | ( | int | i | ) |
void LR::VarVectorCollection::release | ( | ) |
Make sure there is space for one vector.
Must allow at least two vectors at the same time in memory or evil things will happen.
void LR::VarVectorCollection::releaseAll | ( | ) |
Release all vectors from the memory, saving if necessary.
void LR::VarVectorCollection::setDiskMode | ( | bool | x | ) | [inline] |
void LR::VarVectorCollection::setSize | ( | int | sz | ) |
int LR::VarVectorCollection::size | ( | ) | const [inline] |
unsigned* LR::VarVectorCollection::ages [private] |
unsigned LR::VarVectorCollection::currentAge [private] |
bool LR::VarVectorCollection::diskMode [private] |
int LR::VarVectorCollection::nAllocated [private] |
int LR::VarVectorCollection::nVecs [private] |
const char * LR::VarVectorCollection::tmpdir = "/tmp" [static] |
VarVector* LR::VarVectorCollection::vecs [private] |