nndeploy C++ API  0.2.0
nndeploy C++ API
Public Member Functions | Static Public Member Functions | List of all members
nndeploy::dag::NodeFactory Class Reference

Node factory class. More...

#include <node.h>

Public Member Functions

std::shared_ptr< NodeCreatorgetCreator (const std::string &node_key)
 Get node creator. More...
 
std::set< std::string > getNodeKeys ()
 Get all node keys. More...
 
void registerNode (const std::string &node_key, std::shared_ptr< NodeCreator > creator)
 Register node. More...
 

Static Public Member Functions

static NodeFactorygetInstance ()
 Get singleton instance. More...
 

Detailed Description

Node factory class.

Singleton node factory for managing node registration and creation

Definition at line 1425 of file node.h.

Member Function Documentation

◆ getCreator()

std::shared_ptr<NodeCreator> nndeploy::dag::NodeFactory::getCreator ( const std::string &  node_key)
inline

Get node creator.

Parameters
node_keyNode key
Returns
Node creator shared pointer

Definition at line 1460 of file node.h.

◆ getInstance()

static NodeFactory* nndeploy::dag::NodeFactory::getInstance ( )
inlinestatic

Get singleton instance.

Returns
Node factory instance pointer

Definition at line 1431 of file node.h.

◆ getNodeKeys()

std::set<std::string> nndeploy::dag::NodeFactory::getNodeKeys ( )
inline

Get all node keys.

Returns
Node key set

Definition at line 1475 of file node.h.

◆ registerNode()

void nndeploy::dag::NodeFactory::registerNode ( const std::string &  node_key,
std::shared_ptr< NodeCreator creator 
)
inline

Register node.

Parameters
node_keyNode key
creatorNode creator shared pointer

Definition at line 1441 of file node.h.


The documentation for this class was generated from the following file: