Class Node::Output

Nested Relationships

This class is a nested type of Class Node.

Class Documentation

class Output

Public Types

enum class Type

Values:

enumerator MSender
enumerator SSender

Public Functions

inline Output(Node &par, std::string n, Type t, std::vector<DatatypeHierarchy> types)
inline Output(Node &par, std::string group, std::string n, Type t, std::vector<DatatypeHierarchy> types)
inline Node &getParent()
inline const Node &getParent() const
std::string toString() const

Output to string representation.

bool isSamePipeline(const Input &in)

Check if this output and given input are on the same pipeline.

See also

canConnect for checking if connection is possible

Returns:

True if output and input are on the same pipeline

bool canConnect(const Input &in)

Check if connection is possible

Parameters:

inInput to connect to

Returns:

True if connection is possible, false otherwise

std::vector<Connection> getConnections()

Retrieve all connections from this output

Returns:

Vector of connections

void link(const Input &in)

Link current output to input.

Throws an error if this output cannot be linked to given input, or if they are already linked

Parameters:

inInput to link to

void unlink(const Input &in)

Unlink a previously linked connection

Throws an error if not linked.

Parameters:

inInput from which to unlink from

Public Members

std::string group = ""
std::string name
Type type
std::vector<DatatypeHierarchy> possibleDatatypes