www.mooseframework.org
Public Member Functions | Private Attributes | List of all members
Moose::indirect_comparator< RandomAccessIterator, UserComparisonFunctor > Struct Template Reference

#include <IndirectSort.h>

Public Member Functions

 indirect_comparator (RandomAccessIterator r, UserComparisonFunctor c)
 
bool operator() (size_t lhs, size_t rhs)
 

Private Attributes

RandomAccessIterator _random_access_iterator
 
UserComparisonFunctor _user_comp
 

Detailed Description

template<class RandomAccessIterator, class UserComparisonFunctor>
struct Moose::indirect_comparator< RandomAccessIterator, UserComparisonFunctor >

Definition at line 27 of file IndirectSort.h.

Constructor & Destructor Documentation

◆ indirect_comparator()

template<class RandomAccessIterator, class UserComparisonFunctor>
Moose::indirect_comparator< RandomAccessIterator, UserComparisonFunctor >::indirect_comparator ( RandomAccessIterator  r,
UserComparisonFunctor  c 
)
inline

Definition at line 30 of file IndirectSort.h.

32  {
33  }
RandomAccessIterator _random_access_iterator
Definition: IndirectSort.h:45
UserComparisonFunctor _user_comp
Definition: IndirectSort.h:46

Member Function Documentation

◆ operator()()

template<class RandomAccessIterator, class UserComparisonFunctor>
bool Moose::indirect_comparator< RandomAccessIterator, UserComparisonFunctor >::operator() ( size_t  lhs,
size_t  rhs 
)
inline

Definition at line 37 of file IndirectSort.h.

38  {
39  // Note: operator[] is defined for random access iterators!
41  }
RandomAccessIterator _random_access_iterator
Definition: IndirectSort.h:45
UserComparisonFunctor _user_comp
Definition: IndirectSort.h:46

Member Data Documentation

◆ _random_access_iterator

template<class RandomAccessIterator, class UserComparisonFunctor>
RandomAccessIterator Moose::indirect_comparator< RandomAccessIterator, UserComparisonFunctor >::_random_access_iterator
private

◆ _user_comp

template<class RandomAccessIterator, class UserComparisonFunctor>
UserComparisonFunctor Moose::indirect_comparator< RandomAccessIterator, UserComparisonFunctor >::_user_comp
private

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