DiaDes  0.1
DIAgnosis of Discrete-Event System
Public Member Functions | Public Attributes | List of all members
Diades::Utils::IsIn< InputIterator > Struct Template Reference

#include <Functors.hh>

Public Member Functions

 IsIn (InputIterator first, InputIterator last)
 
bool operator() (const typename InputIterator::value_type &obj) const
 

Public Attributes

InputIterator _first
 
InputIterator _last
 

Additional Inherited Members

- Public Types inherited from Diades::Utils::UnaryPredicate< InputIterator::value_type >
using Object = InputIterator::value_type
 

Detailed Description

template<typename InputIterator>
struct Diades::Utils::IsIn< InputIterator >

IsIn unary functor Checks whether a given value is within a range (call std::find)

Definition at line 105 of file Functors.hh.

Constructor & Destructor Documentation

◆ IsIn()

template<typename InputIterator>
Diades::Utils::IsIn< InputIterator >::IsIn ( InputIterator  first,
InputIterator  last 
)
inline
Parameters
firstfirst iterator of the range to search in
lastlast iterator of the range to search in

Definition at line 115 of file Functors.hh.

Member Function Documentation

◆ operator()()

template<typename InputIterator>
bool Diades::Utils::IsIn< InputIterator >::operator() ( const typename InputIterator::value_type &  obj) const
inline
Parameters
objthe value to look for
Returns
true if the value is within the range [first,last[

Definition at line 124 of file Functors.hh.

Member Data Documentation

◆ _first

template<typename InputIterator>
InputIterator Diades::Utils::IsIn< InputIterator >::_first

Definition at line 107 of file Functors.hh.

◆ _last

template<typename InputIterator>
InputIterator Diades::Utils::IsIn< InputIterator >::_last

Definition at line 108 of file Functors.hh.


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