nndeploy C++ API  0.2.0
nndeploy C++ API
running_condition.h
Go to the documentation of this file.
1 
2 #ifndef _NNDEPLOY_DAG_RUNNING_CONDITION__H_
3 #define _NNDEPLOY_DAG_RUNNING_CONDITION__H_
4 
5 #include "nndeploy/base/any.h"
6 #include "nndeploy/base/common.h"
8 #include "nndeploy/base/log.h"
9 #include "nndeploy/base/macro.h"
10 #include "nndeploy/base/object.h"
11 #include "nndeploy/base/status.h"
12 #include "nndeploy/base/string.h"
13 #include "nndeploy/dag/condition.h"
14 #include "nndeploy/dag/edge.h"
15 #include "nndeploy/dag/node.h"
16 #include "nndeploy/dag/util.h"
17 
18 namespace nndeploy {
19 namespace dag {
20 
22  public:
23  RunningCondition(const std::string &name);
24  RunningCondition(const std::string &name, std::vector<Edge *> inputs,
25  std::vector<Edge *> outputs);
26  virtual ~RunningCondition();
27 
28  virtual int choose();
29 
30  protected:
31  int next_i_ = 0;
32 };
33 
34 } // namespace dag
35 } // namespace nndeploy
36 
37 #endif /* _NNDEPLOY_DAG_RUNNING_CONDITION__H_ */
RunningCondition(const std::string &name)
RunningCondition(const std::string &name, std::vector< Edge * > inputs, std::vector< Edge * > outputs)
#define NNDEPLOY_CC_API
api
Definition: macro.h:29