Classes | Functions | Variables
grpc_cpp_generator Namespace Reference

Classes

struct  Parameters
 

Functions

template<class T , size_t N>
Tarray_end (T(&array)[N])
 
std::string ClassName (const grpc::protobuf::Descriptor *descriptor, bool qualified)
 
std::string DotsToColons (const std::string &name)
 
std::string DotsToUnderscores (const std::string &name)
 
template<typename DescriptorType >
std::string GetCppComments (const DescriptorType *desc, bool leading)
 
std::string GetHeaderEpilogue (grpc_generator::File *file, const Parameters &)
 
std::string GetHeaderIncludes (grpc_generator::File *file, const Parameters &params)
 
std::string GetHeaderPrologue (grpc_generator::File *file, const Parameters &params)
 
std::string GetHeaderServices (grpc_generator::File *file, const Parameters &params)
 
std::string GetMockEpilogue (grpc_generator::File *file, const Parameters &)
 
std::string GetMockIncludes (grpc_generator::File *file, const Parameters &params)
 
std::string GetMockPrologue (grpc_generator::File *file, const Parameters &params)
 
std::string GetMockServices (grpc_generator::File *file, const Parameters &params)
 
std::string GetSourceEpilogue (grpc_generator::File *file, const Parameters &)
 
std::string GetSourceIncludes (grpc_generator::File *file, const Parameters &params)
 
std::string GetSourcePrologue (grpc_generator::File *file, const Parameters &params)
 
std::string GetSourceServices (grpc_generator::File *file, const Parameters &params)
 
std::string ImportInludeFromProtoName (const std::string &proto_name)
 
void PrintHeaderClientMethod (grpc_generator::Printer *printer, const grpc_generator::Method *method, std::map< std::string, std::string > *vars, bool is_public)
 
void PrintHeaderClientMethodCallback (grpc_generator::Printer *printer, const grpc_generator::Method *method, std::map< std::string, std::string > *vars)
 
void PrintHeaderClientMethodCallbackEnd (grpc_generator::Printer *printer, std::map< std::string, std::string > *)
 
void PrintHeaderClientMethodCallbackInterfaces (grpc_generator::Printer *printer, const grpc_generator::Method *method, std::map< std::string, std::string > *vars)
 
void PrintHeaderClientMethodCallbackInterfacesEnd (grpc_generator::Printer *printer, std::map< std::string, std::string > *)
 
void PrintHeaderClientMethodCallbackInterfacesStart (grpc_generator::Printer *printer, std::map< std::string, std::string > *)
 
void PrintHeaderClientMethodCallbackStart (grpc_generator::Printer *printer, std::map< std::string, std::string > *)
 
void PrintHeaderClientMethodData (grpc_generator::Printer *printer, const grpc_generator::Method *method, std::map< std::string, std::string > *vars)
 
void PrintHeaderClientMethodInterfaces (grpc_generator::Printer *printer, const grpc_generator::Method *method, std::map< std::string, std::string > *vars, bool is_public)
 
void PrintHeaderServerAsyncMethodsHelper (grpc_generator::Printer *printer, const grpc_generator::Method *method, std::map< std::string, std::string > *vars)
 
void PrintHeaderServerCallbackMethodsHelper (grpc_generator::Printer *printer, const grpc_generator::Method *method, std::map< std::string, std::string > *vars)
 
void PrintHeaderServerMethodAsync (grpc_generator::Printer *printer, const grpc_generator::Method *method, std::map< std::string, std::string > *vars)
 
void PrintHeaderServerMethodCallback (grpc_generator::Printer *printer, const grpc_generator::Method *method, std::map< std::string, std::string > *vars)
 
void PrintHeaderServerMethodGeneric (grpc_generator::Printer *printer, const grpc_generator::Method *method, std::map< std::string, std::string > *vars)
 
void PrintHeaderServerMethodRaw (grpc_generator::Printer *printer, const grpc_generator::Method *method, std::map< std::string, std::string > *vars)
 
void PrintHeaderServerMethodRawCallback (grpc_generator::Printer *printer, const grpc_generator::Method *method, std::map< std::string, std::string > *vars)
 
void PrintHeaderServerMethodSplitStreaming (grpc_generator::Printer *printer, const grpc_generator::Method *method, std::map< std::string, std::string > *vars)
 
void PrintHeaderServerMethodStreamedUnary (grpc_generator::Printer *printer, const grpc_generator::Method *method, std::map< std::string, std::string > *vars)
 
void PrintHeaderServerMethodSync (grpc_generator::Printer *printer, const grpc_generator::Method *method, std::map< std::string, std::string > *vars)
 
void PrintHeaderService (grpc_generator::Printer *printer, const grpc_generator::Service *service, std::map< std::string, std::string > *vars)
 
void PrintIncludes (grpc_generator::Printer *printer, const std::vector< std::string > &headers, bool use_system_headers, const std::string &search_path)
 
void PrintMockClientMethods (grpc_generator::Printer *printer, const grpc_generator::Method *method, std::map< std::string, std::string > *vars)
 
void PrintMockService (grpc_generator::Printer *printer, const grpc_generator::Service *service, std::map< std::string, std::string > *vars)
 
void PrintSourceClientMethod (grpc_generator::Printer *printer, const grpc_generator::Method *method, std::map< std::string, std::string > *vars)
 
void PrintSourceServerMethod (grpc_generator::Printer *printer, const grpc_generator::Method *method, std::map< std::string, std::string > *vars)
 
void PrintSourceService (grpc_generator::Printer *printer, const grpc_generator::Service *service, std::map< std::string, std::string > *vars)
 

Variables

static const char *const kCppGeneratorMessageHeaderExt = ".pb.h"
 
static const char *const kCppGeneratorServiceHeaderExt = ".grpc.pb.h"
 

Function Documentation

◆ array_end()

template<class T , size_t N>
T* grpc_cpp_generator::array_end ( T(&)  array[N])

Definition at line 60 of file src/compiler/cpp_generator.cc.

◆ ClassName()

std::string grpc_cpp_generator::ClassName ( const grpc::protobuf::Descriptor descriptor,
bool  qualified 
)
inline

Definition at line 37 of file cpp_generator_helpers.h.

◆ DotsToColons()

std::string grpc_cpp_generator::DotsToColons ( const std::string &  name)
inline

Definition at line 29 of file cpp_generator_helpers.h.

◆ DotsToUnderscores()

std::string grpc_cpp_generator::DotsToUnderscores ( const std::string &  name)
inline

Definition at line 33 of file cpp_generator_helpers.h.

◆ GetCppComments()

template<typename DescriptorType >
std::string grpc_cpp_generator::GetCppComments ( const DescriptorType *  desc,
bool  leading 
)
inline

Definition at line 57 of file cpp_generator_helpers.h.

◆ GetHeaderEpilogue()

std::string grpc_cpp_generator::GetHeaderEpilogue ( grpc_generator::File file,
const Parameters  
)

Definition at line 1586 of file src/compiler/cpp_generator.cc.

◆ GetHeaderIncludes()

std::string grpc_cpp_generator::GetHeaderIncludes ( grpc_generator::File file,
const Parameters params 
)

Definition at line 126 of file src/compiler/cpp_generator.cc.

◆ GetHeaderPrologue()

std::string grpc_cpp_generator::GetHeaderPrologue ( grpc_generator::File file,
const Parameters params 
)

Definition at line 85 of file src/compiler/cpp_generator.cc.

◆ GetHeaderServices()

std::string grpc_cpp_generator::GetHeaderServices ( grpc_generator::File file,
const Parameters params 
)

Definition at line 1555 of file src/compiler/cpp_generator.cc.

◆ GetMockEpilogue()

std::string grpc_cpp_generator::GetMockEpilogue ( grpc_generator::File file,
const Parameters  
)

Definition at line 2351 of file src/compiler/cpp_generator.cc.

◆ GetMockIncludes()

std::string grpc_cpp_generator::GetMockIncludes ( grpc_generator::File file,
const Parameters params 
)

Definition at line 2178 of file src/compiler/cpp_generator.cc.

◆ GetMockPrologue()

std::string grpc_cpp_generator::GetMockPrologue ( grpc_generator::File file,
const Parameters params 
)

Definition at line 2141 of file src/compiler/cpp_generator.cc.

◆ GetMockServices()

std::string grpc_cpp_generator::GetMockServices ( grpc_generator::File file,
const Parameters params 
)

Definition at line 2320 of file src/compiler/cpp_generator.cc.

◆ GetSourceEpilogue()

std::string grpc_cpp_generator::GetSourceEpilogue ( grpc_generator::File file,
const Parameters  
)

Definition at line 2122 of file src/compiler/cpp_generator.cc.

◆ GetSourceIncludes()

std::string grpc_cpp_generator::GetSourceIncludes ( grpc_generator::File file,
const Parameters params 
)

Definition at line 1642 of file src/compiler/cpp_generator.cc.

◆ GetSourcePrologue()

