Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
Catch::Matchers::Impl::MatchAllOf< ArgT > Struct Template Reference

#include <catch.hpp>

Inheritance diagram for Catch::Matchers::Impl::MatchAllOf< ArgT >:
Collaboration diagram for Catch::Matchers::Impl::MatchAllOf< ArgT >:

Public Member Functions

bool match (ArgT const &arg) const override
 
std::string describe () const override
 
MatchAllOf< ArgT > & operator&& (MatcherBase< ArgT > const &other)
 
- Public Member Functions inherited from Catch::Matchers::Impl::MatcherBase< ArgT >
MatchAllOf< ArgT > operator&& (MatcherBase const &other) const
 
MatchAnyOf< ArgT > operator|| (MatcherBase const &other) const
 
MatchNotOf< ArgT > operator! () const
 
- Public Member Functions inherited from Catch::Matchers::Impl::MatcherUntypedBase
 MatcherUntypedBase ()=default
 
 MatcherUntypedBase (MatcherUntypedBase const &)=default
 
MatcherUntypedBaseoperator= (MatcherUntypedBase const &)=delete
 
std::string toString () const
 

Public Attributes

std::vector< MatcherBase< ArgT > const * > m_matchers
 

Additional Inherited Members

- Protected Member Functions inherited from Catch::Matchers::Impl::MatcherUntypedBase
virtual ~MatcherUntypedBase ()
 
- Protected Attributes inherited from Catch::Matchers::Impl::MatcherUntypedBase
std::string m_cachedToString
 

Detailed Description

template<typename ArgT>
struct Catch::Matchers::Impl::MatchAllOf< ArgT >

Definition at line 2430 of file catch.hpp.

Member Function Documentation

template<typename ArgT>
std::string Catch::Matchers::Impl::MatchAllOf< ArgT >::describe ( ) const
inlineoverridevirtual

Implements Catch::Matchers::Impl::MatcherUntypedBase.

Definition at line 2482 of file catch.hpp.

References setup::description.

2482  {
2483  std::string description;
2484  description.reserve( 4 + m_matchers.size()*32 );
2485  description += "( ";
2486  bool first = true;
2487  for( auto matcher : m_matchers ) {
2488  if( first )
2489  first = false;
2490  else
2491  description += " and ";
2492  description += matcher->toString();
2493  }
2494  description += " )";
2495  return description;
2496  }
std::vector< MatcherBase< ArgT > const * > m_matchers
Definition: catch.hpp:2503
description
Definition: setup.py:40
template<typename ArgT>
bool Catch::Matchers::Impl::MatchAllOf< ArgT >::match ( ArgT const &  arg) const
inlineoverridevirtual

Implements Catch::Matchers::Impl::MatcherMethod< ArgT >.

Definition at line 2475 of file catch.hpp.

2475  {
2476  for( auto matcher : m_matchers ) {
2477  if (!matcher->match(arg))
2478  return false;
2479  }
2480  return true;
2481  }
std::vector< MatcherBase< ArgT > const * > m_matchers
Definition: catch.hpp:2503
template<typename ArgT>
MatchAllOf<ArgT>& Catch::Matchers::Impl::MatchAllOf< ArgT >::operator&& ( MatcherBase< ArgT > const &  other)
inline

Definition at line 2498 of file catch.hpp.

2498  {
2499  m_matchers.push_back( &other );
2500  return *this;
2501  }
std::vector< MatcherBase< ArgT > const * > m_matchers
Definition: catch.hpp:2503

Member Data Documentation

template<typename ArgT>
std::vector<MatcherBase<ArgT> const*> Catch::Matchers::Impl::MatchAllOf< ArgT >::m_matchers

Definition at line 2503 of file catch.hpp.


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