ONE - On-device Neural Engine
Loading...
Searching...
No Matches
flatbuffers::CheckedError Class Reference

#include <idl.h>

Public Member Functions

 CheckedError (bool error)
 
CheckedErroroperator= (const CheckedError &other)
 
 CheckedError (const CheckedError &other)
 
 ~CheckedError ()
 
bool Check ()
 

Detailed Description

Definition at line 876 of file idl.h.

Constructor & Destructor Documentation

◆ CheckedError() [1/2]

flatbuffers::CheckedError::CheckedError ( bool  error)
inlineexplicit

Definition at line 878 of file idl.h.

879 : is_error_(error), has_been_checked_(false) {}

◆ CheckedError() [2/2]

flatbuffers::CheckedError::CheckedError ( const CheckedError other)
inline

Definition at line 888 of file idl.h.

888 {
889 *this = other; // Use assignment operator.
890 }

◆ ~CheckedError()

flatbuffers::CheckedError::~CheckedError ( )
inline

Definition at line 892 of file idl.h.

892{ FLATBUFFERS_ASSERT(has_been_checked_); }
#define FLATBUFFERS_ASSERT
Definition base.h:21

References FLATBUFFERS_ASSERT.

Member Function Documentation

◆ Check()

bool flatbuffers::CheckedError::Check ( )
inline

Definition at line 894 of file idl.h.

894 {
895 has_been_checked_ = true;
896 return is_error_;
897 }

◆ operator=()

CheckedError & flatbuffers::CheckedError::operator= ( const CheckedError other)
inline

Definition at line 881 of file idl.h.

881 {
882 is_error_ = other.is_error_;
883 has_been_checked_ = false;
884 other.has_been_checked_ = true;
885 return *this;
886 }

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