Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::ReusableStringStream Class Reference

#include <catch_stream.h>

Public Member Functions

 ReusableStringStream ()
 
 ~ReusableStringStream ()
 
auto str () const -> std::string
 
template<typename T >
auto operator<< (T const &value) -> ReusableStringStream &
 
auto get () -> std::ostream &
 
 ReusableStringStream ()
 
 ~ReusableStringStream ()
 
auto str () const -> std::string
 
template<typename T >
auto operator<< (T const &value) -> ReusableStringStream &
 
auto get () -> std::ostream &
 

Detailed Description

Definition at line 1150 of file catch.hpp.

Constructor & Destructor Documentation

◆ ReusableStringStream() [1/2]

Catch::ReusableStringStream::ReusableStringStream ( )

Definition at line 163 of file catch_stream.cpp.

165 m_oss( Singleton<StringStreams>::getMutable().m_streams[m_index].get() )
166 {}
auto get() -> std::ostream &
static auto getMutable() -> MutableInterfaceT &
int add(int a, int b)

◆ ~ReusableStringStream() [1/2]

Catch::ReusableStringStream::~ReusableStringStream ( )

Definition at line 168 of file catch_stream.cpp.

168 {
169 static_cast<std::ostringstream*>( m_oss )->str("");
170 m_oss->clear();
171 Singleton<StringStreams>::getMutable().release( m_index );
172 }
auto str() const -> std::string
Here is the call graph for this function:

◆ ReusableStringStream() [2/2]

Catch::ReusableStringStream::ReusableStringStream ( )

◆ ~ReusableStringStream() [2/2]

Catch::ReusableStringStream::~ReusableStringStream ( )

Member Function Documentation

◆ get() [1/2]

auto Catch::ReusableStringStream::get ( ) -> std::ostream&
inline

Definition at line 45 of file catch_stream.h.

45{ return *m_oss; }
Here is the caller graph for this function:

◆ get() [2/2]

auto Catch::ReusableStringStream::get ( ) -> std::ostream&
inline

Definition at line 1164 of file catch.hpp.

1164{ return *m_oss; }

◆ operator<<() [1/2]

template<typename T >
auto Catch::ReusableStringStream::operator<< ( T const & value) -> ReusableStringStream&
inline

Definition at line 41 of file catch_stream.h.

41 {
42 *m_oss << value;
43 return *this;
44 }
#define value
Definition pkcs11.h:157

◆ operator<<() [2/2]

template<typename T >
auto Catch::ReusableStringStream::operator<< ( T const & value) -> ReusableStringStream&
inline

Definition at line 1160 of file catch.hpp.

1160 {
1161 *m_oss << value;
1162 return *this;
1163 }

◆ str() [1/2]

auto Catch::ReusableStringStream::str ( ) const -> std::string

Definition at line 174 of file catch_stream.cpp.

174 {
175 return static_cast<std::ostringstream*>( m_oss )->str();
176 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ str() [2/2]

auto Catch::ReusableStringStream::str ( ) const -> std::string

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