SOFA API  99934cbc
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

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

Constructor details

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

Function details

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