Allocator for variants of a std stringstream. More...
Public Member Functions | |
Foam::string | str () const |
Get the string - as Foam::string rather than std::string. More... | |
void | str (const std::string &s) |
Set the string. More... | |
Protected Types | |
typedef StreamType | stream_type |
The stream type. More... | |
Protected Member Functions | |
StringStreamAllocator ()=default | |
Default construct. More... | |
StringStreamAllocator (const std::string &s) | |
Copy construct from string. More... | |
Protected Attributes | |
stream_type | stream_ |
The input/output stream. More... | |
Allocator for variants of a std stringstream.
Definition at line 58 of file StringStream.H.
|
protected |
The stream type.
Definition at line 65 of file StringStream.H.
|
protecteddefault |
Default construct.
|
inlineprotected |
Copy construct from string.
Definition at line 77 of file StringStream.H.
|
inline |
Get the string - as Foam::string rather than std::string.
Definition at line 88 of file StringStream.H.
References StringStreamAllocator< StreamType >::stream_.
Referenced by Foam::entryToString(), Foam::name(), entry::operator==(), expressionEntry::toExprStr(), ITstream::toString(), and accessor::toString().
|
inline |
Set the string.
Definition at line 94 of file StringStream.H.
References s(), and StringStreamAllocator< StreamType >::stream_.
|
protected |
The input/output stream.
Definition at line 68 of file StringStream.H.
Referenced by StringStreamAllocator< StreamType >::str().