• Home
  • Raw
  • Download

Lines Matching refs:code_ptr

66                  std::string *code_ptr) {  in BeginFile()  argument
67 auto &code = *code_ptr; in BeginFile()
100 static void BeginClass(const StructDef &struct_def, std::string *code_ptr) { in BeginClass() argument
101 std::string &code = *code_ptr; in BeginClass()
110 static void EndClass(std::string *code_ptr) { in EndClass() argument
111 std::string &code = *code_ptr; in EndClass()
116 static void BeginEnum(const std::string &class_name, std::string *code_ptr) { in BeginEnum() argument
117 std::string &code = *code_ptr; in BeginEnum()
123 std::string *code_ptr) { in EnumMember() argument
124 std::string &code = *code_ptr; in EnumMember()
132 static void EndEnum(std::string *code_ptr) { in EndEnum() argument
133 std::string &code = *code_ptr; in EndEnum()
139 std::string *code_ptr) { in NewRootTypeFromBuffer() argument
140 std::string &code = *code_ptr; in NewRootTypeFromBuffer()
160 std::string *code_ptr) { in InitializeExisting() argument
161 std::string &code = *code_ptr; in InitializeExisting()
177 static void GetVectorLen(const FieldDef &field, std::string *code_ptr) { in GetVectorLen() argument
178 std::string &code = *code_ptr; in GetVectorLen()
194 static void GetUByte(const FieldDef &field, std::string *code_ptr) { in GetUByte() argument
195 std::string &code = *code_ptr; in GetUByte()
210 std::string *code_ptr) { in GetScalarFieldOfStruct() argument
211 std::string &code = *code_ptr; in GetScalarFieldOfStruct()
233 void GetScalarFieldOfTable(const FieldDef &field, std::string *code_ptr) { in GetScalarFieldOfTable() argument
234 std::string &code = *code_ptr; in GetScalarFieldOfTable()
254 void GetStructFieldOfStruct(const FieldDef &field, std::string *code_ptr) { in GetStructFieldOfStruct() argument
255 std::string &code = *code_ptr; in GetStructFieldOfStruct()
273 void GetStructFieldOfTable(const FieldDef &field, std::string *code_ptr) { in GetStructFieldOfTable() argument
274 std::string &code = *code_ptr; in GetStructFieldOfTable()
296 void GetStringField(const FieldDef &field, std::string *code_ptr) { in GetStringField() argument
297 std::string &code = *code_ptr; in GetStringField()
311 void GetUnionField(const FieldDef &field, std::string *code_ptr) { in GetUnionField() argument
312 std::string &code = *code_ptr; in GetUnionField()
329 const FieldDef &field, std::string *code_ptr) { in GetMemberOfVectorOfStruct() argument
330 std::string &code = *code_ptr; in GetMemberOfVectorOfStruct()
389 std::string *code_ptr) { in GetMemberOfVectorOfNonStruct() argument
390 std::string &code = *code_ptr; in GetMemberOfVectorOfNonStruct()
421 void GetMemberOfVectorOfUnion(const FieldDef &field, std::string *code_ptr) { in GetMemberOfVectorOfUnion() argument
422 std::string &code = *code_ptr; in GetMemberOfVectorOfUnion()
444 const char *nameprefix, std::string *code_ptr) { in StructBuilderArgs() argument
454 (nameprefix + (field.name + "_")).c_str(), code_ptr); in StructBuilderArgs()
456 std::string &code = *code_ptr; in StructBuilderArgs()
466 const char *nameprefix, std::string *code_ptr) { in StructBuilderBody() argument
467 std::string &code = *code_ptr; in StructBuilderBody()
480 (nameprefix + (field.name + "_")).c_str(), code_ptr); in StructBuilderBody()
490 std::string *code_ptr) { in GetStartOfTable() argument
491 std::string &code = *code_ptr; in GetStartOfTable()
551 std::string *code_ptr) { in BuildFieldOfTable() argument
552 std::string &code = *code_ptr; in BuildFieldOfTable()
582 static void BuildVectorOfTable(const FieldDef &field, std::string *code_ptr) { in BuildVectorOfTable() argument
583 std::string &code = *code_ptr; in BuildVectorOfTable()
633 void GetEndOffsetOnTable(const StructDef &struct_def, std::string *code_ptr) { in GetEndOffsetOnTable() argument
634 std::string &code = *code_ptr; in GetEndOffsetOnTable()
674 std::string *code_ptr) { in GenStructAccessor() argument
675 GenComment(field.doc_comment, code_ptr, nullptr, Indent.c_str()); in GenStructAccessor()
679 GetScalarFieldOfStruct(field, code_ptr); in GenStructAccessor()
681 GetScalarFieldOfTable(field, code_ptr); in GenStructAccessor()
687 GetStructFieldOfStruct(field, code_ptr); in GenStructAccessor()
689 GetStructFieldOfTable(field, code_ptr); in GenStructAccessor()
692 case BASE_TYPE_STRING: GetStringField(field, code_ptr); break; in GenStructAccessor()
696 GetMemberOfVectorOfUnion(field, code_ptr); in GenStructAccessor()
698 GetMemberOfVectorOfStruct(struct_def, field, code_ptr); in GenStructAccessor()
700 GetMemberOfVectorOfNonStruct(field, code_ptr); in GenStructAccessor()
704 case BASE_TYPE_UNION: GetUnionField(field, code_ptr); break; in GenStructAccessor()
709 GetVectorLen(field, code_ptr); in GenStructAccessor()
711 GetUByte(field, code_ptr); in GenStructAccessor()
717 void GenTableBuilders(const StructDef &struct_def, std::string *code_ptr) { in GenTableBuilders() argument
718 GetStartOfTable(struct_def, code_ptr); in GenTableBuilders()
727 std::string &code = *code_ptr; in GenTableBuilders()
736 BuildFieldOfTable(field, offset, code_ptr); in GenTableBuilders()
738 if (IsVector(field.value.type)) { BuildVectorOfTable(field, code_ptr); } in GenTableBuilders()
741 GetEndOffsetOnTable(struct_def, code_ptr); in GenTableBuilders()
745 void GenStruct(const StructDef &struct_def, std::string *code_ptr) { in GenStruct() argument
748 GenComment(struct_def.doc_comment, code_ptr, nullptr); in GenStruct()
749 BeginClass(struct_def, code_ptr); in GenStruct()
754 NewRootTypeFromBuffer(struct_def, code_ptr); in GenStruct()
757 std::string &code = *code_ptr; in GenStruct()
791 InitializeExisting(struct_def, code_ptr); in GenStruct()
797 GenStructAccessor(struct_def, field, code_ptr); in GenStruct()
802 GenStructBuilder(struct_def, code_ptr); in GenStruct()
805 GenTableBuilders(struct_def, code_ptr); in GenStruct()
807 EndClass(code_ptr); in GenStruct()
811 static void GenEnum(const EnumDef &enum_def, std::string *code_ptr) { in GenEnum() argument
814 GenComment(enum_def.doc_comment, code_ptr, nullptr); in GenEnum()
815 BeginEnum(enum_def.name, code_ptr); in GenEnum()
818 GenComment(ev.doc_comment, code_ptr, nullptr, Indent.c_str()); in GenEnum()
819 EnumMember(enum_def, ev, code_ptr); in GenEnum()
822 std::string &code = *code_ptr; in GenEnum()
839 EndEnum(code_ptr); in GenEnum()
914 std::string *code_ptr) { in GenStructBuilder() argument
915 std::string &code = *code_ptr; in GenStructBuilder()
922 StructBuilderArgs(struct_def, "", code_ptr); in GenStructBuilder()
926 StructBuilderBody(struct_def, "", code_ptr); in GenStructBuilder()