nndeploy C++ API
0.2.0
nndeploy C++ API
framework
include
nndeploy
dag
comment.h
Go to the documentation of this file.
1
#ifndef _NNDEPLOY_DAG_COMMENT_NODE_H_
2
#define _NNDEPLOY_DAG_COMMENT_NODE_H_
3
4
#include "
nndeploy/dag/node.h
"
5
6
namespace
nndeploy
{
7
namespace
dag {
8
9
class
NNDEPLOY_CC_API
Comment
:
public
Node
{
10
public
:
11
Comment
(
const
std::string &name) : dag::
Node
(name) {
12
key_ =
"nndeploy::dag::Comment"
;
13
node_type_ =
dag::NodeType::kNodeTypeInput
;
14
}
15
Comment
(
const
std::string &name,
const
std::vector<Edge *> &inputs,
16
const
std::vector<Edge *> &outputs)
17
: dag::
Node
(name) {
18
key_ =
"nndeploy::dag::Comment"
;
19
node_type_ =
dag::NodeType::kNodeTypeInput
;
20
inputs_ = inputs;
21
outputs_ = outputs;
22
}
23
virtual
~Comment
() {}
24
25
virtual
base::Status
init
() {
return
base::Status::Ok
(); }
26
virtual
base::Status
deinit
() {
return
base::Status::Ok
(); }
27
28
virtual
base::Status
run
() {
return
base::Status::Ok
(); }
29
};
30
31
}
// namespace dag
32
}
// namespace nndeploy
33
34
#endif
/* _NNDEPLOY_DAG_COMMENT_NODE_H_ */
nndeploy::base::Status
Definition:
status.h:87
nndeploy::base::Status::Ok
static Status Ok()
nndeploy::dag::Comment
Definition:
comment.h:9
nndeploy::dag::Comment::Comment
Comment(const std::string &name, const std::vector< Edge * > &inputs, const std::vector< Edge * > &outputs)
Definition:
comment.h:15
nndeploy::dag::Comment::Comment
Comment(const std::string &name)
Definition:
comment.h:11
nndeploy::dag::Comment::deinit
virtual base::Status deinit()
Deinitialize node.
Definition:
comment.h:26
nndeploy::dag::Comment::run
virtual base::Status run()
Run node (pure virtual function)
Definition:
comment.h:28
nndeploy::dag::Comment::~Comment
virtual ~Comment()
Definition:
comment.h:23
nndeploy::dag::Comment::init
virtual base::Status init()
Initialize node.
Definition:
comment.h:25
nndeploy::dag::Node
Node base class.
Definition:
node.h:171
NNDEPLOY_CC_API
#define NNDEPLOY_CC_API
api
Definition:
macro.h:29
nndeploy::dag::NodeType::kNodeTypeInput
@ kNodeTypeInput
nndeploy
Definition:
common.h:10
node.h
Generated by
1.9.1