Documentation ¶
Index ¶
- func GenGetArguments(keys []MapKey) string
- func GenGetParams(keys []MapKey) string
- func GenerateCommonHeader(gen *protogen.Plugin, g *protogen.GeneratedFile, version string)
- func GenerateFileHeader(gen *protogen.Plugin, file *protogen.File, g *protogen.GeneratedFile, ...)
- func ParseCppClassType(md protoreflect.MessageDescriptor) string
- func ParseCppType(fd protoreflect.FieldDescriptor) string
- func ParseIndexFieldName(fd protoreflect.FieldDescriptor) string
- func ParseIndexFieldNameAsFuncParam(fd protoreflect.FieldDescriptor) string
- func ParseIndexFieldNameAsKeyStructFieldName(fd protoreflect.FieldDescriptor) string
- func ToConstRefType(cpptype string) string
- type MapKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenGetArguments ¶
GenGetArguments generates function arguments, which are the real values passed to the function.
func GenGetParams ¶
GenGetParams generates function parameters, which are the names listed in the function's definition.
func GenerateCommonHeader ¶
func GenerateCommonHeader(gen *protogen.Plugin, g *protogen.GeneratedFile, version string)
func GenerateFileHeader ¶
func ParseCppClassType ¶
func ParseCppClassType(md protoreflect.MessageDescriptor) string
func ParseCppType ¶
func ParseCppType(fd protoreflect.FieldDescriptor) string
ParseCppType converts a FieldDescriptor to C++ type string.
func ParseIndexFieldName ¶
func ParseIndexFieldName(fd protoreflect.FieldDescriptor) string
func ParseIndexFieldNameAsFuncParam ¶
func ParseIndexFieldNameAsFuncParam(fd protoreflect.FieldDescriptor) string
func ParseIndexFieldNameAsKeyStructFieldName ¶
func ParseIndexFieldNameAsKeyStructFieldName(fd protoreflect.FieldDescriptor) string
func ToConstRefType ¶
Types ¶
type MapKey ¶
func AddMapKey ¶
func AddMapKey(fd protoreflect.FieldDescriptor, keys []MapKey) []MapKey
Click to show internal directories.
Click to hide internal directories.