Home
last modified time | relevance | path

Searched refs:GetDataType (Results 1 – 25 of 41) sorted by relevance

12

/system/bt/gd/packet/parser/fields/
Dcustom_field.cc38 std::string CustomField::GetDataType() const { in GetDataType() function in CustomField
44 s << GetDataType() << "::Parse( " << GetName() << "_ptr, " << GetName() << "_it);"; in GenExtractor()
60 s << "std::unique_ptr<" << GetDataType() << "> " << GetGetterFunctionName() << "() const {"; in GenGetter()
66 s << "std::unique_ptr<" << GetDataType() << "> " << GetName() << "_value"; in GenGetter()
67 s << " = std::make_unique<" << GetDataType() << ">();"; in GenGetter()
68 s << GetDataType() << "* " << GetName() << "_ptr = " << GetName() << "_value.get();"; in GenGetter()
76 return GetDataType(); in GetBuilderParameterType()
Darray_field.cc82 std::string ArrayField::GetDataType() const { in GetDataType() function in ArrayField
83 return "std::array<" + element_field_->GetDataType() + "," + std::to_string(array_size_) + ">"; in GetDataType()
87 s << GetDataType() << "::iterator ret_it = " << GetName() << "_ptr->begin();"; in GenExtractor()
97 s << element_field_->GetDataType() << " " << element_field_->GetName() << "_ptr;"; in GenExtractor()
116 s << GetDataType() << " " << GetGetterFunctionName() << "() {"; in GenGetter()
122 s << GetDataType() << " " << GetName() << "_value{};"; in GenGetter()
123 s << GetDataType() << "* " << GetName() << "_ptr = &" << GetName() << "_value;"; in GenGetter()
133 ss << "std::array<" << element_field_->GetDataType() << "," << array_size_ << ">"; in GetBuilderParameterType()
135 ss << "const std::array<" << element_field_->GetDataType() << "," << array_size_ << ">&"; in GetBuilderParameterType()
145 s << "std::array<" << element_field_->GetDataType() << "," << array_size_ << "> " << GetName(); in GenBuilderMember()
[all …]
Dstruct_field.cc38 std::string StructField::GetDataType() const { in GetDataType() function in StructField
44 s << GetDataType() << "::Parse(" << GetName() << "_ptr, " << GetName() << "_it);"; in GenExtractor()
54 s << GetDataType() << " " << GetGetterFunctionName() << "() const {"; in GenGetter()
59 s << GetDataType() << " " << GetName() << "_value{};"; in GenGetter()
60 s << GetDataType() << "* " << GetName() << "_ptr = &" << GetName() << "_value;"; in GenGetter()
68 return GetDataType(); in GetBuilderParameterType()
92 return GetDataType(); in GetRustDataType()
Dvector_field.cc106 std::string VectorField::GetDataType() const { in GetDataType() function in VectorField
107 return "std::vector<" + element_field_->GetDataType() + ">"; in GetDataType()
130 s << element_field_->GetDataType() << " " << element_field_->GetName() << "_ptr;"; in GenExtractor()
132 s << element_field_->GetDataType() << " " << element_field_->GetName() << "_value;"; in GenExtractor()
133 …s << element_field_->GetDataType() << "* " << element_field_->GetName() << "_ptr = &" << element_f… in GenExtractor()
154 s << GetDataType() << " " << GetGetterFunctionName() << "() {"; in GenGetter()
160 s << GetDataType() << " " << GetName() << "_value{};"; in GenGetter()
161 s << GetDataType() << "* " << GetName() << "_ptr = &" << GetName() << "_value;"; in GenGetter()
171 ss << "std::vector<" << element_field_->GetDataType() << ">"; in GetBuilderParameterType()
173 ss << "const std::vector<" << element_field_->GetDataType() << ">&"; in GetBuilderParameterType()
[all …]
Dvariable_length_struct_field.cc38 std::string VariableLengthStructField::GetDataType() const { in GetDataType() function in VariableLengthStructField
59 s << GetDataType() << " " << GetGetterFunctionName() << "() const {"; in GenGetter()
64 s << GetDataType() << " " << GetName() << "_ptr{};"; in GenGetter()
71 return GetDataType(); in GetBuilderParameterType()
Dscalar_field.cc39 std::string ScalarField::GetDataType() const { in GetDataType() function in ScalarField
90 s << "*" << GetName() << "_ptr = static_cast<" << GetDataType() << ">(extracted_value);"; in GenExtractor()
100 s << GetDataType() << " " << GetGetterFunctionName() << "() const {"; in GenGetter()
104 s << GetDataType() << " " << GetName() << "_value{};"; in GenGetter()
105 s << GetDataType() << "* " << GetName() << "_ptr = &" << GetName() << "_value;"; in GenGetter()
112 return GetDataType(); in GetBuilderParameterType()
Denum_field.cc34 std::string EnumField::GetDataType() const { in GetDataType() function in EnumField
56 s << GetDataType() << "Text(" << accessor << ")"; in GenStringRepresentation()
Dchecksum_start_field.cc33 std::string ChecksumStartField::GetDataType() const { in GetDataType() function in ChecksumStartField
70 return GetDataType(); in GetRustDataType()
Dgroup_field.cc42 std::string GroupField::GetDataType() const { in GetDataType() function in GroupField
87 return GetDataType(); in GetRustDataType()
Dbody_field.cc42 std::string BodyField::GetDataType() const { in GetDataType() function in BodyField
80 return GetDataType(); in GetRustDataType()
Dcustom_field_fixed_size.cc30 std::string CustomFieldFixedSize::GetDataType() const { in GetDataType() function in CustomFieldFixedSize
52 s << "*" << GetName() << "_ptr = " << GetName() << "_it.extract<" << GetDataType() << ">();"; in GenExtractor()
Dfixed_enum_field.h34 virtual std::string GetDataType() const override;
Dfixed_enum_field.cc29 std::string FixedEnumField::GetDataType() const { in GetDataType() function in FixedEnumField
Dfixed_scalar_field.h34 virtual std::string GetDataType() const override;
Dfixed_field.h32 virtual std::string GetDataType() const override = 0;
Denum_field.h34 virtual std::string GetDataType() const override;
Dfixed_scalar_field.cc29 std::string FixedScalarField::GetDataType() const { in GetDataType() function in FixedScalarField
Dpadding_field.cc37 std::string PaddingField::GetDataType() const { in GetDataType() function in PaddingField
Dreserved_field.cc35 std::string ReservedField::GetDataType() const { in GetDataType() function in ReservedField
Dchecksum_field.cc29 std::string ChecksumField::GetDataType() const { in GetDataType() function in ChecksumField
Dgroup_field.h38 virtual std::string GetDataType() const override;
Dreserved_field.h32 virtual std::string GetDataType() const override;
Dcustom_field_fixed_size.h30 virtual std::string GetDataType() const override;
Dchecksum_field.h31 virtual std::string GetDataType() const override;
Dvariable_length_struct_field.h34 virtual std::string GetDataType() const override;

12