#include <code_generators.h>
Definition at line 42 of file code_generators.h.
◆ CodeWriter()
flatbuffers::CodeWriter::CodeWriter |
( |
std::string |
pad = std::string() | ) |
|
|
inline |
Definition at line 45 of file code_generators.h.
45 : pad_(pad), cur_ident_lvl_(0), ignore_ident_(false)
46 {
47 }
◆ Clear()
void flatbuffers::CodeWriter::Clear |
( |
| ) |
|
|
inline |
Definition at line 50 of file code_generators.h.
51 {
52 stream_.str("");
53 stream_.clear();
54 }
◆ DecrementIdentLevel()
void flatbuffers::CodeWriter::DecrementIdentLevel |
( |
| ) |
|
|
inline |
Definition at line 79 of file code_generators.h.
80 {
81 if (cur_ident_lvl_)
82 cur_ident_lvl_--;
83 }
◆ GetValue()
std::string flatbuffers::CodeWriter::GetValue |
( |
const std::string & |
key | ) |
const |
|
inline |
Definition at line 61 of file code_generators.h.
62 {
63 const auto it = value_map_.find(key);
64 return it == value_map_.end() ? "" : it->second;
65 }
◆ IncrementIdentLevel()
void flatbuffers::CodeWriter::IncrementIdentLevel |
( |
| ) |
|
|
inline |
◆ operator+=()
void flatbuffers::CodeWriter::operator+= |
( |
std::string |
text | ) |
|
◆ SetPadding()
void flatbuffers::CodeWriter::SetPadding |
( |
const std::string & |
padding | ) |
|
|
inline |
◆ SetValue()
void flatbuffers::CodeWriter::SetValue |
( |
const std::string & |
key, |
|
|
const std::string & |
value |
|
) |
| |
|
inline |
◆ ToString()
std::string flatbuffers::CodeWriter::ToString |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: