Classes | Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
google::protobuf::compiler::cpp::Formatter Class Reference

#include <cpp_helpers.h>

Classes

class  SaveState
 
class  ScopedIndenter
 

Public Member Functions

void AddMap (const std::map< std::string, std::string > &vars)
 
void AddMap (const std::map< std::string, std::string > &vars)
 
 Formatter (io::Printer *printer)
 
 Formatter (io::Printer *printer)
 
 Formatter (io::Printer *printer, const std::map< std::string, std::string > &vars)
 
 Formatter (io::Printer *printer, const std::map< std::string, std::string > &vars)
 
void Indent () const
 
void Indent () const
 
template<typename... Args>
void operator() (const char *format, const Args &... args) const
 
template<typename... Args>
void operator() (const char *format, const Args &... args) const
 
void Outdent () const
 
void Outdent () const
 
io::Printerprinter () const
 
io::Printerprinter () const
 
PROTOBUF_NODISCARD ScopedIndenter ScopedIndent ()
 
template<typename... Args>
PROTOBUF_NODISCARD ScopedIndenter ScopedIndent (const char *format, const Args &&... args)
 
template<typename T >
void Set (const std::string &key, const T &value)
 
template<typename T >
void Set (const std::string &key, const T &value)
 

Static Private Member Functions

template<typename Descriptor >
static std::string Payload (const Descriptor *descriptor)
 
template<typename Descriptor >
static std::string Payload (const Descriptor *descriptor)
 
static std::string ToString (const Descriptor *d)
 
static std::string ToString (const Descriptor *d)
 
static std::string ToString (const EnumDescriptor *d)
 
static std::string ToString (const EnumDescriptor *d)
 
static std::string ToString (const EnumValueDescriptor *d)
 
static std::string ToString (const EnumValueDescriptor *d)
 
static std::string ToString (const FieldDescriptor *d)
 
static std::string ToString (const FieldDescriptor *d)
 
static std::string ToString (const OneofDescriptor *d)
 
static std::string ToString (const OneofDescriptor *d)
 
static std::string ToString (const std::string &s)
 
static std::string ToString (const std::string &s)
 
template<typename I , typename = typename std::enable_if< std::is_integral<I>::value>::type>
static std::string ToString (I x)
 
template<typename I , typename = typename std::enable_if< std::is_integral<I>::value>::type>
static std::string ToString (I x)
 
static std::string ToString (strings::Hex x)
 
static std::string ToString (strings::Hex x)
 

Private Attributes

io::Printerprinter_
 
std::map< std::string, std::string > vars_
 

Detailed Description

Definition at line 637 of file bloaty/third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_helpers.h.

Constructor & Destructor Documentation

◆ Formatter() [1/4]

google::protobuf::compiler::cpp::Formatter::Formatter ( io::Printer printer)
inlineexplicit

◆ Formatter() [2/4]

google::protobuf::compiler::cpp::Formatter::Formatter ( io::Printer printer,
const std::map< std::string, std::string > &  vars 
)
inline

◆ Formatter() [3/4]

google::protobuf::compiler::cpp::Formatter::Formatter ( io::Printer printer)
inlineexplicit

◆ Formatter() [4/4]

google::protobuf::compiler::cpp::Formatter::Formatter ( io::Printer printer,
const std::map< std::string, std::string > &  vars 
)
inline

Member Function Documentation

◆ AddMap() [1/2]

void google::protobuf::compiler::cpp::Formatter::AddMap ( const std::map< std::string, std::string > &  vars)
inline

◆ AddMap() [2/2]

void google::protobuf::compiler::cpp::Formatter::AddMap ( const std::map< std::string, std::string > &  vars)
inline

◆ Indent() [1/2]

void google::protobuf::compiler::cpp::Formatter::Indent ( ) const
inline

◆ Indent() [2/2]

void google::protobuf::compiler::cpp::Formatter::Indent ( ) const
inline

◆ operator()() [1/2]

template<typename... Args>
void google::protobuf::compiler::cpp::Formatter::operator() ( const char *  format,
const Args &...  args 
) const
inline

◆ operator()() [2/2]

template<typename... Args>
void google::protobuf::compiler::cpp::Formatter::operator() ( const char *  format,
const Args &...  args 
) const
inline

◆ Outdent() [1/2]

void google::protobuf::compiler::cpp::Formatter::Outdent ( ) const
inline

◆ Outdent() [2/2]

