Class Socket#

Inheritance Relationships#

Derived Types#

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_type(socket_t type)#
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 socket_t get_type() const#
inline bool is_active() const#
inline bool accepts_type(socket_t type) const#

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#