CoMMA 1.3.2
A geometric agglomerator for unstructured meshes
Loading...
Searching...
No Matches
comma::PairFindFirstBasedFunctor< PairT > Class Template Reference

Functor implementing an operator telling if a given value if the first one of pair. More...

#include <Util.h>

Public Member Functions

 PairFindFirstBasedFunctor ()
 Constructor. More...
 
 PairFindFirstBasedFunctor (const typename PairT::first_type &target)
 Constructor. More...
 
 ~PairFindFirstBasedFunctor ()=default
 Destructor. More...
 
bool operator() (const PairT &pr) const
 Operator telling if the first value of the given pair is equal to the reference one. More...
 

Detailed Description

template<typename PairT>
class comma::PairFindFirstBasedFunctor< PairT >

Functor implementing an operator telling if a given value if the first one of pair.

Template Parameters
PairTType for pairs

Constructor & Destructor Documentation

◆ PairFindFirstBasedFunctor() [1/2]

template<typename PairT >
comma::PairFindFirstBasedFunctor< PairT >::PairFindFirstBasedFunctor ( )
inline

Constructor.

◆ PairFindFirstBasedFunctor() [2/2]

template<typename PairT >
comma::PairFindFirstBasedFunctor< PairT >::PairFindFirstBasedFunctor ( const typename PairT::first_type &  target)
inline

Constructor.

Parameters
targetReference value that will be sought

◆ ~PairFindFirstBasedFunctor()

template<typename PairT >
comma::PairFindFirstBasedFunctor< PairT >::~PairFindFirstBasedFunctor ( )
default

Destructor.

Member Function Documentation

◆ operator()()

template<typename PairT >
bool comma::PairFindFirstBasedFunctor< PairT >::operator() ( const PairT &  pr) const
inline

Operator telling if the first value of the given pair is equal to the reference one.

Parameters
[in]prThe pair
Returns
a bool

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