Lines Matching refs:field
60 for (const auto& field : public_fields) { in GenParserDefinition() local
61 GenParserFieldGetter(s, field); in GenParserDefinition()
85 for (const auto& field : private_fields) { in GenParserDefinition() local
86 GenParserFieldGetter(s, field); in GenParserDefinition()
141 for (const auto& field : public_fields) { in GenParserDefinitionPybind11() local
142 auto getter_func_name = field->GetGetterFunctionName(); in GenParserDefinitionPybind11()
152 void PacketDef::GenParserFieldGetter(std::ostream& s, const PacketField* field) const { in GenParserFieldGetter()
154 auto start_field_offset = GetOffsetForField(field->GetName(), false); in GenParserFieldGetter()
155 auto end_field_offset = GetOffsetForField(field->GetName(), true); in GenParserFieldGetter()
158 ERROR(field) << "Field location for " << field->GetName() << " is ambiguous, " in GenParserFieldGetter()
162 field->GenGetter(s, start_field_offset, end_field_offset); in GenParserFieldGetter()
172 for (const auto& field : fields_) { in GenValidator() local
173 if (field->GetFieldType() != PaddingField::kFieldType) { in GenValidator()
174 bits_size += field->GetSize().bits(); in GenValidator()
205 for (const auto& field : fields_) { in GenValidator() local
206 if (field->GetFieldType() == ChecksumStartField::kFieldType) { in GenValidator()
207 auto offset = GetOffsetForField(field->GetName(), false); in GenValidator()
211 offset = GetOffsetForField(field->GetName(), true); in GenValidator()
213 ERROR(field) << "Checksum Start Field offset can not be determined."; in GenValidator()
218 const auto& field_name = ((ChecksumStartField*)field)->GetStartedFieldName(); in GenValidator()
221 …ERROR(field) << __func__ << ": Can't find checksum field named " << field_name << "(" << field->Ge… in GenValidator()
249 auto field_size = field->GetSize(); in GenValidator()
258 if (field->GetFieldType() == CustomField::kFieldType) { in GenValidator()
262 auto offset = GetOffsetForField(field->GetName(), false); in GenValidator()
264 ERROR(field) << "Custom Field offset can not be determined from begin()."; in GenValidator()
268 ERROR(field) << "Custom fields must be byte aligned."; in GenValidator()
272 const auto& custom_size_var = field->GetName() + "_size"; in GenValidator()
293 const auto& field = parent_->GetParamList().GetField(constraint.first); in GenValidator() local
294 if (field->GetFieldType() == ScalarField::kFieldType) { in GenValidator()
303 for (const auto& field : fields_) { in GenValidator() local
304 field->GenValidator(s); in GenValidator()
323 for (const auto& field : fields_) { in GenParserToString() local
324 …if (field->GetFieldType() == ReservedField::kFieldType || field->GetFieldType() == FixedScalarFiel… in GenParserToString()
325 field->GetFieldType() == ChecksumStartField::kFieldType) in GenParserToString()
328 s << (firstfield ? " << \"" : " << \", ") << field->GetName() << " = \" << "; in GenParserToString()
330 field->GenStringRepresentation(s, field->GetGetterFunctionName() + "()"); in GenParserToString()
489 for (const auto& field : GetParamList()) { in GetParametersToValidate() local
490 if (field->HasParameterValidator()) { in GetParametersToValidate()
491 params_to_validate.AppendField(field); in GetParametersToValidate()
642 for (const auto& field : params_to_validate) { in GenBuilderParameterChecker() local
643 field->GenParameterValidator(s); in GenBuilderParameterChecker()
681 const auto& field = parent_params[i]; in GenBuilderConstructor() local
682 const auto& constraint = parent_constraints_.find(field->GetName()); in GenBuilderConstructor()
684 if (field->GetFieldType() == ScalarField::kFieldType) { in GenBuilderConstructor()
686 } else if (field->GetFieldType() == EnumField::kFieldType) { in GenBuilderConstructor()
689 ERROR(field) << "Constraints on non enum/scalar fields should be impossible."; in GenBuilderConstructor()
692 s << "/* " << field->GetName() << "_ */"; in GenBuilderConstructor()
694 s << field->GetName(); in GenBuilderConstructor()
706 for (const auto& field : params) { in GenBuilderConstructor() local
707 if (parent_params.GetField(field->GetName()) == nullptr) { in GenBuilderConstructor()
708 saved_params.AppendField(field); in GenBuilderConstructor()