10 #include <AtomsGraph/Globals.h>
25 class ATOMSGRAPH_EXPORT
Port
29 typedef std::vector<Port*>::iterator port_iterator;
31 typedef std::vector<Port*>::const_iterator const_port_iterator;
44 explicit Port(
const std::string& name);
56 inline std::string name()
const;
63 inline void setNode(
Node* node);
89 inline const std::vector<Port*>& getConnections()
const;
90 inline std::vector<Port*>& getConnections();
98 inline Port* input()
const;
104 inline size_t numConnections()
const;
110 inline bool isInput()
const;
116 inline bool isOutput()
const;
119 inline port_iterator begin();
122 inline port_iterator end();
125 inline const_port_iterator cbegin()
const;
128 inline const_port_iterator cend()
const;
142 inline void setAsInput(
bool value);
161 std::vector<Port*> m_vConnections;
176 #include "Port.impl.h"
BasePort class.
Definition: Port.h:26
Port(const std::string &name)
Constructor.
virtual std::string typeStr() const
Class type string.
virtual void copyValue(Port *other)
Copy the data from another port.
virtual void reset()
Reset the port to default value.
bool connectTo(Port *port)
Connect a port to another port.
virtual ~Port()
virtual destructor
bool disconnectFrom(Port *port)
Breaks connection between ports.
AtomsGraph namespace.
Definition: PosePort.h:15