Commit 5584b133 by Winter

dataflow_cpp: changed return type of operator >> to allow for connection chains

parent 2f7e8112
......@@ -102,8 +102,9 @@ class Process< Slices, Serial, Inputs<Slices, I1, I2, I3, I4, I5>,
}
template <typename T>
void operator >> (T & target) {
T & operator >> (T & target) {
GetOutput<0>() >> target.template GetInput<0>();
return target;
}
virtual void OnClock(int clock) {
......
......@@ -105,8 +105,9 @@ class Select
}
template <typename T>
void operator >> (T & target) {
T & operator >> (T & target) {
GetOutput<0>() >> target.template GetInput<0>();
return target;
}
virtual void OnClock(int clock) {
......
......@@ -81,8 +81,9 @@ class Source< Slices, Outputs<Slices, O1, O2, O3, O4, O5> >
}
template <typename T>
void operator >> (T & target) {
T & operator >> (T & target) {
GetOutput<0>() >> target.template GetInput<0>();
return target;
}
private:
......
......@@ -103,8 +103,9 @@ class Switch
}
template <typename T>
void operator >> (T & target) {
T & operator >> (T & target) {
GetOutput<0>() >> target.template GetInput<0>();
return target;
}
virtual void OnClock(int clock) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment