36#ifndef InputConstraint_h
37#define InputConstraint_h
86 for(
auto p : m_constraints)
97 for(
auto p : m_constraints)
101 ret += std::string(
"• ") +
p->ToString();
107 std::vector< std::shared_ptr<InputConstraint> > m_constraints;
126 {
return (m_type ==
source.GetType() ); }
129 {
return std::string(
"Stream type is ") + StreamTypeToString(m_type); }
156 return (m_type ==
source.GetType() );
160 {
return std::string(
"Stream type is sparse ") + StreamTypeToString(m_type); }
181 static_assert(std::is_base_of<WaveformBase, T>::value ==
true);
189 return (
typeid(*
pdata) ==
typeid(
T) );
199 auto tmp = abi::__cxa_demangle(
typeid(
T).name(),
nullptr,
nullptr, &
status);
200 stype = std::string(
tmp);
203 stype =
typeid(
T).name();
206 return std::string(
"Stream type is ") + stype;
228 static_assert(std::is_base_of<FlowGraphNode, T>::value ==
true);
236 return (
typeid(*
chan) ==
typeid(
T) );
246 auto tmp = abi::__cxa_demangle(
typeid(
T).name(),
nullptr,
nullptr, &
status);
247 stype = std::string(
tmp);
250 stype =
typeid(
T).name();
253 return std::string(
"Source block type is ") + stype;
274 for(
auto t : m_types)
282 virtual std::string
ToString()
override;
285 std::vector<Stream::StreamType> m_types;
306 {
return (m_width ==
source.GetDigitalWidth() ); }
309 {
return std::string(
"Digital signal width is ") + std::to_string(m_width); }
331 {
return (m_unit ==
source.GetXAxisUnits() ); }
334 {
return std::string(
"X axis unit is ") + m_unit.
ToStringLong(); }
356 {
return (m_unit ==
source.GetYAxisUnits() ); }
359 {
return std::string(
"Y axis unit is ") + m_unit.
ToStringLong(); }
Definition AcceleratorBuffer.h:204
Abstract base class for a node in the signal flow graph.
Definition FlowGraphNode.h:81
Descriptor for a single stream coming off a channel.
Definition StreamDescriptor.h:47
StreamType
General data type stored in a stream.
Definition Stream.h:57
A unit of measurement, plus conversion to pretty-printed output.
Definition Unit.h:59
std::string ToStringLong() const
Converts this unit to a string in long format.
Definition Unit.cpp:142