C++ Library Extensions 2022.12.09
To help learn modern C++ programming
tpf::output::string_stream Class Reference

#include <tpf_output.hpp>

Inheritance diagram for tpf::output::string_stream:
[legend]
Collaboration diagram for tpf::output::string_stream:
[legend]

Public Types

using base_t = std::ostringstream
 

Public Member Functions

base_tstd ()
 
const base_tstd () const
 
 string_stream ()
 
 string_stream (const string_stream &)=default
 
string_streamoperator= (const string_stream &)=default
 
string_streamoperator<< (const char *arg)
 
string_streamoperator<< (const wchar_t *arg)
 
template<typename ArgCharType >
string_streamoperator<< (const ArgCharType &arg)
 
template<std::size_t N, typename T , typename deleter >
string_streamoperator<< (types::unique_ptr_wrapper< N, T, deleter > const &upw)
 
string_streamoperator<< (const new_line &)
 
string_streamoperator<< (const new_Line &)
 
string_streamclear ()
 
string_streamoperator<< (const flush_stream &)
 
string_streamoperator<< (const new_line_flush &)
 
string_streamoperator<< (const new_Line_flush &)
 
 operator std::string () const
 
std::string str () const
 
 operator std::wstring () const
 
 operator const char * () const
 

Detailed Description

Definition at line 843 of file tpf_output.hpp.

Member Typedef Documentation

◆ base_t

using tpf::output::string_stream::base_t = std::ostringstream

Definition at line 846 of file tpf_output.hpp.

Constructor & Destructor Documentation

◆ string_stream() [1/2]

tpf::output::string_stream::string_stream ( )
inline

Definition at line 860 of file tpf_output.hpp.

◆ string_stream() [2/2]

tpf::output::string_stream::string_stream ( const string_stream )
default

Member Function Documentation

◆ clear()

string_stream & tpf::output::string_stream::clear ( )
inline

Definition at line 916 of file tpf_output.hpp.

Here is the caller graph for this function:

◆ operator const char *()

tpf::output::string_stream::operator const char * ( ) const
inline

Definition at line 961 of file tpf_output.hpp.

◆ operator std::string()

tpf::output::string_stream::operator std::string ( ) const
inline

Definition at line 946 of file tpf_output.hpp.

◆ operator std::wstring()

tpf::output::string_stream::operator std::wstring ( ) const
inline

Definition at line 956 of file tpf_output.hpp.

Here is the call graph for this function:

◆ operator<<() [1/9]

template<typename ArgCharType >
string_stream & tpf::output::string_stream::operator<< ( const ArgCharType &  arg)
inline

Definition at line 891 of file tpf_output.hpp.

◆ operator<<() [2/9]

string_stream & tpf::output::string_stream::operator<< ( const char *  arg)
inline

Definition at line 870 of file tpf_output.hpp.

Here is the call graph for this function:

◆ operator<<() [3/9]

string_stream & tpf::output::string_stream::operator<< ( const flush_stream )
inline

Definition at line 922 of file tpf_output.hpp.

◆ operator<<() [4/9]

string_stream & tpf::output::string_stream::operator<< ( const new_line )
inline

Definition at line 904 of file tpf_output.hpp.

◆ operator<<() [5/9]

string_stream & tpf::output::string_stream::operator<< ( const new_Line )
inline

Definition at line 910 of file tpf_output.hpp.

◆ operator<<() [6/9]

string_stream & tpf::output::string_stream::operator<< ( const new_line_flush )
inline

Definition at line 929 of file tpf_output.hpp.

Here is the call graph for this function:

◆ operator<<() [7/9]

string_stream & tpf::output::string_stream::operator<< ( const new_Line_flush )
inline

Definition at line 938 of file tpf_output.hpp.

Here is the call graph for this function:

◆ operator<<() [8/9]

string_stream & tpf::output::string_stream::operator<< ( const wchar_t *  arg)
inline

Definition at line 876 of file tpf_output.hpp.

Here is the call graph for this function:

◆ operator<<() [9/9]

template<std::size_t N, typename T , typename deleter >
string_stream & tpf::output::string_stream::operator<< ( types::unique_ptr_wrapper< N, T, deleter > const &  upw)
inline

Definition at line 899 of file tpf_output.hpp.

Here is the call graph for this function:

◆ operator=()

string_stream & tpf::output::string_stream::operator= ( const string_stream )
default

◆ std() [1/2]

base_t & tpf::output::string_stream::std ( )
inline

Definition at line 850 of file tpf_output.hpp.

Here is the caller graph for this function:

◆ std() [2/2]

const base_t & tpf::output::string_stream::std ( ) const
inline

Definition at line 855 of file tpf_output.hpp.

◆ str()

std::string tpf::output::string_stream::str ( ) const
inline

Definition at line 951 of file tpf_output.hpp.

Here is the caller graph for this function:

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