LR::VarVectorCollection Class Reference

a collection of vectors, usually handled at once. More...

#include <slr.h>

List of all members.

Public Member Functions

 VarVectorCollection (int nSize=0)
 ~VarVectorCollection ()
void setSize (int sz)
VarVectoroperator[] (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

VarVectorvecs
unsigned * ages
unsigned currentAge
int nVecs
int nAllocated
bool diskMode

Detailed Description

a collection of vectors, usually handled at once.


Constructor & Destructor Documentation

LR::VarVectorCollection::VarVectorCollection ( int  nSize = 0  )  [inline, explicit]

References setSize().

LR::VarVectorCollection::~VarVectorCollection (  ) 

References ages, and vecs.


Member Function Documentation

bool LR::VarVectorCollection::getDiskMode (  )  const [inline]

References diskMode.

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.

References ages, diskMode, do_output(), LOG_AREA_LR, LOG_CAT_INFO, nVecs, LR::VarVector::release(), tmpdir, and vecs.

Referenced by operator[]().

void LR::VarVectorCollection::releaseAll (  ) 

Release all vectors from the memory, saving if necessary.

References diskMode, do_output(), LOG_AREA_LR, LOG_CAT_INFO, nVecs, LR::VarVector::release(), tmpdir, and vecs.

Referenced by LR::LRSolver::addToSpace().

void LR::VarVectorCollection::setDiskMode ( bool  x  )  [inline]

References diskMode.

Referenced by LR::LRSolver::solve().

void LR::VarVectorCollection::setSize ( int  sz  ) 
int LR::VarVectorCollection::size (  )  const [inline]

References nVecs.

Referenced by LR::LRSolver::addToSpace().


Member Data Documentation

unsigned* LR::VarVectorCollection::ages [private]

Referenced by operator[]().

Referenced by setSize().

Referenced by release(), releaseAll(), setSize(), and size().

const char * LR::VarVectorCollection::tmpdir = "/tmp" [static]

Referenced by operator[](), release(), and releaseAll().


The documentation for this class was generated from the following files:

Generated on 21 Nov 2012 for ergo by  doxygen 1.6.1