Loading [MathJax]/extensions/TeX/AMSmath.js
Radium Engine  1.5.28
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Port.cpp
1#include <Dataflow/Core/Port.hpp>
2#include <Dataflow/Core/PortIn.hpp>
3#include <Dataflow/Core/PortOut.hpp>
4#include <string>
5#include <typeindex>
6
7namespace Ra {
8namespace Dataflow {
9namespace Core {
10class Node;
11
12bool PortBaseIn::accept( PortBaseOut* portOut ) const {
13 return portOut->type() == type();
14}
15
16PortBaseIn::PortBaseIn( Node* node, const std::string& name, std::type_index type ) :
17 PortBase( name, type, node ) {}
18
19bool PortBaseIn::is_link_mandatory() const {
20 return !has_default_value();
21}
22
23PortBaseOut::PortBaseOut( Node* node, const std::string& name, std::type_index type ) :
24 PortBase( name, type, node ) {}
25
26} // namespace Core
27} // namespace Dataflow
28} // namespace Ra
std::type_index type() const
Gets the type of the data (efficient for comparisons).
Definition Port.hpp:56
hepler function to manage enum as underlying types in VariableSet
Definition Cage.cpp:4