Lines Matching refs:field

56     for (const auto& field : fields_) {  in GenToString()  local
57 if (field->GetFieldType() == ReservedField::kFieldType || in GenToString()
58 field->GetFieldType() == ChecksumStartField::kFieldType || in GenToString()
59field->GetFieldType() == FixedScalarField::kFieldType || field->GetFieldType() == CountField::kFie… in GenToString()
60 field->GetFieldType() == SizeField::kFieldType) in GenToString()
63 s << (firstfield ? " << \"" : " << \", ") << field->GetName() << " = \" << "; in GenToString()
65 field->GenStringRepresentation(s, field->GetName() + "_"); in GenToString()
120 for (const auto& field : fields_) { in GenParse() local
121 …if (field->GetFieldType() != ReservedField::kFieldType && field->GetFieldType() != BodyField::kFie… in GenParse()
122 field->GetFieldType() != FixedScalarField::kFieldType && in GenParse()
123field->GetFieldType() != ChecksumStartField::kFieldType && field->GetFieldType() != ChecksumField:… in GenParse()
124 field->GetFieldType() != CountField::kFieldType) { in GenParse()
125 total_bits += field->GetSize().bits(); in GenParse()
136 for (const auto& field : fields_) { in GenParse() local
137 …if (field->GetFieldType() != ReservedField::kFieldType && field->GetFieldType() != BodyField::kFie… in GenParse()
138field->GetFieldType() != FixedScalarField::kFieldType && field->GetFieldType() != SizeField::kFiel… in GenParse()
139field->GetFieldType() != ChecksumStartField::kFieldType && field->GetFieldType() != ChecksumField:… in GenParse()
140 field->GetFieldType() != CountField::kFieldType) { in GenParse()
143field->GenBounds(s, GetStructOffsetForField(field->GetName()), Size(), field->GetStructSize()); in GenParse()
144 s << "auto " << field->GetName() << "_ptr = &to_fill->" << field->GetName() << "_;"; in GenParse()
145 field->GenExtractor(s, num_leading_bits, true); in GenParse()
148 …if (field->GetFieldType() == CountField::kFieldType || field->GetFieldType() == SizeField::kFieldT… in GenParse()
151field->GenBounds(s, GetStructOffsetForField(field->GetName()), Size(), field->GetStructSize()); in GenParse()
152 s << "auto " << field->GetName() << "_ptr = &to_fill->" << field->GetName() << "_extracted_;"; in GenParse()
153 field->GenExtractor(s, num_leading_bits, true); in GenParse()
209 for (const auto& field : fields_) { in GenDefinition() local
210 …if (field->GetFieldType() == CountField::kFieldType || field->GetFieldType() == SizeField::kFieldT… in GenDefinition()
212 s << " mutable " << field->GetDataType() << " " << field->GetName() << "_extracted_{0};"; in GenDefinition()
244 for (const auto& field : fields_) { in GenDefinitionPybind11() local
245 if (field->GetBuilderParameterType().empty()) { in GenDefinitionPybind11()
248 …s << ".def_readwrite(\"" << field->GetName() << "\", &" << name_ << "::" << field->GetName() << "_… in GenDefinitionPybind11()
271 const auto& field = parent_params[i]; in GenConstructor() local
272 const auto& constraint = parent_constraints_.find(field->GetName()); in GenConstructor()
274 s << parent_->name_ << "::" << field->GetName() << "_ = "; in GenConstructor()
275 if (field->GetFieldType() == ScalarField::kFieldType) { in GenConstructor()
277 } else if (field->GetFieldType() == EnumField::kFieldType) { in GenConstructor()
280 ERROR(field) << "Constraints on non enum/scalar fields should be impossible."; in GenConstructor()
294 const auto& field = *it; in GetStructOffsetForField() local
296 if (field->GetStructSize().empty()) { in GetStructOffsetForField()
299 size += field->GetStructSize(); in GetStructOffsetForField()