Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
google::protobuf::io::Printer Class Reference

#include <printer.h>

Classes

class  TextGenerator
 

Public Member Functions

template<typename SomeDescriptor >
void Annotate (const char *begin_varname, const char *end_varname, const SomeDescriptor *descriptor)
 
template<typename SomeDescriptor >
void Annotate (const char *begin_varname, const char *end_varname, const SomeDescriptor *descriptor)
 
void Annotate (const char *begin_varname, const char *end_varname, const std::string &file_name)
 
void Annotate (const char *begin_varname, const char *end_varname, const std::string &file_name)
 
template<typename SomeDescriptor >
void Annotate (const char *varname, const SomeDescriptor *descriptor)
 
template<typename SomeDescriptor >
void Annotate (const char *varname, const SomeDescriptor *descriptor)
 
void Annotate (const char *varname, const std::string &file_name)
 
void Annotate (const char *varname, const std::string &file_name)
 
bool failed () const
 
bool failed () const
 
void FormatInternal (const std::vector< std::string > &args, const std::map< std::string, std::string > &vars, const char *format)
 
void FormatInternal (const std::vector< std::string > &args, const std::map< std::string, std::string > &vars, const char *format)
 
void Indent ()
 
void Indent ()
 
void Outdent ()
 
void Outdent ()
 
template<typename... Args>
void Print (const char *text, const Args &... args)
 
template<typename... Args>
void Print (const char *text, const Args &... args)
 
void Print (const std::map< std::string, std::string > &variables, const char *text)
 
void Print (const std::map< std::string, std::string > &variables, const char *text)
 
 Printer (ZeroCopyOutputStream *output, char variable_delimiter)
 
 Printer (ZeroCopyOutputStream *output, char variable_delimiter)
 
 Printer (ZeroCopyOutputStream *output, char variable_delimiter, AnnotationCollector *annotation_collector)
 
 Printer (ZeroCopyOutputStream *output, char variable_delimiter, AnnotationCollector *annotation_collector)
 
void PrintRaw (const char *data)
 
void PrintRaw (const char *data)
 
void PrintRaw (const std::string &data)
 
void PrintRaw (const std::string &data)
 
void WriteRaw (const char *data, int size)
 
void WriteRaw (const char *data, int size)
 
 ~Printer ()
 
 ~Printer ()
 

Private Member Functions

void Annotate (const char *begin_varname, const char *end_varname, const std::string &file_path, const std::vector< int > &path)
 
void Annotate (const char *begin_varname, const char *end_varname, const std::string &file_path, const std::vector< int > &path)
 
void CopyToBuffer (const char *data, int size)
 
void CopyToBuffer (const char *data, int size)
 
bool GetSubstitutionRange (const char *varname, std::pair< size_t, size_t > *range)
 
bool GetSubstitutionRange (const char *varname, std::pair< size_t, size_t > *range)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (Printer)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (Printer)
 
void IndentIfAtStart ()
 
void IndentIfAtStart ()
 
bool Next ()
 
bool Next ()
 
void PrintInternal (std::map< std::string, std::string > *vars, const char *text)
 
void PrintInternal (std::map< std::string, std::string > *vars, const char *text)
 
template<typename... Args>
void PrintInternal (std::map< std::string, std::string > *vars, const char *text, const char *key, const std::string &value, const Args &... args)
 
template<typename... Args>
void PrintInternal (std::map< std::string, std::string > *vars, const char *text, const char *key, const std::string &value, const Args &... args)
 
void push_back (char c)
 
void push_back (char c)
 
const char * WriteVariable (const std::vector< std::string > &args, const std::map< std::string, std::string > &vars, const char *format, int *arg_index, std::vector< AnnotationCollector::Annotation > *annotations)
 
const char * WriteVariable (const std::vector< std::string > &args, const std::map< std::string, std::string > &vars, const char *format, int *arg_index, std::vector< AnnotationCollector::Annotation > *annotations)
 

Private Attributes

AnnotationCollector *const annotation_collector_
 
bool at_start_of_line_
 
char * buffer_
 
int buffer_size_
 
bool failed_
 
std::string indent_
 
std::vector< std::string > line_start_variables_
 
size_t offset_
 
ZeroCopyOutputStream *const output_
 
std::map< std::string, std::pair< size_t, size_t > > substitutions_
 
const char variable_delimiter_
 

Detailed Description

Definition at line 181 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.h.

Constructor & Destructor Documentation

◆ Printer() [1/4]

google::protobuf::io::Printer::Printer ( ZeroCopyOutputStream output,
char  variable_delimiter 
)

◆ Printer() [2/4]

google::protobuf::io::Printer::Printer ( ZeroCopyOutputStream output,
char  variable_delimiter,
AnnotationCollector annotation_collector 
)

