Android-cuttlefish cvd tool
Public Types | Public Member Functions | Private Attributes | List of all members
teeui::Error Class Reference

#include <error.h>

Public Types

enum  error_e : uint32_t {
  OK , NotInitialized , FaceNotLoaded , CharSizeNotSet ,
  GlyphNotLoaded , GlyphNotRendered , GlyphNotExtracted , UnsupportedPixelFormat ,
  OutOfBoundsDrawing , BBoxComputation , OutOfMemory , Localization
}
 

Public Member Functions

constexpr Error () noexcept
 
constexpr Error (error_e v) noexcept
 
constexpr Error (Error &&) noexcept=default
 
constexpr Error (const Error &) noexcept=default
 
Erroroperator= (error_e v)
 
Erroroperator= (const Error &other)
 
 operator bool () const
 
Error operator|| (const Error &rhs) const
 
bool operator== (error_e v) const
 
bool operator!= (error_e v) const
 
constexpr error_e code () const
 

Private Attributes

error_e v_
 

Member Enumeration Documentation

◆ error_e

enum teeui::Error::error_e : uint32_t
Enumerator
OK 
NotInitialized 
FaceNotLoaded 
CharSizeNotSet 
GlyphNotLoaded 
GlyphNotRendered 
GlyphNotExtracted 
UnsupportedPixelFormat 
OutOfBoundsDrawing 
BBoxComputation 
OutOfMemory 
Localization 

Constructor & Destructor Documentation

◆ Error() [1/4]

constexpr teeui::Error::Error ( )
inlineconstexprnoexcept

◆ Error() [2/4]

constexpr teeui::Error::Error ( error_e  v)
inlineconstexprnoexcept

◆ Error() [3/4]

constexpr teeui::Error::Error ( Error &&  )
constexprdefaultnoexcept

◆ Error() [4/4]

constexpr teeui::Error::Error ( const Error )
constexprdefaultnoexcept

Member Function Documentation

◆ code()

constexpr error_e teeui::Error::code ( ) const
inlineconstexpr

◆ operator bool()

teeui::Error::operator bool ( ) const
inline

Evaluates to true if this represents an error condition. Consider a function Error foo(), use the following pattern to handle the error. if (auto error = foo()) { <handle error here> }

◆ operator!=()

bool teeui::Error::operator!= ( error_e  v) const
inline

◆ operator=() [1/2]

Error & teeui::Error::operator= ( const Error other)
inline

◆ operator=() [2/2]

Error & teeui::Error::operator= ( error_e  v)
inline

◆ operator==()

bool teeui::Error::operator== ( error_e  v) const
inline

◆ operator||()

Error teeui::Error::operator|| ( const Error rhs) const
inline

Member Data Documentation

◆ v_

error_e teeui::Error::v_
private

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