Lines Matching refs:code_ptr
137 void BeginClass(const StructDef &struct_def, std::string *code_ptr) { in BeginClass() argument
138 std::string &code = *code_ptr; in BeginClass()
155 void GenEnumType(const EnumDef &enum_def, std::string *code_ptr) { in GenEnumType() argument
156 std::string &code = *code_ptr; in GenEnumType()
162 void BeginEnum(std::string *code_ptr) { in BeginEnum() argument
163 std::string &code = *code_ptr; in BeginEnum()
169 size_t max_name_length, std::string *code_ptr) { in EnumMember() argument
170 std::string &code = *code_ptr; in EnumMember()
182 void EndEnum(std::string *code_ptr) { in EndEnum() argument
183 std::string &code = *code_ptr; in EndEnum()
188 void BeginEnumNames(const EnumDef &enum_def, std::string *code_ptr) { in BeginEnumNames() argument
189 std::string &code = *code_ptr; in BeginEnumNames()
197 size_t max_name_length, std::string *code_ptr) { in EnumNameMember() argument
198 std::string &code = *code_ptr; in EnumNameMember()
210 void EndEnumNames(std::string *code_ptr) { in EndEnumNames() argument
211 std::string &code = *code_ptr; in EndEnumNames()
216 void EnumStringer(const EnumDef &enum_def, std::string *code_ptr) { in EnumStringer() argument
217 std::string &code = *code_ptr; in EnumStringer()
228 void BeginEnumValues(const EnumDef &enum_def, std::string *code_ptr) { in BeginEnumValues() argument
229 std::string &code = *code_ptr; in BeginEnumValues()
237 size_t max_name_length, std::string *code_ptr) { in EnumValueMember() argument
238 std::string &code = *code_ptr; in EnumValueMember()
249 void EndEnumValues(std::string *code_ptr) { in EndEnumValues() argument
250 std::string &code = *code_ptr; in EndEnumValues()
256 std::string *code_ptr) { in NewRootTypeFromBuffer() argument
257 std::string &code = *code_ptr; in NewRootTypeFromBuffer()
285 void InitializeExisting(const StructDef &struct_def, std::string *code_ptr) { in InitializeExisting() argument
286 std::string &code = *code_ptr; in InitializeExisting()
288 GenReceiver(struct_def, code_ptr); in InitializeExisting()
297 void GenTableAccessor(const StructDef &struct_def, std::string *code_ptr) { in GenTableAccessor() argument
298 std::string &code = *code_ptr; in GenTableAccessor()
300 GenReceiver(struct_def, code_ptr); in GenTableAccessor()
314 std::string *code_ptr) { in GetVectorLen() argument
315 std::string &code = *code_ptr; in GetVectorLen()
317 GenReceiver(struct_def, code_ptr); in GetVectorLen()
326 std::string *code_ptr) { in GetUByteSlice() argument
327 std::string &code = *code_ptr; in GetUByteSlice()
329 GenReceiver(struct_def, code_ptr); in GetUByteSlice()
338 const FieldDef &field, std::string *code_ptr) { in GetScalarFieldOfStruct() argument
339 std::string &code = *code_ptr; in GetScalarFieldOfStruct()
341 GenReceiver(struct_def, code_ptr); in GetScalarFieldOfStruct()
353 std::string *code_ptr) { in GetScalarFieldOfTable() argument
354 std::string &code = *code_ptr; in GetScalarFieldOfTable()
356 GenReceiver(struct_def, code_ptr); in GetScalarFieldOfTable()
369 const FieldDef &field, std::string *code_ptr) { in GetStructFieldOfStruct() argument
370 std::string &code = *code_ptr; in GetStructFieldOfStruct()
371 GenReceiver(struct_def, code_ptr); in GetStructFieldOfStruct()
388 std::string *code_ptr) { in GetStructFieldOfTable() argument
389 std::string &code = *code_ptr; in GetStructFieldOfTable()
390 GenReceiver(struct_def, code_ptr); in GetStructFieldOfTable()
410 std::string *code_ptr) { in GetStringField() argument
411 std::string &code = *code_ptr; in GetStringField()
412 GenReceiver(struct_def, code_ptr); in GetStringField()
422 std::string *code_ptr) { in GetUnionField() argument
423 std::string &code = *code_ptr; in GetUnionField()
424 GenReceiver(struct_def, code_ptr); in GetUnionField()
436 const FieldDef &field, std::string *code_ptr) { in GetMemberOfVectorOfStruct() argument
437 std::string &code = *code_ptr; in GetMemberOfVectorOfStruct()
440 GenReceiver(struct_def, code_ptr); in GetMemberOfVectorOfStruct()
459 std::string *code_ptr) { in GetMemberOfVectorOfNonStruct() argument
460 std::string &code = *code_ptr; in GetMemberOfVectorOfNonStruct()
463 GenReceiver(struct_def, code_ptr); in GetMemberOfVectorOfNonStruct()
485 void BeginBuilderArgs(const StructDef &struct_def, std::string *code_ptr) { in BeginBuilderArgs() argument
486 std::string &code = *code_ptr; in BeginBuilderArgs()
499 std::string *code_ptr) { in StructBuilderArgs() argument
508 (nameprefix + (field.name + "_")).c_str(), code_ptr); in StructBuilderArgs()
510 std::string &code = *code_ptr; in StructBuilderArgs()
519 void EndBuilderArgs(std::string *code_ptr) { in EndBuilderArgs() argument
520 std::string &code = *code_ptr; in EndBuilderArgs()
527 std::string *code_ptr) { in StructBuilderBody() argument
528 std::string &code = *code_ptr; in StructBuilderBody()
538 (nameprefix + (field.name + "_")).c_str(), code_ptr); in StructBuilderBody()
548 void EndBuilderBody(std::string *code_ptr) { in EndBuilderBody() argument
549 std::string &code = *code_ptr; in EndBuilderBody()
555 void GetStartOfTable(const StructDef &struct_def, std::string *code_ptr) { in GetStartOfTable() argument
556 std::string &code = *code_ptr; in GetStartOfTable()
566 const size_t offset, std::string *code_ptr) { in BuildFieldOfTable() argument
567 std::string &code = *code_ptr; in BuildFieldOfTable()
593 std::string *code_ptr) { in BuildVectorOfTable() argument
594 std::string &code = *code_ptr; in BuildVectorOfTable()
608 void GetEndOffsetOnTable(const StructDef &struct_def, std::string *code_ptr) { in GetEndOffsetOnTable() argument
609 std::string &code = *code_ptr; in GetEndOffsetOnTable()
616 void GenReceiver(const StructDef &struct_def, std::string *code_ptr) { in GenReceiver() argument
617 std::string &code = *code_ptr; in GenReceiver()
623 std::string *code_ptr) { in GenStructAccessor() argument
624 GenComment(field.doc_comment, code_ptr, nullptr, ""); in GenStructAccessor()
627 GetScalarFieldOfStruct(struct_def, field, code_ptr); in GenStructAccessor()
629 GetScalarFieldOfTable(struct_def, field, code_ptr); in GenStructAccessor()
635 GetStructFieldOfStruct(struct_def, field, code_ptr); in GenStructAccessor()
637 GetStructFieldOfTable(struct_def, field, code_ptr); in GenStructAccessor()
641 GetStringField(struct_def, field, code_ptr); in GenStructAccessor()
646 GetMemberOfVectorOfStruct(struct_def, field, code_ptr); in GenStructAccessor()
648 GetMemberOfVectorOfNonStruct(struct_def, field, code_ptr); in GenStructAccessor()
652 case BASE_TYPE_UNION: GetUnionField(struct_def, field, code_ptr); break; in GenStructAccessor()
657 GetVectorLen(struct_def, field, code_ptr); in GenStructAccessor()
659 GetUByteSlice(struct_def, field, code_ptr); in GenStructAccessor()
666 const FieldDef &field, std::string *code_ptr) { in MutateScalarFieldOfStruct() argument
667 std::string &code = *code_ptr; in MutateScalarFieldOfStruct()
670 GenReceiver(struct_def, code_ptr); in MutateScalarFieldOfStruct()
680 const FieldDef &field, std::string *code_ptr) { in MutateScalarFieldOfTable() argument
681 std::string &code = *code_ptr; in MutateScalarFieldOfTable()
684 GenReceiver(struct_def, code_ptr); in MutateScalarFieldOfTable()
695 std::string *code_ptr) { in MutateElementOfVectorOfNonStruct() argument
696 std::string &code = *code_ptr; in MutateElementOfVectorOfNonStruct()
700 GenReceiver(struct_def, code_ptr); in MutateElementOfVectorOfNonStruct()
716 std::string *code_ptr) { in GenStructMutator() argument
717 GenComment(field.doc_comment, code_ptr, nullptr, ""); in GenStructMutator()
720 MutateScalarFieldOfStruct(struct_def, field, code_ptr); in GenStructMutator()
722 MutateScalarFieldOfTable(struct_def, field, code_ptr); in GenStructMutator()
726 MutateElementOfVectorOfNonStruct(struct_def, field, code_ptr); in GenStructMutator()
732 void GenTableBuilders(const StructDef &struct_def, std::string *code_ptr) { in GenTableBuilders() argument
733 GetStartOfTable(struct_def, code_ptr); in GenTableBuilders()
741 BuildFieldOfTable(struct_def, field, offset, code_ptr); in GenTableBuilders()
743 BuildVectorOfTable(struct_def, field, code_ptr); in GenTableBuilders()
747 GetEndOffsetOnTable(struct_def, code_ptr); in GenTableBuilders()
751 void GenStruct(const StructDef &struct_def, std::string *code_ptr) { in GenStruct() argument
756 GenComment(struct_def.doc_comment, code_ptr, nullptr); in GenStruct()
758 GenNativeStruct(struct_def, code_ptr); in GenStruct()
760 BeginClass(struct_def, code_ptr); in GenStruct()
764 NewRootTypeFromBuffer(struct_def, code_ptr); in GenStruct()
768 InitializeExisting(struct_def, code_ptr); in GenStruct()
770 GenTableAccessor(struct_def, code_ptr); in GenStruct()
778 GenStructAccessor(struct_def, field, code_ptr); in GenStruct()
779 GenStructMutator(struct_def, field, code_ptr); in GenStruct()
785 GenStructBuilder(struct_def, code_ptr); in GenStruct()
788 GenTableBuilders(struct_def, code_ptr); in GenStruct()
792 void GenNativeStruct(const StructDef &struct_def, std::string *code_ptr) { in GenNativeStruct() argument
793 std::string &code = *code_ptr; in GenNativeStruct()
810 GenNativeTablePack(struct_def, code_ptr); in GenNativeStruct()
811 GenNativeTableUnPack(struct_def, code_ptr); in GenNativeStruct()
813 GenNativeStructPack(struct_def, code_ptr); in GenNativeStruct()
814 GenNativeStructUnPack(struct_def, code_ptr); in GenNativeStruct()
818 void GenNativeUnion(const EnumDef &enum_def, std::string *code_ptr) { in GenNativeUnion() argument
819 std::string &code = *code_ptr; in GenNativeUnion()
826 void GenNativeUnionPack(const EnumDef &enum_def, std::string *code_ptr) { in GenNativeUnionPack() argument
827 std::string &code = *code_ptr; in GenNativeUnionPack()
846 void GenNativeUnionUnPack(const EnumDef &enum_def, std::string *code_ptr) { in GenNativeUnionUnPack() argument
847 std::string &code = *code_ptr; in GenNativeUnionUnPack()
871 void GenNativeTablePack(const StructDef &struct_def, std::string *code_ptr) { in GenNativeTablePack() argument
872 std::string &code = *code_ptr; in GenNativeTablePack()
983 std::string *code_ptr) { in GenNativeTableUnPack() argument
984 std::string &code = *code_ptr; in GenNativeTableUnPack()
1059 void GenNativeStructPack(const StructDef &struct_def, std::string *code_ptr) { in GenNativeStructPack() argument
1060 std::string &code = *code_ptr; in GenNativeStructPack()
1066 StructPackArgs(struct_def, "", code_ptr); in GenNativeStructPack()
1072 std::string *code_ptr) { in StructPackArgs() argument
1073 std::string &code = *code_ptr; in StructPackArgs()
1080 code_ptr); in StructPackArgs()
1088 std::string *code_ptr) { in GenNativeStructUnPack() argument
1089 std::string &code = *code_ptr; in GenNativeStructUnPack()
1116 void GenEnum(const EnumDef &enum_def, std::string *code_ptr) { in GenEnum() argument
1122 GenComment(enum_def.doc_comment, code_ptr, nullptr); in GenEnum()
1123 GenEnumType(enum_def, code_ptr); in GenEnum()
1124 BeginEnum(code_ptr); in GenEnum()
1127 GenComment(ev.doc_comment, code_ptr, nullptr, "\t"); in GenEnum()
1128 EnumMember(enum_def, ev, max_name_length, code_ptr); in GenEnum()
1130 EndEnum(code_ptr); in GenEnum()
1132 BeginEnumNames(enum_def, code_ptr); in GenEnum()
1135 EnumNameMember(enum_def, ev, max_name_length, code_ptr); in GenEnum()
1137 EndEnumNames(code_ptr); in GenEnum()
1139 BeginEnumValues(enum_def, code_ptr); in GenEnum()
1142 EnumValueMember(enum_def, ev, max_name_length, code_ptr); in GenEnum()
1144 EndEnumValues(code_ptr); in GenEnum()
1146 EnumStringer(enum_def, code_ptr); in GenEnum()
1259 void GenStructBuilder(const StructDef &struct_def, std::string *code_ptr) { in GenStructBuilder() argument
1260 BeginBuilderArgs(struct_def, code_ptr); in GenStructBuilder()
1261 StructBuilderArgs(struct_def, "", code_ptr); in GenStructBuilder()
1262 EndBuilderArgs(code_ptr); in GenStructBuilder()
1264 StructBuilderBody(struct_def, "", code_ptr); in GenStructBuilder()
1265 EndBuilderBody(code_ptr); in GenStructBuilder()
1269 const bool is_enum, std::string *code_ptr) { in BeginFile() argument
1270 std::string &code = *code_ptr; in BeginFile()