|  | MineLink
    | 
Abstracts a container of computed column. More...
#include <ccols.h>


| Public Member Functions | |
| Ccol (const string &name, const delphos::BlockModel &bm) | |
| Creates a new computed column.  More... | |
| ~Ccol () | |
| void | SetFormula (const string &formula) | 
| Set the formula.  More... | |
| string | GetFormula () const | 
| Get the formula to be computed. | |
| vector< unsigned int > | GetSubCols () const | 
| Get the sub columns present in the formula to be computed. Do not delete a column in the block model between the use of CompileFormula() and GetSubCols()! | |
| void | CompileFormula () | 
| Get the sub columns present in the formula to be computed. | |
| double | EvalFormula (const delphos::BlockIndexType &index) | 
| Eval the formula for a block of the block model.  More... | |
Abstracts a container of computed column.
| delphos::Ccol::Ccol | ( | const string & | name, | 
| const delphos::BlockModel & | bm | ||
| ) | 
Creates a new computed column.
| name | The name of the computed column. | 
| bm | The BlockModel in which the computed column will be added. | 
This creates an empty computed column.
| delphos::Ccol::~Ccol | ( | ) | 
Destroy a computed column
| double delphos::Ccol::EvalFormula | ( | const delphos::BlockIndexType & | index | ) | 
Eval the formula for a block of the block model.
| index | The block index for which the formula is evaluated. Do not delete a column in the block model between the use of CompileFormula() and EvalFormula()! | 
| void delphos::Ccol::SetFormula | ( | const string & | formula | ) | 
Set the formula.
| formula | The formula to be computed. |