UPtrList< T >::greater Struct Reference

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

Public Member Functions

 greater (const UPtrList< T > &list)
 
bool operator() (const label ai, const label bi) const
 Compare dereferenced pointer locations for reverse sort. More...
 

Public Attributes

const UPtrList< T > & values
 

Detailed Description

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

A UPtrList compare binary predicate for reverse sort order.

Null entries (if any) sort to the end.

Definition at line 158 of file UPtrList.H.

Constructor & Destructor Documentation

◆ greater()

greater ( const UPtrList< T > &  list)
inline

Definition at line 162 of file UPtrList.H.

Member Function Documentation

◆ operator()()

bool operator() ( const label  ai,
const label  bi 
) const
inline

Compare dereferenced pointer locations for reverse sort.

Definition at line 168 of file UPtrList.H.

References b, T, and UPtrList< T >::greater::values.

Member Data Documentation

◆ values

const UPtrList<T>& values

Definition at line 160 of file UPtrList.H.

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


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