Go to the source code of this file.
|
| using | nndeploy::dag::NodeFunc = std::function< base::Status(std::vector< Edge * > inputs, std::vector< Edge * > outputs, base::Param *param)> |
| | Node function type definition. More...
|
| |
|
| Node * | nndeploy::dag::createNode (const std::string &node_key, const std::string &node_name) |
| | Create node. More...
|
| |
| Node * | nndeploy::dag::createNode (const std::string &node_key, const std::string &node_name, std::initializer_list< Edge * > inputs, std::initializer_list< Edge * > outputs) |
| | Create node. More...
|
| |
| Node * | nndeploy::dag::createNode (const std::string &node_key, const std::string &node_name, std::vector< Edge * > inputs, std::vector< Edge * > outputs) |
| | Create node. More...
|
| |
| std::shared_ptr< Node > | nndeploy::dag::createNodeSharedPtr (const std::string &node_key, const std::string &node_name) |
| | Create node (shared pointer) More...
|
| |
| std::shared_ptr< Node > | nndeploy::dag::createNodeSharedPtr (const std::string &node_key, const std::string &node_name, std::initializer_list< Edge * > inputs, std::initializer_list< Edge * > outputs) |
| | Create node (shared pointer) More...
|
| |
| std::shared_ptr< Node > | nndeploy::dag::createNodeSharedPtr (const std::string &node_key, const std::string &node_name, std::vector< Edge * > inputs, std::vector< Edge * > outputs) |
| | Create node (shared pointer) More...
|
| |
| NodeFactory * | nndeploy::dag::getGlobalNodeFactory () |
| | Get global node factory. More...
|
| |
| std::set< std::string > | nndeploy::dag::getNodeKeys () |
| | Get all node keys. More...
|
| |
◆ REGISTER_NODE
| #define REGISTER_NODE |
( |
|
node_key, |
|
|
|
node_class |
|
) |
| |
Value: namespace { \
struct NodeRegister_##node_class { \
NodeRegister_##node_class() {
\
node_key, \
} \
}; \
static NodeRegister_##node_class g_node_register_##node_class; \
}
void registerNode(const std::string &node_key, std::shared_ptr< NodeCreator > creator)
Register node.
NodeFactory * getGlobalNodeFactory()
Get global node factory.
Node registration macro.
- Parameters
-
| node_key | Node key |
| node_class | Node class name |
Used for automatically registering node types to factory
Definition at line 1501 of file node.h.