HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
onnxruntime::common::Status Class Reference

#include <status.h>

Public Member Functions

 Status () noexcept=default
 
 Status (StatusCategory category, int code, const std::string &msg)
 
 Status (StatusCategory category, int code, const char *msg)
 
 Status (StatusCategory category, int code)
 
 Status (const Status &other)
 
Statusoperator= (const Status &other)
 
 Status (Status &&)=default
 
Statusoperator= (Status &&)=default
 
 ~Status ()=default
 
bool IsOK () const
 
int Code () const noexcept
 
StatusCategory Category () const noexcept
 
const std::stringErrorMessage () const noexcept
 
std::string ToString () const
 
bool operator== (const Status &other) const
 
bool operator!= (const Status &other) const
 

Static Public Member Functions

static Status OK ()
 

Detailed Description

Definition at line 113 of file status.h.

Constructor & Destructor Documentation

onnxruntime::common::Status::Status ( )
defaultnoexcept
onnxruntime::common::Status::Status ( StatusCategory  category,
int  code,
const std::string msg 
)
onnxruntime::common::Status::Status ( StatusCategory  category,
int  code,
const char *  msg 
)
onnxruntime::common::Status::Status ( StatusCategory  category,
int  code 
)
onnxruntime::common::Status::Status ( const Status other)
inline

Definition at line 123 of file status.h.

onnxruntime::common::Status::Status ( Status &&  )
default
onnxruntime::common::Status::~Status ( )
default

Member Function Documentation

StatusCategory onnxruntime::common::Status::Category ( ) const
noexcept
int onnxruntime::common::Status::Code ( ) const
noexcept
const std::string& onnxruntime::common::Status::ErrorMessage ( ) const
noexcept
bool onnxruntime::common::Status::IsOK ( ) const
inline

Definition at line 140 of file status.h.

static Status onnxruntime::common::Status::OK ( )
inlinestatic

Definition at line 160 of file status.h.

bool onnxruntime::common::Status::operator!= ( const Status other) const
inline

Definition at line 156 of file status.h.

Status& onnxruntime::common::Status::operator= ( const Status other)
inline

Definition at line 125 of file status.h.

Status& onnxruntime::common::Status::operator= ( Status &&  )
default
bool onnxruntime::common::Status::operator== ( const Status other) const
inline

Definition at line 152 of file status.h.

std::string onnxruntime::common::Status::ToString ( ) const

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