MayaFlux 0.1.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 407 of file NodeGraphManager.cpp.

408{
409 auto it = m_Node_registry.find(id);
410
411 if (it != m_Node_registry.end()) {
412 return it->second;
413 }
414 return nullptr;
415}
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: