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

#include <idl.h>

Collaboration diagram for flatbuffers::Type:

Public Member Functions

 Type (BaseType _base_type=BASE_TYPE_NONE, StructDef *_sd=nullptr, EnumDef *_ed=nullptr, uint16_t _fixed_length=0)
 
bool operator== (const Type &o)
 
Type VectorType () const
 
Offset< reflection::Type > Serialize (FlatBufferBuilder *builder) const
 
bool Deserialize (const Parser &parser, const reflection::Type *type)
 

Data Fields

BaseType base_type
 
BaseType element
 
StructDefstruct_def
 
EnumDefenum_def
 
uint16_t fixed_length
 

Detailed Description

Definition at line 163 of file idl.h.

Constructor & Destructor Documentation

◆ Type()

flatbuffers::Type::Type ( BaseType  _base_type = BASE_TYPE_NONE,
StructDef _sd = nullptr,
EnumDef _ed = nullptr,
uint16_t  _fixed_length = 0 
)
inlineexplicit

Definition at line 165 of file idl.h.

167 : base_type(_base_type), element(BASE_TYPE_NONE), struct_def(_sd), enum_def(_ed),
168 fixed_length(_fixed_length)
169 {
170 }
BaseType element
Definition idl.h:185
StructDef * struct_def
Definition idl.h:186
uint16_t fixed_length
Definition idl.h:189
BaseType base_type
Definition idl.h:184
EnumDef * enum_def
Definition idl.h:187

Member Function Documentation

◆ Deserialize()

bool flatbuffers::Type::Deserialize ( const Parser parser,
const reflection::Type *  type 
)

◆ operator==()

bool flatbuffers::Type::operator== ( const Type o)
inline

Definition at line 172 of file idl.h.

173 {
174 return base_type == o.base_type && element == o.element && struct_def == o.struct_def &&
175 enum_def == o.enum_def;
176 }

References base_type, element, enum_def, and struct_def.

◆ Serialize()

Offset< reflection::Type > flatbuffers::Type::Serialize ( FlatBufferBuilder builder) const

◆ VectorType()

Type flatbuffers::Type::VectorType ( ) const
inline

Definition at line 178 of file idl.h.

Type(BaseType _base_type=BASE_TYPE_NONE, StructDef *_sd=nullptr, EnumDef *_ed=nullptr, uint16_t _fixed_length=0)
Definition idl.h:165

References element, enum_def, fixed_length, and struct_def.

Field Documentation

◆ base_type

BaseType flatbuffers::Type::base_type

◆ element

BaseType flatbuffers::Type::element

Definition at line 185 of file idl.h.

Referenced by flatbuffers::EqualByName(), operator==(), and VectorType().

◆ enum_def

EnumDef* flatbuffers::Type::enum_def

Definition at line 187 of file idl.h.

Referenced by flatbuffers::EqualByName(), operator==(), and VectorType().

◆ fixed_length

uint16_t flatbuffers::Type::fixed_length

Definition at line 189 of file idl.h.

Referenced by VectorType().

◆ struct_def

StructDef* flatbuffers::Type::struct_def

Definition at line 186 of file idl.h.

Referenced by flatbuffers::EqualByName(), operator==(), and VectorType().


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