greater< T > Struct Template Reference

A UPtrList compare binary predicate for reverse sort. More...

Public Member Functions

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

Public Attributes

const UPtrList< T > & values

Detailed Description

template<class T>
struct Foam::PtrListOps::greater< T >

A UPtrList compare binary predicate for reverse sort.

Null entries sort to the end

Definition at line 121 of file PtrListOps.H.

Constructor & Destructor Documentation

◆ greater()

greater ( const UPtrList< T > &  list)

Definition at line 125 of file PtrListOps.H.

Member Function Documentation

◆ operator()()

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

Definition at line 130 of file PtrListOps.H.

References Foam::constant::physicoChemical::b, Foam::T(), and greater< T >::values.

Here is the call graph for this function:

Member Data Documentation

◆ values

const UPtrList<T>& values

Definition at line 123 of file PtrListOps.H.

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

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