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

Classes

class  Approx
 
class  IsStreamInsertable
 

Functions

std::string rawMemoryToString (const void *object, std::size_t size)
 
template<typename T >
std::string rawMemoryToString (const T &object)
 
template<typename E >
std::string convertUnknownEnumToString (E e)
 
template<typename T >
std::enable_if< !std::is_enum< T >::value &&!std::is_base_of< std::exception, T >::value, std::string >::type convertUnstreamable (T const &)
 
template<typename T >
std::enable_if< !std::is_enum< T >::value &&std::is_base_of< std::exception, T >::value, std::string >::type convertUnstreamable (T const &ex)
 
template<typename T >
std::enable_if< std::is_enum< T >::value, std::string >::type convertUnstreamable (T const &value)
 
template<typename T >
std::string stringify (const T &e)
 
template<typename InputIterator >
std::string rangeToString (InputIterator first, InputIterator last)
 

Variables

const std::string unprintableString
 

Function Documentation

template<typename E >
std::string Catch::Detail::convertUnknownEnumToString ( e)

Definition at line 960 of file catch.hpp.

References stringify(), and growth_allz::T.

Referenced by convertUnstreamable().

960  {
961  return ::Catch::Detail::stringify(static_cast<typename std::underlying_type<E>::type>(e));
962  }
std::string stringify(const T &e)
Definition: catch.hpp:955
template<typename T >
std::enable_if< !std::is_enum<T>::value && !std::is_base_of<std::exception, T>::value, std::string>::type Catch::Detail::convertUnstreamable ( T const &  )

Definition at line 893 of file catch.hpp.

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

Referenced by Catch::StringMaker< T, typename >::convert().

893  {
895  }
const std::string unprintableString
template<typename T >
std::enable_if< !std::is_enum<T>::value && std::is_base_of<std::exception, T>::value, std::string>::type Catch::Detail::convertUnstreamable ( T const &  ex)

Definition at line 899 of file catch.hpp.

References Catch::Generators::value().

899  {
900  return ex.what();
901  }
template<typename T >
std::enable_if< std::is_enum<T>::value , std::string>::type Catch::Detail::convertUnstreamable ( T const &  value)

Definition at line 906 of file catch.hpp.

References convertUnknownEnumToString(), p, and growth_allz::T.

906  {
908  }
std::string convertUnknownEnumToString(E e)
Definition: catch.hpp:960
auto value(T const &val) -> Generator< T >
Definition: catch.hpp:3177
template<typename InputIterator >
std::string Catch::Detail::rangeToString ( InputIterator  first,
InputIterator  last 
)

Definition at line 1131 of file catch.hpp.

References Catch::StringMaker< T, typename >::convert(), setup::description, Catch::ReusableStringStream::get(), Catch::ReusableStringStream::str(), stringify(), and Catch::Generators::value().

1131  {
1132  ReusableStringStream rss;
1133  rss << "{ ";
1134  if (first != last) {
1135  rss << ::Catch::Detail::stringify(*first);
1136  for (++first; first != last; ++first)
1137  rss << ", " << ::Catch::Detail::stringify(*first);
1138  }
1139  rss << " }";
1140  return rss.str();
1141  }
std::string stringify(const T &e)
Definition: catch.hpp:955
std::string Catch::Detail::rawMemoryToString ( const void *  object,
std::size_t  size 
)
template<typename T >
std::string Catch::Detail::rawMemoryToString ( const T &  object)

Definition at line 870 of file catch.hpp.

Referenced by Catch::StringMaker< T * >::convert(), and Catch::StringMaker< R C::* >::convert().

870  {
871  return rawMemoryToString( &object, sizeof(object) );
872  }
std::string rawMemoryToString(const T &object)
Definition: catch.hpp:870

Variable Documentation

const std::string Catch::Detail::unprintableString