◆ ~Printer() [1/2]

google::protobuf::io::Printer::~Printer ( )

◆ Printer() [3/4]

google::protobuf::io::Printer::Printer ( ZeroCopyOutputStream output,
char  variable_delimiter 
)

◆ Printer() [4/4]

google::protobuf::io::Printer::Printer ( ZeroCopyOutputStream output,
char  variable_delimiter,
AnnotationCollector annotation_collector 
)

◆ ~Printer() [2/2]

google::protobuf::io::Printer::~Printer ( )

Member Function Documentation

◆ Annotate() [1/10]

template<typename SomeDescriptor >
void google::protobuf::io::Printer::Annotate ( const char *  begin_varname,
const char *  end_varname,
const SomeDescriptor *  descriptor 
)
inline

◆ Annotate() [2/10]

template<typename SomeDescriptor >
void google::protobuf::io::Printer::Annotate ( const char *  begin_varname,
const char *  end_varname,
const SomeDescriptor *  descriptor 
)
inline

Definition at line 209 of file protobuf/src/google/protobuf/io/printer.h.

◆ Annotate() [3/10]

void google::protobuf::io::Printer::Annotate ( const char *  begin_varname,
const char *  end_varname,
const std::string &  file_name 
)
inline

◆ Annotate() [4/10]

void google::protobuf::io::Printer::Annotate ( const char *  begin_varname,
const char *  end_varname,
const std::string &  file_name 
)
inline

Definition at line 231 of file protobuf/src/google/protobuf/io/printer.h.

◆ Annotate() [5/10]

void google::protobuf::io::Printer::Annotate ( const char *  begin_varname,
const char *  end_varname,
const std::string &  file_path,
const std::vector< int > &  path 
)
private

◆ Annotate() [6/10]

void google::protobuf::io::Printer::Annotate ( const char *  begin_varname,
const char *  end_varname,
const std::string &  file_path,
const std::vector< int > &  path 
)
private

◆ Annotate() [7/10]

template<typename SomeDescriptor >
void google::protobuf::io::Printer::Annotate ( const char *  varname,
const SomeDescriptor *  descriptor 
)
inline

◆ Annotate() [8/10]

template<typename SomeDescriptor >
void google::protobuf::io::Printer::Annotate ( const char *  varname,
const SomeDescriptor *  descriptor 
)
inline

Definition at line 200 of file protobuf/src/google/protobuf/io/printer.h.

◆ Annotate() [9/10]

void google::protobuf::io::Printer::Annotate ( const char *  varname,
const std::string &  file_name 
)
inline

◆ Annotate() [10/10]

void google::protobuf::io::Printer::Annotate ( const char *  varname,
const std::string &  file_name 
)
inline

Definition at line 223 of file protobuf/src/google/protobuf/io/printer.h.

◆ CopyToBuffer() [1/2]

void google::protobuf::io::Printer::CopyToBuffer ( const char *  data,
int  size 
)
private

◆ CopyToBuffer() [2/2]

void google::protobuf::io::Printer::CopyToBuffer ( const char *  data,
int  size 
)
private

◆ failed() [1/2]

bool google::protobuf::io::Printer::failed ( ) const
inline

◆ failed() [2/2]

bool google::protobuf::io::Printer::failed ( ) const
inline

Definition at line 289 of file protobuf/src/google/protobuf/io/printer.h.

◆ FormatInternal() [1/2]

void google::protobuf::io::Printer::FormatInternal ( const std::vector< std::string > &  args,
const std::map< std::string, std::string > &  vars,
const char *  format 
)

◆ FormatInternal() [2/2]

void google::protobuf::io::Printer::FormatInternal ( const std::vector< std::string > &  args,
const std::map< std::string, std::string > &  vars,
const char *  format 
)

◆ GetSubstitutionRange() [1/2]

bool google::protobuf::io::Printer::GetSubstitutionRange ( const char *  varname,
std::pair< size_t, size_t > *  range 
)
private

◆ GetSubstitutionRange() [2/2]

bool google::protobuf::io::Printer::GetSubstitutionRange ( const char *  varname,
std::pair< size_t, size_t > *  range 
)
private

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS() [1/2]

google::protobuf::io::Printer::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( Printer  )
private

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS() [2/2]

google::protobuf::io::Printer::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( Printer  )
private

◆ Indent() [1/2]

void google::protobuf::io::Printer::Indent ( )

◆ Indent() [2/2]

void google::protobuf::io::Printer::Indent ( )

◆ IndentIfAtStart() [1/2]

void google::protobuf::io::Printer::IndentIfAtStart ( )
inlineprivate

◆ IndentIfAtStart() [2/2]

void google::protobuf::io::Printer::IndentIfAtStart ( )
inlineprivate

◆ Next() [1/2]

