nndeploy C++ API  0.2.0
nndeploy C++ API
Public Member Functions | List of all members
nndeploy::dag::TypeNodeCreator< T > Class Template Reference

Typed node creator. More...

#include <node.h>

Inheritance diagram for nndeploy::dag::TypeNodeCreator< T >:
[legend]
Collaboration diagram for nndeploy::dag::TypeNodeCreator< T >:
[legend]

Public Member Functions

virtual NodecreateNode (const std::string &node_name, std::vector< Edge * > inputs, std::vector< Edge * > outputs) override
 Create node. More...
 
virtual std::shared_ptr< NodecreateNodeSharedPtr (const std::string &node_name, std::vector< Edge * > inputs, std::vector< Edge * > outputs) override
 Create node (shared pointer) More...
 
- Public Member Functions inherited from nndeploy::dag::NodeCreator
virtual ~NodeCreator ()=default
 

Detailed Description

template<typename T>
class nndeploy::dag::TypeNodeCreator< T >

Typed node creator.

Template Parameters
TNode type

Template node creator for creating specific type of nodes

Definition at line 1392 of file node.h.

Member Function Documentation

◆ createNode()

template<typename T >
virtual Node* nndeploy::dag::TypeNodeCreator< T >::createNode ( const std::string &  node_name,
std::vector< Edge * >  inputs,
std::vector< Edge * >  outputs 
)
inlineoverridevirtual

Create node.

Parameters
node_nameNode name
inputsInput edge list
outputsOutput edge list
Returns
Node pointer

Implements nndeploy::dag::NodeCreator.

Definition at line 1401 of file node.h.

◆ createNodeSharedPtr()

template<typename T >
virtual std::shared_ptr<Node> nndeploy::dag::TypeNodeCreator< T >::createNodeSharedPtr ( const std::string &  node_name,
std::vector< Edge * >  inputs,
std::vector< Edge * >  outputs 
)
inlineoverridevirtual

Create node (shared pointer)

Parameters
node_nameNode name
inputsInput edge list
outputsOutput edge list
Returns
Node shared pointer

Implements nndeploy::dag::NodeCreator.

Definition at line 1414 of file node.h.


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