MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get_node()

std::shared_ptr< Node > MayaFlux::Nodes::NodeGraphManager::get_node ( const std::string &  id)

Looks up a node by its string identifier.

Parameters
idThe string identifier of the node
Returns
Shared pointer to the node, or nullptr if not found

Retrieves a previously registered node using its string identifier. This allows for connecting nodes by name rather than requiring direct references to node objects.

Definition at line 419 of file NodeGraphManager.cpp.

420{
421 auto it = m_Node_registry.find(id);
422
423 if (it != m_Node_registry.end()) {
424 return it->second;
425 }
426 return nullptr;
427}
std::unordered_map< std::string, std::shared_ptr< Node > > m_Node_registry
Registry of all nodes by their string identifiers.

References m_Node_registry.

Referenced by connect().

+ Here is the caller graph for this function: