ONE - On-device Neural Engine
Loading...
Searching...
No Matches
flatbuffers::EnumVal Struct Reference

#include <idl.h>

Collaboration diagram for flatbuffers::EnumVal:

Public Member Functions

Offset< reflection::EnumVal > Serialize (FlatBufferBuilder *builder, const Parser &parser) const
 
bool Deserialize (const Parser &parser, const reflection::EnumVal *val)
 
uint64_t GetAsUInt64 () const
 
int64_t GetAsInt64 () const
 
bool IsZero () const
 
bool IsNonZero () const
 

Data Fields

std::string name
 
std::vector< std::string > doc_comment
 
Type union_type
 

Friends

bool operator== (const EnumVal &lhs, const EnumVal &rhs)
 

Detailed Description

Definition at line 389 of file idl.h.

Member Function Documentation

◆ Deserialize()

bool flatbuffers::EnumVal::Deserialize ( const Parser parser,
const reflection::EnumVal *  val 
)

◆ GetAsInt64()

int64_t flatbuffers::EnumVal::GetAsInt64 ( ) const
inline

Definition at line 396 of file idl.h.

396{ return value; }

Referenced by flatbuffers::EnumDef::ToString().

◆ GetAsUInt64()

uint64_t flatbuffers::EnumVal::GetAsUInt64 ( ) const
inline

Definition at line 395 of file idl.h.

395{ return static_cast<uint64_t>(value); }

Referenced by flatbuffers::EnumDef::ToString().

◆ IsNonZero()

bool flatbuffers::EnumVal::IsNonZero ( ) const
inline

Definition at line 398 of file idl.h.

398{ return !IsZero(); }
bool IsZero() const
Definition idl.h:397

References IsZero().

◆ IsZero()

bool flatbuffers::EnumVal::IsZero ( ) const
inline

Definition at line 397 of file idl.h.

397{ return 0 == value; }

Referenced by IsNonZero().

◆ Serialize()

Offset< reflection::EnumVal > flatbuffers::EnumVal::Serialize ( FlatBufferBuilder builder,
const Parser parser 
) const

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const EnumVal lhs,
const EnumVal rhs 
)
friend

Definition at line 507 of file idl.h.

507{ return lhs.value == rhs.value; }

Field Documentation

◆ doc_comment

std::vector<std::string> flatbuffers::EnumVal::doc_comment

Definition at line 401 of file idl.h.

◆ name

std::string flatbuffers::EnumVal::name

Definition at line 400 of file idl.h.

◆ union_type

Type flatbuffers::EnumVal::union_type

Definition at line 402 of file idl.h.


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