natural_sort::greater< T > Struct Template Reference

A list compare binary predicate for reverse natural sort. More...

Public Member Functions

 greater (const UList< T > &list)
 
bool operator() (const label a, const label b) const
 

Public Attributes

const UList< T > & values
 

Detailed Description

template<class T>
struct Foam::stringOps::natural_sort::greater< T >

A list compare binary predicate for reverse natural sort.

Definition at line 112 of file stringOpsSort.H.

Constructor & Destructor Documentation

◆ greater()

greater ( const UList< T > &  list)
inline

Definition at line 116 of file stringOpsSort.H.

Member Function Documentation

◆ operator()()

bool operator() ( const label  a,
const label  b 
) const
inline

Definition at line 121 of file stringOpsSort.H.

References b, natural_sort::compare(), and natural_sort::greater< T >::values.

Here is the call graph for this function:

Member Data Documentation

◆ values

const UList<T>& values

Definition at line 114 of file stringOpsSort.H.

Referenced by natural_sort::greater< T >::operator()().


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