bool google::protobuf::io::Printer::Next ( )
private

◆ Next() [2/2]

bool google::protobuf::io::Printer::Next ( )
private

◆ Outdent() [1/2]

void google::protobuf::io::Printer::Outdent ( )

◆ Outdent() [2/2]

void google::protobuf::io::Printer::Outdent ( )

◆ Print() [1/4]

template<typename... Args>
void google::protobuf::io::Printer::Print ( const char *  text,
const Args &...  args 
)
inline

◆ Print() [2/4]

template<typename... Args>
void google::protobuf::io::Printer::Print ( const char *  text,
const Args &...  args 
)
inline

Definition at line 251 of file protobuf/src/google/protobuf/io/printer.h.

◆ Print() [3/4]

void google::protobuf::io::Printer::Print ( const std::map< std::string, std::string > &  variables,
const char *  text 
)

◆ Print() [4/4]

void google::protobuf::io::Printer::Print ( const std::map< std::string, std::string > &  variables,
const char *  text 
)

◆ PrintInternal() [1/4]

void google::protobuf::io::Printer::PrintInternal ( std::map< std::string, std::string > *  vars,
const char *  text 
)
inlineprivate

◆ PrintInternal() [2/4]

void google::protobuf::io::Printer::PrintInternal ( std::map< std::string, std::string > *  vars,
const char *  text 
)
inlineprivate

Definition at line 302 of file protobuf/src/google/protobuf/io/printer.h.

◆ PrintInternal() [3/4]

template<typename... Args>
void google::protobuf::io::Printer::PrintInternal ( std::map< std::string, std::string > *  vars,
const char *  text,
const char *  key,
const std::string &  value,
const Args &...  args 
)
inlineprivate

◆ PrintInternal() [4/4]

template<typename... Args>
void google::protobuf::io::Printer::PrintInternal ( std::map< std::string, std::string > *  vars,
const char *  text,
const char *  key,
const std::string &  value,
const Args &...  args 
)
inlineprivate

Definition at line 308 of file protobuf/src/google/protobuf/io/printer.h.

◆ PrintRaw() [1/4]

void google::protobuf::io::Printer::PrintRaw ( const char *  data)

◆ PrintRaw() [2/4]

void google::protobuf::io::Printer::PrintRaw ( const char *  data)

◆ PrintRaw() [3/4]

void google::protobuf::io::Printer::PrintRaw ( const std::string &  data)

◆ PrintRaw() [4/4]

void google::protobuf::io::Printer::PrintRaw ( const std::string &  data)

◆ push_back() [1/2]

void google::protobuf::io::Printer::push_back ( char  c)
inlineprivate

◆ push_back() [2/2]

void google::protobuf::io::Printer::push_back ( char  c)
inlineprivate

Definition at line 318 of file protobuf/src/google/protobuf/io/printer.h.

◆ WriteRaw() [1/2]

void google::protobuf::io::Printer::WriteRaw ( const char *  data,
int  size 
)

◆ WriteRaw() [2/2]

void google::protobuf::io::Printer::WriteRaw ( const char *  data,
int  size 
)

◆ WriteVariable() [1/2]

const char * google::protobuf::io::Printer::WriteVariable ( const std::vector< std::string > &  args,
const std::map< std::string, std::string > &  vars,
const char *  format,
int arg_index,
std::vector< AnnotationCollector::Annotation > *  annotations 
)
private

Definition at line 307 of file protobuf/src/google/protobuf/io/printer.cc.

◆ WriteVariable() [2/2]

const char* google::protobuf::io::Printer::WriteVariable ( const std::vector< std::string > &  args,
const std::map< std::string, std::string > &  vars,
const char *  format,
int arg_index,
std::vector< AnnotationCollector::Annotation > *  annotations 
)
private

Member Data Documentation

◆ annotation_collector_

AnnotationCollector *const google::protobuf::io::Printer::annotation_collector_
private

◆ at_start_of_line_

bool google::protobuf::io::Printer::at_start_of_line_
private

◆ buffer_

char * google::protobuf::io::Printer::buffer_
private

◆ buffer_size_

int google::protobuf::io::Printer::buffer_size_
private

◆ failed_

bool google::protobuf::io::Printer::failed_
private

◆ indent_

std::string google::protobuf::io::Printer::indent_
private

◆ line_start_variables_

std::vector< std::string > google::protobuf::io::Printer::line_start_variables_
private

◆ offset_

size_t google::protobuf::io::Printer::offset_
private

◆ output_

ZeroCopyOutputStream *const google::protobuf::io::Printer::output_
private

◆ substitutions_

std::map< std::string, std::pair< size_t, size_t > > google::protobuf::io::Printer::substitutions_
private

◆ variable_delimiter_

const char google::protobuf::io::Printer::variable_delimiter_
private

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


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