|
ergo
|
a collection of vectors, usually handled at once. More...
#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. More... | |
| void | releaseAll () |
| Release all vectors from the memory, saving if necessary. More... | |
Static Public Attributes | |
| static const char * | tmpdir = "/tmp" |
Private Attributes | |
| VarVector * | vecs |
| unsigned * | ages |
| unsigned | currentAge |
| int | nVecs |
| int | nAllocated |
| bool | diskMode |
a collection of vectors, usually handled at once.
|
inlineexplicit |
| LR::VarVectorCollection::~VarVectorCollection | ( | ) |
|
inline |
| VarVector & LR::VarVectorCollection::operator[] | ( | int | i | ) |
References LR::VarVector::inMemory, and LR::VarVector::release().
| 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.
References do_output(), LR::VarVector::fName, LR::VarVector::inMemory, LOG_AREA_LR, LOG_CAT_INFO, and LR::VarVector::nvar.
| void LR::VarVectorCollection::releaseAll | ( | ) |
Release all vectors from the memory, saving if necessary.
References do_output(), LR::VarVector::inMemory, LOG_AREA_LR, LOG_CAT_INFO, and LR::VarVector::nvar.
Referenced by LR::LRSolver::addToSpace().
|
inline |
Referenced by LR::LRSolver::solve().
| void LR::VarVectorCollection::setSize | ( | int | sz | ) |
|
inline |
Referenced by LR::LRSolver::addToSpace().
|
private |
|
private |
|
private |
|
private |
|
private |
|
static |
Referenced by LR::VarVector::release().
|
private |