• Home
  • Raw
  • Download

Lines Matching refs:code_ptr

63   void BeginClass(const StructDef &struct_def, std::string *code_ptr) {  in BeginClass()  argument
64 std::string &code = *code_ptr; in BeginClass()
72 void BeginEnum(const std::string &class_name, std::string *code_ptr) { in BeginEnum() argument
73 std::string &code = *code_ptr; in BeginEnum()
95 std::string *code_ptr) { in EnumMember() argument
96 std::string &code = *code_ptr; in EnumMember()
102 void EndEnum(std::string *code_ptr) { in EndEnum() argument
103 std::string &code = *code_ptr; in EndEnum()
108 std::string *code_ptr) { in GenerateNewObjectPrototype() argument
109 std::string &code = *code_ptr; in GenerateNewObjectPrototype()
122 std::string *code_ptr) { in NewRootTypeFromBuffer() argument
123 std::string &code = *code_ptr; in NewRootTypeFromBuffer()
141 void InitializeExisting(const StructDef &struct_def, std::string *code_ptr) { in InitializeExisting() argument
142 std::string &code = *code_ptr; in InitializeExisting()
144 GenReceiver(struct_def, code_ptr); in InitializeExisting()
153 std::string *code_ptr) { in GetVectorLen() argument
154 std::string &code = *code_ptr; in GetVectorLen()
156 GenReceiver(struct_def, code_ptr); in GetVectorLen()
168 const FieldDef &field, std::string *code_ptr) { in GetScalarFieldOfStruct() argument
169 std::string &code = *code_ptr; in GetScalarFieldOfStruct()
171 GenReceiver(struct_def, code_ptr); in GetScalarFieldOfStruct()
182 std::string *code_ptr) { in GetScalarFieldOfTable() argument
183 std::string &code = *code_ptr; in GetScalarFieldOfTable()
185 GenReceiver(struct_def, code_ptr); in GetScalarFieldOfTable()
207 const FieldDef &field, std::string *code_ptr) { in GetStructFieldOfStruct() argument
208 std::string &code = *code_ptr; in GetStructFieldOfStruct()
209 GenReceiver(struct_def, code_ptr); in GetStructFieldOfStruct()
222 std::string *code_ptr) { in GetStructFieldOfTable() argument
223 std::string &code = *code_ptr; in GetStructFieldOfTable()
224 GenReceiver(struct_def, code_ptr); in GetStructFieldOfTable()
246 std::string *code_ptr) { in GetStringField() argument
247 std::string &code = *code_ptr; in GetStringField()
248 GenReceiver(struct_def, code_ptr); in GetStringField()
261 std::string *code_ptr) { in GetUnionField() argument
262 std::string &code = *code_ptr; in GetUnionField()
263 GenReceiver(struct_def, code_ptr); in GetUnionField()
290 const FieldDef &field, std::string *code_ptr) { in GetMemberOfVectorOfStruct() argument
291 std::string &code = *code_ptr; in GetMemberOfVectorOfStruct()
294 GenReceiver(struct_def, code_ptr); in GetMemberOfVectorOfStruct()
319 std::string *code_ptr) { in GetMemberOfVectorOfNonStruct() argument
320 std::string &code = *code_ptr; in GetMemberOfVectorOfNonStruct()
323 GenReceiver(struct_def, code_ptr); in GetMemberOfVectorOfNonStruct()
344 const FieldDef &field, std::string *code_ptr) { in AccessByteVectorAsString() argument
345 std::string &code = *code_ptr; in AccessByteVectorAsString()
346 GenReceiver(struct_def, code_ptr); in AccessByteVectorAsString()
355 void BeginBuilderArgs(const StructDef &struct_def, std::string *code_ptr) { in BeginBuilderArgs() argument
356 std::string &code = *code_ptr; in BeginBuilderArgs()
366 std::string *code_ptr) { in StructBuilderArgs() argument
376 code_ptr); in StructBuilderArgs()
378 std::string &code = *code_ptr; in StructBuilderArgs()
386 void EndBuilderArgs(std::string *code_ptr) { in EndBuilderArgs() argument
387 std::string &code = *code_ptr; in EndBuilderArgs()
394 std::string *code_ptr) { in StructBuilderBody() argument
395 std::string &code = *code_ptr; in StructBuilderBody()
408 code_ptr); in StructBuilderBody()
417 void EndBuilderBody(std::string *code_ptr) { in EndBuilderBody() argument
418 std::string &code = *code_ptr; in EndBuilderBody()
424 void GetStartOfTable(const StructDef &struct_def, std::string *code_ptr) { in GetStartOfTable() argument
425 std::string &code = *code_ptr; in GetStartOfTable()
435 const size_t offset, std::string *code_ptr) { in BuildFieldOfTable() argument
436 std::string &code = *code_ptr; in BuildFieldOfTable()
459 std::string *code_ptr) { in BuildVectorOfTable() argument
460 std::string &code = *code_ptr; in BuildVectorOfTable()
473 void GetEndOffsetOnTable(const StructDef &struct_def, std::string *code_ptr) { in GetEndOffsetOnTable() argument
474 std::string &code = *code_ptr; in GetEndOffsetOnTable()
481 void GenReceiver(const StructDef &struct_def, std::string *code_ptr) { in GenReceiver() argument
482 std::string &code = *code_ptr; in GenReceiver()
488 std::string *code_ptr) { in GenStructAccessor() argument
489 GenComment(field.doc_comment, code_ptr, &def_comment); in GenStructAccessor()
492 GetScalarFieldOfStruct(struct_def, field, code_ptr); in GenStructAccessor()
494 GetScalarFieldOfTable(struct_def, field, code_ptr); in GenStructAccessor()
500 GetStructFieldOfStruct(struct_def, field, code_ptr); in GenStructAccessor()
502 GetStructFieldOfTable(struct_def, field, code_ptr); in GenStructAccessor()
506 GetStringField(struct_def, field, code_ptr); in GenStructAccessor()
511 GetMemberOfVectorOfStruct(struct_def, field, code_ptr); in GenStructAccessor()
513 GetMemberOfVectorOfNonStruct(struct_def, field, code_ptr); in GenStructAccessor()
516 AccessByteVectorAsString(struct_def, field, code_ptr); in GenStructAccessor()
521 case BASE_TYPE_UNION: GetUnionField(struct_def, field, code_ptr); break; in GenStructAccessor()
526 GetVectorLen(struct_def, field, code_ptr); in GenStructAccessor()
531 void GenTableBuilders(const StructDef &struct_def, std::string *code_ptr) { in GenTableBuilders() argument
532 GetStartOfTable(struct_def, code_ptr); in GenTableBuilders()
540 BuildFieldOfTable(struct_def, field, offset, code_ptr); in GenTableBuilders()
542 BuildVectorOfTable(struct_def, field, code_ptr); in GenTableBuilders()
546 GetEndOffsetOnTable(struct_def, code_ptr); in GenTableBuilders()
550 void GenStruct(const StructDef &struct_def, std::string *code_ptr) { in GenStruct() argument
553 GenComment(struct_def.doc_comment, code_ptr, &def_comment); in GenStruct()
554 BeginClass(struct_def, code_ptr); in GenStruct()
556 GenerateNewObjectPrototype(struct_def, code_ptr); in GenStruct()
561 NewRootTypeFromBuffer(struct_def, code_ptr); in GenStruct()
566 InitializeExisting(struct_def, code_ptr); in GenStruct()
572 GenStructAccessor(struct_def, field, code_ptr); in GenStruct()
577 GenStructBuilder(struct_def, code_ptr); in GenStruct()
580 GenTableBuilders(struct_def, code_ptr); in GenStruct()
585 void GenEnum(const EnumDef &enum_def, std::string *code_ptr) { in GenEnum() argument
588 GenComment(enum_def.doc_comment, code_ptr, &def_comment); in GenEnum()
589 BeginEnum(NormalizedName(enum_def), code_ptr); in GenEnum()
592 GenComment(ev.doc_comment, code_ptr, &def_comment, Indent); in GenEnum()
593 EnumMember(enum_def, ev, code_ptr); in GenEnum()
595 EndEnum(code_ptr); in GenEnum()
659 void GenStructBuilder(const StructDef &struct_def, std::string *code_ptr) { in GenStructBuilder() argument
660 BeginBuilderArgs(struct_def, code_ptr); in GenStructBuilder()
661 StructBuilderArgs(struct_def, "", code_ptr); in GenStructBuilder()
662 EndBuilderArgs(code_ptr); in GenStructBuilder()
664 StructBuilderBody(struct_def, "", code_ptr); in GenStructBuilder()
665 EndBuilderBody(code_ptr); in GenStructBuilder()
699 std::string *code_ptr) { in BeginFile() argument
700 std::string &code = *code_ptr; in BeginFile()