#include <printer.h>
|
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) |
|
template<typename SomeDescriptor > |
void | Annotate (const char *varname, const SomeDescriptor *descriptor) |
|
void | Annotate (const char *varname, const std::string &file_name) |
|
bool | failed () const |
|
void | FormatInternal (const std::vector< std::string > &args, const std::map< std::string, std::string > &vars, const char *format) |
|
void | Indent () |
|
void | Outdent () |
|
template<typename... Args> |
void | Print (const char *text, const Args &... args) |
|
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, AnnotationCollector *annotation_collector) |
|
void | PrintRaw (const char *data) |
|
void | PrintRaw (const std::string &data) |
|
void | WriteRaw (const char *data, int size) |
|
| ~Printer () |
|
|
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) |
|
bool | GetSubstitutionRange (const char *varname, std::pair< size_t, size_t > *range) |
|
| GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (Printer) |
|
void | IndentIfAtStart () |
|
bool | Next () |
|
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) |
|
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) |
|
Definition at line 181 of file printer.h.
◆ Printer() [1/2]
◆ Printer() [2/2]
◆ ~Printer()
google::protobuf::io::Printer::~Printer |
( |
| ) |
|
◆ Annotate() [1/5]
template<typename SomeDescriptor >
void google::protobuf::io::Printer::Annotate |
( |
const char * |
begin_varname, |
|
|
const char * |
end_varname, |
|
|
const SomeDescriptor * |
descriptor |
|
) |
| |
|
inline |
◆ Annotate() [2/5]
void google::protobuf::io::Printer::Annotate |
( |
const char * |
begin_varname, |
|
|
const char * |
end_varname, |
|
|
const std::string & |
file_name |
|
) |
| |
|
inline |
◆ Annotate() [3/5]
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() [4/5]
template<typename SomeDescriptor >
void google::protobuf::io::Printer::Annotate |
( |
const char * |
varname, |
|
|
const SomeDescriptor * |
descriptor |
|
) |
| |
|
inline |
◆ Annotate() [5/5]
void google::protobuf::io::Printer::Annotate |
( |
const char * |
varname, |
|
|
const std::string & |
file_name |
|
) |
| |
|
inline |
◆ CopyToBuffer()
void google::protobuf::io::Printer::CopyToBuffer |
( |
const char * |
data, |
|
|
int |
size |
|
) |
| |
|
private |
◆ failed()
bool google::protobuf::io::Printer::failed |
( |
| ) |
const |
|
inline |
◆ FormatInternal()
◆ GetSubstitutionRange()
bool google::protobuf::io::Printer::GetSubstitutionRange |
( |
const char * |
varname, |
|
|
std::pair< size_t, size_t > * |
range |
|
) |
| |
|
private |
◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS()
google::protobuf::io::Printer::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS |
( |
Printer |
| ) |
|
|
private |
◆ Indent()
void google::protobuf::io::Printer::Indent |
( |
| ) |
|
◆ IndentIfAtStart()
void google::protobuf::io::Printer::IndentIfAtStart |
( |
| ) |
|
|
inlineprivate |
◆ Next()
bool google::protobuf::io::Printer::Next |
( |
| ) |
|
|
private |
◆ Outdent()
void google::protobuf::io::Printer::Outdent |
( |
| ) |
|
◆ Print() [1/2]
template<typename... Args>
void google::protobuf::io::Printer::Print |
( |
const char * |
text, |
|
|
const Args &... |
args |
|
) |
| |
|
inline |
◆ Print() [2/2]
◆ PrintInternal() [1/2]
◆ PrintInternal() [2/2]
template<typename... Args>
◆ PrintRaw() [1/2]
void google::protobuf::io::Printer::PrintRaw |
( |
const char * |
data | ) |
|
◆ PrintRaw() [2/2]
◆ push_back()
void google::protobuf::io::Printer::push_back |
( |
char |
c | ) |
|
|
inlineprivate |
◆ WriteRaw()
void google::protobuf::io::Printer::WriteRaw |
( |
const char * |
data, |
|
|
int |
size |
|
) |
| |
◆ WriteVariable()
◆ annotation_collector_
◆ 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_
◆ 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_
◆ 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: