Class Socket#
Defined in File socket.h
Inheritance Relationships#
Derived Types#
public ng::InputSocket(Class InputSocket)public ng::OutputSocket(Class OutputSocket)
Class Documentation#
-
class Socket#
Attributes shared by input and output sockets. Sockets are value types: they are copied from their NodeDefinition into the Graph when a node is instantiated.
Subclassed by ng::InputSocket, ng::OutputSocket
Public Functions
-
inline void set_name(const std::string &name)#
-
inline void set_active(bool active)#
-
inline void set_alias(const std::string &name, const socket_id_t &id)#
Used by proxies to re-expose a socket under another name and ID.
-
inline const std::string &get_name() const#
-
inline const socket_id_t &get_id() const#
-
inline bool is_active() const#
-
inline const std::set<qualifier_t> &get_on_added_link_callbacks() const#
-
inline const std::set<qualifier_t> &get_on_broken_link_callbacks() const#
-
inline void register_on_added_link_callback(const qualifier_t &cb)#
-
inline void register_on_broken_link_callback(const qualifier_t &cb)#
Protected Functions
-
Socket(const std::string &name = "", const socket_id_t &id = null_socket, socket_t type = null_socket_type, bool active = true, const std::set<qualifier_t> &on_added_link_callbacks = {}, const std::set<qualifier_t> &on_broken_link_callbacks = {})#
Protected Attributes
-
std::string name_#
-
socket_id_t id_ = null_socket#
-
socket_t type_ = null_socket_type#
-
bool active_ = true#
-
std::set<qualifier_t> on_added_link_callbacks_#
-
std::set<qualifier_t> on_broken_link_callbacks_#
-
inline void set_name(const std::string &name)#