27 #ifndef TRACING_NODE_H 28 #define TRACING_NODE_H 37 #include "circular_buffer.h" 38 #include "connection_updater.h" 56 typedef size_t trace_id;
61 virtual void get_status(DictionaryDatum& d)
const;
62 virtual void set_status(
const DictionaryDatum& d);
82 const_iterator
get_trace(nest::delay steps, trace_id
id)
const 84 assert(
id < traces_.size());
85 return traces_[id].get(steps);
97 const_iterator
get_trace(nest::Time
const& time, trace_id
id)
const 108 return traces_.size();
122 void set_trace(nest::delay steps,
double v, trace_id
id = 0)
124 assert(
id < traces_.size());
125 traces_[id][steps] = v;
129 std::vector< CircularBuffer<double> > traces_;
virtual ~TracingNode()
Definition: tracing_node.cpp:49
TracingNode()
Definition: tracing_node.cpp:41
Base class to all nodes that record traces.
Definition: tracing_node.h:52
const_iterator get_trace(nest::Time const &time, trace_id id) const
Definition: tracing_node.h:97
void init_traces(size_t num_traces)
Definition: tracing_node.cpp:56
Constant iterator class.
Definition: circular_buffer.h:49
size_t get_num_traces() const
Definition: tracing_node.h:106
virtual void set_status(const DictionaryDatum &d)
Definition: tracing_node.cpp:70
Global namespace holding all classes of the SPORE NEST module.
Definition: circular_buffer.h:31
void set_trace(nest::delay steps, double v, trace_id id=0)
Definition: tracing_node.h:122
void get_trace_status(DictionaryDatum &d) const
Definition: tracing_node.cpp:84
virtual void get_status(DictionaryDatum &d) const
Definition: tracing_node.cpp:77
const_iterator get_trace(nest::delay steps, trace_id id) const
Access the trace of id at time step step.
Definition: tracing_node.h:82