A class for formatting a list into a string where elements are separated by a separator.
More...
A class for formatting a list into a string where elements are separated by a separator.
◆ StringJoiner()
anonymous_namespace{relational_expression.cc}::StringJoiner::StringJoiner |
( |
const char * |
separator | ) |
|
|
inlineexplicit |
◆ GetResult()
std::string anonymous_namespace{relational_expression.cc}::StringJoiner::GetResult |
( |
| ) |
const |
|
inline |
◆ StartElement()
std::ostream & anonymous_namespace{relational_expression.cc}::StringJoiner::StartElement |
( |
| ) |
|
|
inline |
Start a new list element.
Add a separator if needed.
- Returns
- The ostream to which we add the representation of the element.
◆ m_first
bool anonymous_namespace{relational_expression.cc}::StringJoiner::m_first {true} |
|
private |
True if we have not added any elements yet.
◆ m_separator
const char* anonymous_namespace{relational_expression.cc}::StringJoiner::m_separator |
|
private |
The separator between elements.
◆ m_stream
std::ostringstream anonymous_namespace{relational_expression.cc}::StringJoiner::m_stream |
|
private |
The string represenation of the list.
The documentation for this class was generated from the following file: