Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
Catch::Capturer Class Reference

#include <catch.hpp>

Collaboration diagram for Catch::Capturer:

Public Member Functions

 Capturer (StringRef macroName, SourceLineInfo const &lineInfo, ResultWas::OfType resultType, StringRef names)
 
 ~Capturer ()
 
void captureValue (size_t index, StringRef value)
 
template<typename T >
void captureValues (size_t index, T &&value)
 
template<typename T , typename... Ts>
void captureValues (size_t index, T &&value, Ts &&...values)
 

Private Attributes

std::vector< MessageInfom_messages
 
IResultCapturem_resultCapture = getResultCapture()
 
size_t m_captured = 0
 

Detailed Description

Definition at line 1818 of file catch.hpp.

Constructor & Destructor Documentation

Catch::Capturer::Capturer ( StringRef  macroName,
SourceLineInfo const &  lineInfo,
ResultWas::OfType  resultType,
StringRef  names 
)
Catch::Capturer::~Capturer ( )

Member Function Documentation

void Catch::Capturer::captureValue ( size_t  index,
StringRef  value 
)
template<typename T >
void Catch::Capturer::captureValues ( size_t  index,
T &&  value 
)
inline

Definition at line 1829 of file catch.hpp.

References Catch::Detail::stringify(), growth_allz::T, and Catch::Generators::value().

1829  {
1831  }
std::string stringify(const T &e)
Definition: catch.hpp:955
void captureValue(size_t index, StringRef value)
auto value(T const &val) -> Generator< T >
Definition: catch.hpp:3177
template<typename T , typename... Ts>
void Catch::Capturer::captureValues ( size_t  index,
T &&  value,
Ts &&...  values 
)
inline

Definition at line 1834 of file catch.hpp.

References Catch::Generators::value(), and Catch::Generators::values().

1834  {
1835  captureValues( index, value );
1836  captureValues( index+1, values... );
1837  }
auto values(std::initializer_list< T > values) -> Generator< T >
Definition: catch.hpp:3173
void captureValues(size_t index, T &&value)
Definition: catch.hpp:1829
auto value(T const &val) -> Generator< T >
Definition: catch.hpp:3177

Member Data Documentation

size_t Catch::Capturer::m_captured = 0
private

Definition at line 1821 of file catch.hpp.

std::vector<MessageInfo> Catch::Capturer::m_messages
private

Definition at line 1819 of file catch.hpp.

IResultCapture& Catch::Capturer::m_resultCapture = getResultCapture()
private

Definition at line 1820 of file catch.hpp.


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