#include <code_generators.h>
Definition at line 40 of file code_generators.h.
◆ CodeWriter()
| flatbuffers::CodeWriter::CodeWriter |
( |
std::string |
pad = std::string() | ) |
|
|
inline |
Definition at line 42 of file code_generators.h.
43 : pad_(pad), cur_ident_lvl_(0), ignore_ident_(false) {}
◆ Clear()
| void flatbuffers::CodeWriter::Clear |
( |
| ) |
|
|
inline |
Definition at line 46 of file code_generators.h.
46 {
47 stream_.str("");
48 stream_.clear();
49 }
◆ DecrementIdentLevel()
| void flatbuffers::CodeWriter::DecrementIdentLevel |
( |
| ) |
|
|
inline |
Definition at line 75 of file code_generators.h.
75 {
76 if (cur_ident_lvl_) cur_ident_lvl_--;
77 }
◆ GetValue()
| std::string flatbuffers::CodeWriter::GetValue |
( |
const std::string & |
key | ) |
const |
|
inline |
Definition at line 58 of file code_generators.h.
58 {
59 const auto it = value_map_.find(key);
60 return it == value_map_.end() ? "" : it->second;
61 }
◆ 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: