nndeploy C++ API  0.2.0
nndeploy C++ API
Public Member Functions | Protected Attributes | List of all members
nndeploy::dag::Executor Class Referenceabstract

#include <executor.h>

Inheritance diagram for nndeploy::dag::Executor:
[legend]
Collaboration diagram for nndeploy::dag::Executor:
[legend]

Public Member Functions

virtual base::Status deinit ()=0
 
 Executor ()
 
device::StreamgetStream ()
 
virtual base::Status init (std::vector< EdgeWrapper * > &edge_repository, std::vector< NodeWrapper * > &node_repository)=0
 
virtual bool interrupt ()=0
 
virtual base::Status run ()=0
 
void setStream (device::Stream *stream)
 
virtual bool synchronize ()=0
 
virtual ~Executor ()
 
- Public Member Functions inherited from nndeploy::base::NonCopyable
 NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
 NonCopyable (NonCopyable &&)=delete
 
NonCopyableoperator= (const NonCopyable &)=delete
 
NonCopyableoperator= (NonCopyable &&)=delete
 

Protected Attributes

bool is_external_stream_ = false
 
device::Streamstream_ = nullptr
 

Detailed Description

Definition at line 20 of file executor.h.

Constructor & Destructor Documentation

◆ Executor()

nndeploy::dag::Executor::Executor ( )
inline

Definition at line 22 of file executor.h.

◆ ~Executor()

virtual nndeploy::dag::Executor::~Executor ( )
inlinevirtual

Definition at line 23 of file executor.h.

Here is the call graph for this function:

Member Function Documentation

◆ deinit()

virtual base::Status nndeploy::dag::Executor::deinit ( )
pure virtual

◆ getStream()

device::Stream* nndeploy::dag::Executor::getStream ( )
inline

Definition at line 37 of file executor.h.

◆ init()

virtual base::Status nndeploy::dag::Executor::init ( std::vector< EdgeWrapper * > &  edge_repository,
std::vector< NodeWrapper * > &  node_repository 
)
pure virtual

◆ interrupt()

virtual bool nndeploy::dag::Executor::interrupt ( )
pure virtual

◆ run()

virtual base::Status nndeploy::dag::Executor::run ( )
pure virtual

◆ setStream()

void nndeploy::dag::Executor::setStream ( device::Stream stream)
inline

Definition at line 30 of file executor.h.

Here is the call graph for this function:

◆ synchronize()

virtual bool nndeploy::dag::Executor::synchronize ( )
pure virtual

Member Data Documentation

◆ is_external_stream_

bool nndeploy::dag::Executor::is_external_stream_ = false
protected

Definition at line 49 of file executor.h.

◆ stream_

device::Stream* nndeploy::dag::Executor::stream_ = nullptr
protected

Definition at line 50 of file executor.h.


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