MineLink
 All Data Structures Functions Variables Pages
delphos::Ccol Class Reference

Abstracts a container of computed column. More...

#include <ccols.h>

Inheritance diagram for delphos::Ccol:
Inheritance graph
Collaboration diagram for delphos::Ccol:
Collaboration graph

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...
 

Detailed Description

Abstracts a container of computed column.

Constructor & Destructor Documentation

delphos::Ccol::Ccol ( const string &  name,
const delphos::BlockModel bm 
)

Creates a new computed column.

Parameters
nameThe name of the computed column.
bmThe BlockModel in which the computed column will be added.

This creates an empty computed column.

delphos::Ccol::~Ccol ( )

Destroy a computed column

Member Function Documentation

double delphos::Ccol::EvalFormula ( const delphos::BlockIndexType &  index)

Eval the formula for a block of the block model.

Parameters
indexThe 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.

Parameters
formulaThe formula to be computed.

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