SOFA API  1c8b807d
Open source framework for multi-physics simuation
sofa::helper::CompareIndirect< Container > Struct Template Reference

#include <SortedPermutation.h>

Detailed Description

template<class Container>
struct sofa::helper::CompareIndirect< Container >

Comparison operator used to compute sorted permutations of a container. The comparison operator of two indices compares the corresponding entries of the container. The container must allow random access.

Public Attributes

const Container & values
 

Public Member Functions

 CompareIndirect (const Container &v)
 
bool operator() (unsigned i, unsigned j) const
 

Attribute details

◆ values

template<class Container >
const Container& sofa::helper::CompareIndirect< Container >::values

Constructor details

◆ CompareIndirect()

template<class Container >
sofa::helper::CompareIndirect< Container >::CompareIndirect ( const Container &  v)
inline

Function details

◆ operator()()

template<class Container >
bool sofa::helper::CompareIndirect< Container >::operator() ( unsigned  i,
unsigned  j 
) const
inline