Class Node#
Defined in File node.h
Class Documentation#
-
class Node#
Instance of a node in a graph. The node only knows the IDs of its sockets, the sockets themselves are owned by the Graph.
Public Functions
-
Node(const std::string &name = "", const node_id_t &id = null_node, const qualifier_t &qualifier = null_qualifier, const std::set<socket_id_t> &input_sockets = {}, const std::set<socket_id_t> &output_sockets = {}, bool proxy = false)#
-
inline void set_name(const std::string &name)#
-
inline void set_proxy(bool proxy)#
-
inline const std::string &get_name() const#
-
inline const qualifier_t &get_qualifier() const#
-
inline const std::set<socket_id_t> &get_input_sockets() const#
-
inline const std::set<socket_id_t> &get_output_sockets() const#
-
inline bool is_proxy() const#
-
inline std::size_t n_input_sockets() const#
-
inline std::size_t n_output_sockets() const#
-
inline bool has_input_socket(const socket_id_t &socket_id) const#
-
inline bool has_output_socket(const socket_id_t &socket_id) const#
-
bool register_input_socket(const socket_id_t &socket_id)#
- Returns:
true if the socket was not already registered.
-
bool register_output_socket(const socket_id_t &socket_id)#
-
bool remove_input_socket(const socket_id_t &socket_id)#
- Returns:
true if the socket was registered.
-
bool remove_output_socket(const socket_id_t &socket_id)#
-
Node(const std::string &name = "", const node_id_t &id = null_node, const qualifier_t &qualifier = null_qualifier, const std::set<socket_id_t> &input_sockets = {}, const std::set<socket_id_t> &output_sockets = {}, bool proxy = false)#