std::string grpc_cpp_generator::GetSourcePrologue ( grpc_generator::File file,
const Parameters params 
)

Definition at line 1615 of file src/compiler/cpp_generator.cc.

◆ GetSourceServices()

std::string grpc_cpp_generator::GetSourceServices ( grpc_generator::File file,
const Parameters params 
)

Definition at line 2093 of file src/compiler/cpp_generator.cc.

◆ ImportInludeFromProtoName()

std::string grpc_cpp_generator::ImportInludeFromProtoName ( const std::string &  proto_name)

Definition at line 120 of file src/compiler/cpp_generator.cc.

◆ PrintHeaderClientMethod()

void grpc_cpp_generator::PrintHeaderClientMethod ( grpc_generator::Printer printer,
const grpc_generator::Method method,
std::map< std::string, std::string > *  vars,
bool  is_public 
)

Definition at line 388 of file src/compiler/cpp_generator.cc.

◆ PrintHeaderClientMethodCallback()

void grpc_cpp_generator::PrintHeaderClientMethodCallback ( grpc_generator::Printer printer,
const grpc_generator::Method method,
std::map< std::string, std::string > *  vars 
)

Definition at line 659 of file src/compiler/cpp_generator.cc.

◆ PrintHeaderClientMethodCallbackEnd()

void grpc_cpp_generator::PrintHeaderClientMethodCallbackEnd ( grpc_generator::Printer printer,
std::map< std::string, std::string > *   
)

Definition at line 696 of file src/compiler/cpp_generator.cc.

◆ PrintHeaderClientMethodCallbackInterfaces()

void grpc_cpp_generator::PrintHeaderClientMethodCallbackInterfaces ( grpc_generator::Printer printer,
const grpc_generator::Method method,
std::map< std::string, std::string > *  vars 
)

Definition at line 590 of file src/compiler/cpp_generator.cc.

◆ PrintHeaderClientMethodCallbackInterfacesEnd()

void grpc_cpp_generator::PrintHeaderClientMethodCallbackInterfacesEnd ( grpc_generator::Printer printer,
std::map< std::string, std::string > *   
)

Definition at line 626 of file src/compiler/cpp_generator.cc.

◆ PrintHeaderClientMethodCallbackInterfacesStart()

void grpc_cpp_generator::PrintHeaderClientMethodCallbackInterfacesStart ( grpc_generator::Printer printer,
std::map< std::string, std::string > *   
)

Definition at line 575 of file src/compiler/cpp_generator.cc.

◆ PrintHeaderClientMethodCallbackStart()

void grpc_cpp_generator::PrintHeaderClientMethodCallbackStart ( grpc_generator::Printer printer,
std::map< std::string, std::string > *   
)

Definition at line 649 of file src/compiler/cpp_generator.cc.

◆ PrintHeaderClientMethodData()

void grpc_cpp_generator::PrintHeaderClientMethodData ( grpc_generator::Printer printer,
const grpc_generator::Method method,
std::map< std::string, std::string > *  vars 
)

Definition at line 716 of file src/compiler/cpp_generator.cc.

◆ PrintHeaderClientMethodInterfaces()

void grpc_cpp_generator::PrintHeaderClientMethodInterfaces ( grpc_generator::Printer printer,
const grpc_generator::Method method,
std::map< std::string, std::string > *  vars,
bool  is_public 
)

Definition at line 189 of file src/compiler/cpp_generator.cc.

◆ PrintHeaderServerAsyncMethodsHelper()

void grpc_cpp_generator::PrintHeaderServerAsyncMethodsHelper ( grpc_generator::Printer printer,
const grpc_generator::Method method,
std::map< std::string, std::string > *  vars 
)

Definition at line 761 of file src/compiler/cpp_generator.cc.

◆ PrintHeaderServerCallbackMethodsHelper()

void grpc_cpp_generator::PrintHeaderServerCallbackMethodsHelper ( grpc_generator::Printer printer,
const grpc_generator::Method method,
std::map< std::string, std::string > *  vars 
)

Definition at line 891 of file src/compiler/cpp_generator.cc.

◆ PrintHeaderServerMethodAsync()

void grpc_cpp_generator::PrintHeaderServerMethodAsync ( grpc_generator::Printer printer,
const grpc_generator::Method method,
std::map< std::string, std::string > *  vars 
)

Definition at line 856 of file src/compiler/cpp_generator.cc.

◆ PrintHeaderServerMethodCallback()

