StringStreamAllocator< StreamType > Class Template Reference

Allocator for variants of a std stringstream. More...

Inheritance diagram for StringStreamAllocator< StreamType >:
[legend]
Collaboration diagram for StringStreamAllocator< StreamType >:
[legend]

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 ()
 Construct null. More...
 
 StringStreamAllocator (const std::string &buffer)
 Copy construct from string. More...
 

Protected Attributes

stream_type stream_
 The input/output stream. More...
 

Detailed Description

template<class StreamType>
class Foam::Detail::StringStreamAllocator< StreamType >

Allocator for variants of a std stringstream.

Definition at line 58 of file StringStream.H.

Member Typedef Documentation

◆ stream_type

typedef StreamType stream_type
protected

The stream type.

Definition at line 65 of file StringStream.H.

Constructor & Destructor Documentation

◆ StringStreamAllocator() [1/2]

StringStreamAllocator ( )
inlineprotected

Construct null.

Definition at line 74 of file StringStream.H.

◆ StringStreamAllocator() [2/2]

StringStreamAllocator ( const std::string &  buffer)
inlineprotected

Copy construct from string.

Definition at line 81 of file StringStream.H.

Member Function Documentation

◆ str() [1/2]

◆ str() [2/2]

void str ( const std::string &  s)
inline

Set the string.

Definition at line 98 of file StringStream.H.

Member Data Documentation

◆ stream_

stream_type stream_
protected

The input/output stream.

Definition at line 68 of file StringStream.H.

Referenced by StringStreamAllocator< std::istringstream >::str().


The documentation for this class was generated from the following file: