Home | History | Annotate | Download | only in flatbuffers

Lines Matching refs:type_

263     : Sized(data, byte_width), type_(element_type) {}
275 Type ElementType() { return type_; }
278 Type type_;
287 : Object(data, byte_width), type_(element_type), len_(len) {}
299 Type ElementType() { return type_; }
303 Type type_;
343 type_(type) {}
348 type_ = static_cast<Type>(packed_type >> 2);
351 Type GetType() const { return type_; }
353 bool IsNull() const { return type_ == TYPE_NULL; }
354 bool IsBool() const { return type_ == TYPE_BOOL; }
355 bool IsInt() const { return type_ == TYPE_INT ||
356 type_ == TYPE_INDIRECT_INT; }
357 bool IsUInt() const { return type_ == TYPE_UINT||
358 type_ == TYPE_INDIRECT_UINT;; }
360 bool IsFloat() const { return type_ == TYPE_FLOAT ||
361 type_ == TYPE_INDIRECT_FLOAT; }
363 bool IsString() const { return type_ == TYPE_STRING; }
364 bool IsKey() const { return type_ == TYPE_KEY; }
365 bool IsVector() const { return type_ == TYPE_VECTOR || type_ == TYPE_MAP; }
366 bool IsMap() const { return type_ == TYPE_MAP; }
367 bool IsBlob() const { return type_ == TYPE_BLOB; }
370 return (type_ == TYPE_BOOL ? ReadUInt64(data_, parent_width_) : AsUInt64()) != 0;
377 if (type_ == TYPE_INT) {
380 } else switch (type_) {
405 if (type_ == TYPE_UINT) {
408 } else switch (type_) {
431 if (type_ == TYPE_FLOAT) {
434 } else switch (type_) {
458 if (type_ == TYPE_KEY) {
467 if (type_ == TYPE_STRING) {
486 if (type_ == TYPE_STRING) {
538 if (type_ == TYPE_BLOB || type_ == TYPE_STRING) {
548 if (type_ == TYPE_VECTOR || type_ == TYPE_MAP) {
556 if (IsTypedVector(type_)) {
558 ToTypedVectorElementType(type_));
565 if (IsFixedTypedVector(type_)) {
567 auto vtype = ToFixedTypedVectorElementType(type_, &len);
575 if (type_ == TYPE_MAP) {
591 if (type_ == TYPE_INT) {
593 } else if (type_ == TYPE_INDIRECT_INT) {
595 } else if (type_ == TYPE_UINT) {
598 } else if (type_ == TYPE_INDIRECT_UINT) {
607 return type_ == TYPE_BOOL && Mutate(data_, b, parent_width_, BIT_WIDTH_8);
611 if (type_ == TYPE_UINT) {
613 } else if (type_ == TYPE_INDIRECT_UINT) {
615 } else if (type_ == TYPE_INT) {
618 } else if (type_ == TYPE_INDIRECT_INT) {
627 if (type_ == TYPE_FLOAT) {
629 } else if (type_ == TYPE_INDIRECT_FLOAT) {
637 if (type_ == TYPE_FLOAT) {
639 } else if (type_ == TYPE_INDIRECT_FLOAT) {
690 Type type_;
745 return Reference(elem, byte_width_, 1, type_);
751 return Reference(elem, byte_width_, 1, type_);
999 assert(stack_[key].type_ == TYPE_KEY);
1282 Type type_;
1287 Value() : i_(0), type_(TYPE_NULL), min_bit_width_(BIT_WIDTH_8) {}
1289 Value(bool b) : u_(static_cast<uint64_t>(b)), type_(TYPE_BOOL), min_bit_width_(BIT_WIDTH_8) {}
1292 : i_(i), type_(t), min_bit_width_(bw) {}
1294 : u_(u), type_(t), min_bit_width_(bw) {}
1297 : f_(f), type_(TYPE_FLOAT), min_bit_width_(BIT_WIDTH_32) {}
1299 : f_(f), type_(TYPE_FLOAT), min_bit_width_(WidthF(f)) {}
1302 return PackedType(StoredWidth(parent_bit_width_), type_);
1306 if (IsInline(type_)) {
1335 if (IsInline(type_)) {
1344 switch (val.type_) {
1410 vector_type = stack_[i].type_;
1414 assert(vector_type == stack_[i].type_);