Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
Catch::ExceptionTranslatorRegistrar::ExceptionTranslator< T > Class Template Reference
Inheritance diagram for Catch::ExceptionTranslatorRegistrar::ExceptionTranslator< T >:
Collaboration diagram for Catch::ExceptionTranslatorRegistrar::ExceptionTranslator< T >:

Public Member Functions

 ExceptionTranslator (std::string(*translateFunction)(T &))
 
std::string translate (ExceptionTranslators::const_iterator it, ExceptionTranslators::const_iterator itEnd) const override
 
- Public Member Functions inherited from Catch::IExceptionTranslator
virtual ~IExceptionTranslator ()
 

Protected Attributes

std::string(* m_translateFunction )(T &)
 

Detailed Description

template<typename T>
class Catch::ExceptionTranslatorRegistrar::ExceptionTranslator< T >

Definition at line 2226 of file catch.hpp.

Constructor & Destructor Documentation

template<typename T >
Catch::ExceptionTranslatorRegistrar::ExceptionTranslator< T >::ExceptionTranslator ( std::string(*)(T &)  translateFunction)
inline

Definition at line 2229 of file catch.hpp.

2230  : m_translateFunction( translateFunction )
2231  {}

Member Function Documentation

template<typename T >
std::string Catch::ExceptionTranslatorRegistrar::ExceptionTranslator< T >::translate ( ExceptionTranslators::const_iterator  it,
ExceptionTranslators::const_iterator  itEnd 
) const
inlineoverridevirtual

Implements Catch::IExceptionTranslator.

Definition at line 2233 of file catch.hpp.

References growth_allz::T.

2233  {
2234  try {
2235  if( it == itEnd )
2236  std::rethrow_exception(std::current_exception());
2237  else
2238  return (*it)->translate( it+1, itEnd );
2239  }
2240  catch( T& ex ) {
2241  return m_translateFunction( ex );
2242  }
2243  }

Member Data Documentation

template<typename T >
std::string(* Catch::ExceptionTranslatorRegistrar::ExceptionTranslator< T >::m_translateFunction) (T &)
protected

Definition at line 2246 of file catch.hpp.


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