2 #ifndef SYDEVS_SYSTEMS_STATISTIC_NODE_H_
3 #define SYDEVS_SYSTEMS_STATISTIC_NODE_H_
39 const T&
value()
const;
44 virtual void flow_event();
51 , statistic(
"statistic", external_interface())
60 return val_.dereference<T>();
const std::string & node_name() const
Returns the name of the node.
Definition: system_node.h:135
port< flow, input, T > statistic
The flow input port on which the statistic value is obtained.
Definition: statistic_node.h:37
A class template for nodes which accept statistic values.
Definition: statistic_node.h:20
static pointer copy(const T &X)
If T is a qualified type, returns a deep copy of X.
Definition: qualified_type.h:174
Definition: node_context.h:16
A base class for indivisible nodes in which function behavior is procedurally encoded.
Definition: function_node.h:21
statistic_node(const std::string &node_name, const node_context &external_context)
Constructs a statistic_node.
Definition: statistic_node.h:49
const T & value() const
Returns the statistic value.
Definition: statistic_node.h:58
A data type which represents a pointer to anything.
Definition: pointer.h:27