24 bool operator()(
const T *x,
const T *y)
const {
return *x < *y; }
42 Port(
int moduleID, const std::
string &name,
Port::Type type,
int flags = 0);
43 void setDescription(const std::
string &desc);
44 int getModuleID() const;
45 const std::
string &getName() const;
46 const std::
string &getDescription() const;
57 bool addConnection(
Port *other);
58 const
Port *removeConnection(const
Port &other);
59 bool isConnected() const;
61 const
PortSet &linkedPorts() const;
63 bool operator<(const
Port &other)
const
65 if (getModuleID() == other.getModuleID()) {
66 return getName() < other.
getName();
68 return getModuleID() < other.getModuleID();
76 Port *child(
size_t idx,
bool link =
false);
78 bool link(
Port *linked);
83 std::string description;
87 ConstPortSet m_connections;
89 std::vector<Port *> m_children;
90 PortSet m_linkedPorts;
Definition: porttracker.h:18
bool operator==(const Port &other) const
Definition: port.h:70
std::set< Port *, detail::deref_compare< Port > > PortSet
Definition: port.h:53
int getModuleID() const
Definition: port.cpp:20
std::set< const Port *, detail::deref_compare< Port > > ConstPortSet
Definition: port.h:54
DEFINE_ENUM_WITH_STRING_CONVERSIONS(Type,(ANY)(INPUT)(OUTPUT)(PARAMETER)) DEFINE_ENUM_WITH_STRING_CONVERSIONS(Flags
const std::string & getName() const
Definition: port.cpp:25
#define V_COREEXPORT
Definition: export.h:9
#define V_ENUM_OUTPUT_OP(name, scope)
Definition: enum.h:72
@ NONE
Definition: celltypes.h:19
Definition: allobjects.cpp:30
std::deque< obj_const_ptr > ObjectList
Definition: port.h:18
std::shared_ptr< const Object > obj_const_ptr
Definition: archives.h:86
std::ostream & operator<<(std::ostream &out, const Meta &meta)
Definition: objectmeta.cpp:45
DEFINE_ENUM_WITH_STRING_CONVERSIONS(FieldCompressionMode,(Uncompressed)(ZfpFixedRate)(ZfpAccuracy)(ZfpPrecision)) namespace detail
Definition: archives_config.h:38
bool operator()(const T *x, const T *y) const
Definition: port.h:24