void grpc_cpp_generator::PrintHeaderServerMethodCallback ( grpc_generator::Printer printer,
const grpc_generator::Method method,
std::map< std::string, std::string > *  vars 
)

Definition at line 964 of file src/compiler/cpp_generator.cc.

◆ PrintHeaderServerMethodGeneric()

void grpc_cpp_generator::PrintHeaderServerMethodGeneric ( grpc_generator::Printer printer,
const grpc_generator::Method method,
std::map< std::string, std::string > *  vars 
)

Definition at line 1227 of file src/compiler/cpp_generator.cc.

◆ PrintHeaderServerMethodRaw()

void grpc_cpp_generator::PrintHeaderServerMethodRaw ( grpc_generator::Printer printer,
const grpc_generator::Method method,
std::map< std::string, std::string > *  vars 
)

Definition at line 1298 of file src/compiler/cpp_generator.cc.

◆ PrintHeaderServerMethodRawCallback()

void grpc_cpp_generator::PrintHeaderServerMethodRawCallback ( grpc_generator::Printer printer,
const grpc_generator::Method method,
std::map< std::string, std::string > *  vars 
)

Definition at line 1046 of file src/compiler/cpp_generator.cc.

◆ PrintHeaderServerMethodSplitStreaming()

void grpc_cpp_generator::PrintHeaderServerMethodSplitStreaming ( grpc_generator::Printer printer,
const grpc_generator::Method method,
std::map< std::string, std::string > *  vars 
)

Definition at line 1172 of file src/compiler/cpp_generator.cc.

◆ PrintHeaderServerMethodStreamedUnary()

void grpc_cpp_generator::PrintHeaderServerMethodStreamedUnary ( grpc_generator::Printer printer,
const grpc_generator::Method method,
std::map< std::string, std::string > *  vars 
)

Definition at line 1118 of file src/compiler/cpp_generator.cc.

◆ PrintHeaderServerMethodSync()

void grpc_cpp_generator::PrintHeaderServerMethodSync ( grpc_generator::Printer printer,
const grpc_generator::Method method,
std::map< std::string, std::string > *  vars 
)

Definition at line 724 of file src/compiler/cpp_generator.cc.

◆ PrintHeaderService()

void grpc_cpp_generator::PrintHeaderService ( grpc_generator::Printer printer,
const grpc_generator::Service service,
std::map< std::string, std::string > *  vars 
)

Definition at line 1329 of file src/compiler/cpp_generator.cc.

◆ PrintIncludes()

void grpc_cpp_generator::PrintIncludes ( grpc_generator::Printer printer,
const std::vector< std::string > &  headers,
bool  use_system_headers,
const std::string &  search_path 
)

Definition at line 64 of file src/compiler/cpp_generator.cc.

◆ PrintMockClientMethods()

void grpc_cpp_generator::PrintMockClientMethods ( grpc_generator::Printer printer,
const grpc_generator::Method method,
std::map< std::string, std::string > *  vars 
)

Definition at line 2220 of file src/compiler/cpp_generator.cc.

◆ PrintMockService()

void grpc_cpp_generator::PrintMockService ( grpc_generator::Printer printer,
const grpc_generator::Service service,
std::map< std::string, std::string > *  vars 
)

Definition at line 2304 of file src/compiler/cpp_generator.cc.

◆ PrintSourceClientMethod()

void grpc_cpp_generator::PrintSourceClientMethod ( grpc_generator::Printer printer,
const grpc_generator::Method method,
std::map< std::string, std::string > *  vars 
)

Definition at line 1682 of file src/compiler/cpp_generator.cc.

◆ PrintSourceServerMethod()

void grpc_cpp_generator::PrintSourceServerMethod ( grpc_generator::Printer printer,
const grpc_generator::Method method,
std::map< std::string, std::string > *  vars 
)

Definition at line 1895 of file src/compiler/cpp_generator.cc.

◆ PrintSourceService()

void grpc_cpp_generator::PrintSourceService ( grpc_generator::Printer printer,
const grpc_generator::Service service,
std::map< std::string, std::string > *  vars 
)

Definition at line 1954 of file src/compiler/cpp_generator.cc.

Variable Documentation

◆ kCppGeneratorMessageHeaderExt

const char* const grpc_cpp_generator::kCppGeneratorMessageHeaderExt = ".pb.h"
static

Definition at line 63 of file src/compiler/config.h.

◆ kCppGeneratorServiceHeaderExt

const char* const grpc_cpp_generator::kCppGeneratorServiceHeaderExt = ".grpc.pb.h"
static

Definition at line 64 of file src/compiler/config.h.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:39