![]() |
MineLink
|
Abstracts a sum function to be evaluated over a set of blocks. More...
#include <blocksel.h>


Public Member Functions | |
| SelectionSum (const string &column_to_add) | |
| Defines the attribute to be added. More... | |
| virtual const string & | ColumnToAdd () const |
| Retrieves rhe name of the attribute column that is going to be added. | |
| virtual double | Eval (const delphos::BlockSelection &bsel) const |
| Evaluates the operation over the given selection. More... | |
Public Member Functions inherited from delphos::SelectionFunctor | |
| virtual | ~SelectionFunctor () |
| Destroys the selection functor. | |
Abstracts a sum function to be evaluated over a set of blocks.
| delphos::SelectionSum::SelectionSum | ( | const string & | column_to_add | ) |
Defines the attribute to be added.
| column_to_add | The name of the attribute column that is going to be added. |
|
virtual |
Evaluates the operation over the given selection.
| bsel | The BlockSelection instance to be evaluated. |
If the column to be added is not found in the selection's subyacent BlockModel instance, an exception is thrown.
Implements delphos::SelectionFunctor.
Reimplemented in delphos::SelectionAvg.