Definition at line 23 of file ExpressionNodeVariables.hpp.
◆ StatVariable() [1/3]
sparta::statistics::expression::StatVariable::StatVariable |
( |
const TreeNode * |
n, |
|
|
std::vector< const TreeNode * > & |
used |
|
) |
| |
|
inline |
Construct from a given Counter or Statistic.
- Parameters
-
n | TreeNode to use as base for this variable |
used | Vector of TreeNodes already used within the expression containing this variable. New nodes are tested against this list in order to ensure there are no cycles in expressions |
Definition at line 42 of file ExpressionNodeVariables.hpp.
◆ StatVariable() [2/3]
sparta::statistics::expression::StatVariable::StatVariable |
( |
std::shared_ptr< StatInstCalculator > & |
calculator, |
|
|
std::vector< const TreeNode * > & |
used |
|
) |
| |
|
inline |
Construct from a given StatInstCalculator (wrapper class around a SpartaHandler).
- Parameters
-
calculator | User-defined callback which generates the stat value. |
- Note
- calculator->getNode() must return a non-null TreeNode.
- Parameters
-
used | Vector of TreeNodes already used within the expression containing this variable. New nodes are tested against this list in order to ensure there are no cycles in expressions. |
Definition at line 57 of file ExpressionNodeVariables.hpp.
◆ StatVariable() [3/3]
sparta::statistics::expression::StatVariable::StatVariable |
( |
const StatVariable & |
rhp | ) |
|
|
inline |
◆ ~StatVariable()
virtual sparta::statistics::expression::StatVariable::~StatVariable |
( |
| ) |
|
|
inlinevirtual |
◆ clone_()
virtual StatVariable * sparta::statistics::expression::StatVariable::clone_ |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ dump()
virtual void sparta::statistics::expression::StatVariable::dump |
( |
std::ostream & |
o, |
|
|
bool |
show_range = true , |
|
|
bool |
resolve_subexprs = true |
|
) |
| const |
|
inlineoverridevirtual |
Dump the content of this expression item.
- Note
- Must not evaluate the expression
- Parameters
-
o | Ostream to write to |
show_range | Should the range be shown in any subexpression nodes. |
resolve_subexprs | Should any referenced statistic defs be expanded to their full expressions so that this becomes an expression containing only counters. |
Implements sparta::statistics::expression::ExpressionNode.
Definition at line 101 of file ExpressionNodeVariables.hpp.
◆ end()
virtual void sparta::statistics::expression::StatVariable::end |
( |
| ) |
|
|
inlineoverridevirtual |
◆ evaluate_()
virtual double sparta::statistics::expression::StatVariable::evaluate_ |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getClocks()
virtual void sparta::statistics::expression::StatVariable::getClocks |
( |
std::vector< const Clock * > & |
clocks | ) |
const |
|
inlineoverridevirtual |
◆ getStatisticInstance()
StatisticInstance * sparta::statistics::expression::StatVariable::getStatisticInstance |
( |
| ) |
|
|
inline |
◆ start()
virtual void sparta::statistics::expression::StatVariable::start |
( |
| ) |
|
|
inlineoverridevirtual |
◆ supportsCompression()
virtual bool sparta::statistics::expression::StatVariable::supportsCompression |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ stat_
The documentation for this struct was generated from the following file: