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 708 of file idl.h.

Constructor & Destructor Documentation

◆ CheckedError() [1/2]

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

Definition at line 711 of file idl.h.

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

◆ CheckedError() [2/2]

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

Definition at line 721 of file idl.h.

722 {
723 *this = other; // Use assignment operator.
724 }

◆ ~CheckedError()

flatbuffers::CheckedError::~CheckedError ( )
inline

Definition at line 726 of file idl.h.

726{ FLATBUFFERS_ASSERT(has_been_checked_); }
#define FLATBUFFERS_ASSERT
Definition base.h:37

References FLATBUFFERS_ASSERT.

Member Function Documentation

◆ Check()

bool flatbuffers::CheckedError::Check ( )
inline

Definition at line 728 of file idl.h.

729 {
730 has_been_checked_ = true;
731 return is_error_;
732 }

◆ operator=()

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

Definition at line 713 of file idl.h.

714 {
715 is_error_ = other.is_error_;
716 has_been_checked_ = false;
717 other.has_been_checked_ = true;
718 return *this;
719 }

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