ManaPlus
Public Member Functions | Data Fields
Catch::CopyableStream Struct Reference

#include <catch.hpp>

Public Member Functions

 CopyableStream ()
 
 CopyableStream (CopyableStream const &other)
 
CopyableStreamoperator= (CopyableStream const &other)
 

Data Fields

std::ostringstream oss
 

Detailed Description

Definition at line 1213 of file catch.hpp.

Constructor & Destructor Documentation

◆ CopyableStream() [1/2]

Catch::CopyableStream::CopyableStream ( )
inline

Definition at line 1214 of file catch.hpp.

1214 {}

◆ CopyableStream() [2/2]

Catch::CopyableStream::CopyableStream ( CopyableStream const &  other)
inline

Definition at line 1215 of file catch.hpp.

1215  {
1216  oss << other.oss.str();
1217  }
std::ostringstream oss
Definition: catch.hpp:1223

References oss.

Member Function Documentation

◆ operator=()

CopyableStream& Catch::CopyableStream::operator= ( CopyableStream const &  other)
inline

Definition at line 1218 of file catch.hpp.

1218  {
1219  oss.str("");
1220  oss << other.oss.str();
1221  return *this;
1222  }

References oss.

Field Documentation

◆ oss

std::ostringstream Catch::CopyableStream::oss

Definition at line 1223 of file catch.hpp.

Referenced by CopyableStream(), and operator=().


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