nndeploy C++ API  0.2.0
nndeploy C++ API
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_ */
static Status Ok()
Comment(const std::string &name, const std::vector< Edge * > &inputs, const std::vector< Edge * > &outputs)
Definition: comment.h:15
Comment(const std::string &name)
Definition: comment.h:11
virtual base::Status deinit()
Deinitialize node.
Definition: comment.h:26
virtual base::Status run()
Run node (pure virtual function)
Definition: comment.h:28
virtual ~Comment()
Definition: comment.h:23
virtual base::Status init()
Initialize node.
Definition: comment.h:25
Node base class.
Definition: node.h:171
#define NNDEPLOY_CC_API
api
Definition: macro.h:29