void google::protobuf::compiler::cpp::Formatter::Outdent ( ) const
inline

◆ Payload() [1/2]

template<typename Descriptor >
static std::string google::protobuf::compiler::cpp::Formatter::Payload ( const Descriptor descriptor)
inlinestaticprivate

◆ Payload() [2/2]

template<typename Descriptor >
static std::string google::protobuf::compiler::cpp::Formatter::Payload ( const Descriptor descriptor)
inlinestaticprivate

◆ printer() [1/2]

io::Printer* google::protobuf::compiler::cpp::Formatter::printer ( ) const
inline

◆ printer() [2/2]

io::Printer* google::protobuf::compiler::cpp::Formatter::printer ( ) const
inline

◆ ScopedIndent() [1/2]

PROTOBUF_NODISCARD ScopedIndenter google::protobuf::compiler::cpp::Formatter::ScopedIndent ( )
inline

◆ ScopedIndent() [2/2]

template<typename... Args>
PROTOBUF_NODISCARD ScopedIndenter google::protobuf::compiler::cpp::Formatter::ScopedIndent ( const char *  format,
const Args &&...  args 
)
inline

◆ Set() [1/2]

template<typename T >
void google::protobuf::compiler::cpp::Formatter::Set ( const std::string &  key,
const T value 
)
inline

◆ Set() [2/2]

template<typename T >
void google::protobuf::compiler::cpp::Formatter::Set ( const std::string &  key,
const T value 
)
inline

◆ ToString() [1/16]

static std::string google::protobuf::compiler::cpp::Formatter::ToString ( const Descriptor d)
inlinestaticprivate

◆ ToString() [2/16]

static std::string google::protobuf::compiler::cpp::Formatter::ToString ( const Descriptor d)
inlinestaticprivate

◆ ToString() [3/16]

static std::string google::protobuf::compiler::cpp::Formatter::ToString ( const EnumDescriptor d)
inlinestaticprivate

◆ ToString() [4/16]

static std::string google::protobuf::compiler::cpp::Formatter::ToString ( const EnumDescriptor d)
inlinestaticprivate

◆ ToString() [5/16]

static std::string google::protobuf::compiler::cpp::Formatter::ToString ( const EnumValueDescriptor d)
inlinestaticprivate

◆ ToString() [6/16]

static std::string google::protobuf::compiler::cpp::Formatter::ToString ( const EnumValueDescriptor d)
inlinestaticprivate

◆ ToString() [7/16]

static std::string google::protobuf::compiler::cpp::Formatter::ToString ( const FieldDescriptor d)
inlinestaticprivate

◆ ToString() [8/16]

static std::string google::protobuf::compiler::cpp::Formatter::ToString ( const FieldDescriptor d)
inlinestaticprivate

◆ ToString() [9/16]

static std::string google::protobuf::compiler::cpp::Formatter::ToString ( const OneofDescriptor d)
inlinestaticprivate

◆ ToString() [10/16]

static std::string google::protobuf::compiler::cpp::Formatter::ToString ( const OneofDescriptor d)
inlinestaticprivate

◆ ToString() [11/16]

static std::string google::protobuf::compiler::cpp::Formatter::ToString ( const std::string &  s)
inlinestaticprivate

◆ ToString() [12/16]

static std::string google::protobuf::compiler::cpp::Formatter::ToString ( const std::string &  s)
inlinestaticprivate

◆ ToString() [13/16]

template<typename I , typename = typename std::enable_if< std::is_integral<I>::value>::type>
static std::string google::protobuf::compiler::cpp::Formatter::ToString ( I  x)
inlinestaticprivate

◆ ToString() [14/16]

template<typename I , typename = typename std::enable_if< std::is_integral<I>::value>::type>
static std::string google::protobuf::compiler::cpp::Formatter::ToString ( I  x)
inlinestaticprivate

◆ ToString() [15/16]

static std::string google::protobuf::compiler::cpp::Formatter::ToString ( strings::Hex  x)
inlinestaticprivate

◆ ToString() [16/16]

static std::string google::protobuf::compiler::cpp::Formatter::ToString ( strings::Hex  x)
inlinestaticprivate

Member Data Documentation

◆ printer_

io::Printer * google::protobuf::compiler::cpp::Formatter::printer_
private

◆ vars_

std::map< std::string, std::string > google::protobuf::compiler::cpp::Formatter::vars_
private

The documentation for this class was generated from the following file:


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