39 lines
756 B
C++
39 lines
756 B
C++
|
|
/*
|
|||
|
|
* AdditionValueAsync.cpp
|
|||
|
|
*
|
|||
|
|
* Created on: 14 <EFBFBD><EFBFBD><EFBFBD>. 2022 <EFBFBD>.
|
|||
|
|
* Author: titov
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#include "AdditionValueAsync.hh"
|
|||
|
|
|
|||
|
|
void processing::acs::AdditionValueAsync::set(TypeInput addend) {
|
|||
|
|
|
|||
|
|
TypeSet val = addend + summand;
|
|||
|
|
|
|||
|
|
output->set(val);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
processing::acs::AdditionValueAsync::TypeOutput processing::acs::AdditionValueAsync::get() const {
|
|||
|
|
|
|||
|
|
return processing::acs::AdditionValueAsync::TypeOutput();
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void processing::acs::AdditionValueAsync::set_output(
|
|||
|
|
SetInterface * new_output ) {
|
|||
|
|
|
|||
|
|
output = new_output;
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void processing::acs::AdditionValueAsync::reset() {
|
|||
|
|
|
|||
|
|
output = nullptr;
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
processing::acs::AdditionValueAsync::AdditionValueAsync(
|
|||
|
|
systemic::ISignal & summand ) : summand(summand), output(nullptr) {}
|