42 invalidation_callback_ = callback;
48 if (invalidation_callback_ !=
nullptr) {
49 invalidation_callback_();
57 std::function<void()> invalidation_callback_ =
nullptr;
72 : output_port_(output_port), sample_time_sec_(sample_time_sec) {
73 output_port_->add_dependent(
this);
78 output_port_->remove_dependent(
this);
83 return output_port_->get_version();
87 return sample_time_sec_;
91 return output_port_->get_vector_data();
102 double sample_time_sec_;
109 template <
typename T>
122 double sample_time_sec)
123 : output_port_(
std::move(vector_data)),
124 sample_time_sec_(sample_time_sec) {
125 output_port_.add_dependent(
this);
129 output_port_.remove_dependent(
this);
135 return output_port_.get_version();
139 return sample_time_sec_;
143 return output_port_.get_vector_data();
156 return output_port_.GetMutableVectorData();
167 double sample_time_sec_ = 0.0;
VectorInterface is a pure abstract interface that real-valued signals between Systems must satisfy...
Definition: vector_interface.h:25
Definition: constants.h:3
OutputPortListenerInterface is an interface that consumers of an output port must satisfy to receive ...
Definition: system_output.h:22
The OutputPort represents a data output from a System.
Definition: system_output.h:95