The Sparta Modeling Framework
|
Public Member Functions | |
Constant (const Constant &rhp) | |
Constant (double val) | |
virtual Constant * | clone_ () const override |
Deep copy of the content of this item. | |
virtual double | evaluate_ () const override |
Compute value of this item in simulation. | |
virtual bool | supportsCompression () const override |
Constants are always good candidates for compression. | |
virtual void | start () override |
virtual void | end () override |
virtual void | dump (std::ostream &o, bool show_range=true, bool resolve_subexprs=true) const override |
Dump the content of this expression item. | |
virtual void | getClocks (std::vector< const Clock * > &clocks) const override |
Populates a vector with the clocks found in this subexpression node. | |
Public Member Functions inherited from sparta::statistics::expression::ExpressionNode | |
ExpressionNode (const ExpressionNode &)=delete | |
No copy-constructable. | |
ExpressionNode * | clone () const |
uint32_t | getStats (std::vector< const StatisticInstance * > &results) const |
Gets the statistics present in this expression. | |
double | evaluate () |
Compute value of this item in simulation. Must be implemented by subclass. | |
Public Attributes | |
double | value_ |
Definition at line 226 of file ExpressionNodeTypes.hpp.
|
inline |
Definition at line 230 of file ExpressionNodeTypes.hpp.
|
inline |
Definition at line 235 of file ExpressionNodeTypes.hpp.
|
inlineoverridevirtual |
Deep copy of the content of this item.
To be overridden by subclasses
Implements sparta::statistics::expression::ExpressionNode.
Definition at line 241 of file ExpressionNodeTypes.hpp.
|
inlineoverridevirtual |
Dump the content of this expression item.
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 260 of file ExpressionNodeTypes.hpp.
|
inlineoverridevirtual |
Implements sparta::statistics::expression::ExpressionNode.
Definition at line 257 of file ExpressionNodeTypes.hpp.
|
inlineoverridevirtual |
Compute value of this item in simulation.
Implements sparta::statistics::expression::ExpressionNode.
Definition at line 245 of file ExpressionNodeTypes.hpp.
|
inlineoverridevirtual |
Populates a vector with the clocks found in this subexpression node.
clocks | Vector of clocks to which any found clocks will be appended. This vector is not cleared. |
Implements sparta::statistics::expression::ExpressionNode.
Definition at line 268 of file ExpressionNodeTypes.hpp.
|
inlineoverridevirtual |
Implements sparta::statistics::expression::ExpressionNode.
Definition at line 254 of file ExpressionNodeTypes.hpp.
|
inlineoverridevirtual |
Constants are always good candidates for compression.
Implements sparta::statistics::expression::ExpressionNode.
Definition at line 250 of file ExpressionNodeTypes.hpp.
double sparta::statistics::expression::Constant::value_ |
Definition at line 228 of file ExpressionNodeTypes.hpp.