DiaDes  0.1
DIAgnosis of Discrete-Event System
Public Member Functions | List of all members
Diades::Utils::UnaryOr< UnaryPredicate1, UnaryPredicate2 > Struct Template Reference

#include <Functors.hh>

Public Member Functions

 UnaryOr (const UnaryPredicate1 &p1, const UnaryPredicate2 &p2)
 
- Public Member Functions inherited from Diades::Utils::CompositionFunctorFGxHx< std::logical_or< bool >, UnaryPredicate1, UnaryPredicate2 >
 CompositionFunctorFGxHx (const std::logical_or< bool > &f, const UnaryPredicate1 &g, const UnaryPredicate2 &h)
 
std::logical_or< bool > ::result_type operator() (const typename UnaryPredicate1 ::argument_type &x) const
 

Detailed Description

template<typename UnaryPredicate1, typename UnaryPredicate2>
struct Diades::Utils::UnaryOr< UnaryPredicate1, UnaryPredicate2 >

UnaryOr specialisation of CompositionFunctorFGxHx for an unary predicate conjunction

UnaryAnd<P1, P2>()(x) return P1(x) or P2(x)

Definition at line 456 of file Functors.hh.

Constructor & Destructor Documentation

◆ UnaryOr()

template<typename UnaryPredicate1, typename UnaryPredicate2>
Diades::Utils::UnaryOr< UnaryPredicate1, UnaryPredicate2 >::UnaryOr ( const UnaryPredicate1 &  p1,
const UnaryPredicate2 &  p2 
)
inline

Definition at line 458 of file Functors.hh.


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