Loading...
Searching...
No Matches
UPtrList< T >::value_compare< Compare > Struct Template Reference

A wrapper for a binary comparison of values that interjects pointer dereferencing with null pointer guards. More...

#include <UPtrList.H>

Public Member Functions

 value_compare (const Compare &cmp)
bool operator() (const T *const a, const T *const b) const
 Compare dereferenced pointers.

Public Attributes

const Compare & comp

Detailed Description

template<class T>
template<class Compare>
struct Foam::UPtrList< T >::value_compare< Compare >

A wrapper for a binary comparison of values that interjects pointer dereferencing with null pointer guards.

It will also sort any null pointers to the end (eg, rubbish that can be truncated)

Definition at line 173 of file UPtrList.H.

Constructor & Destructor Documentation

◆ value_compare()

template<class T>
template<class Compare>
value_compare ( const Compare & cmp)
inline

Definition at line 177 of file UPtrList.H.

References comp.

Member Function Documentation

◆ operator()()

template<class T>
template<class Compare>
bool operator() ( const T *const a,
const T *const b ) const
inline

Compare dereferenced pointers.

Definition at line 185 of file UPtrList.H.

References b, comp, and Foam::T().

Here is the call graph for this function:

Member Data Documentation

◆ comp

template<class T>
template<class Compare>
const Compare& comp

Definition at line 175 of file UPtrList.H.

Referenced by operator()(), and value_compare().


The documentation for this struct was generated from the following file:
  • src/OpenFOAM/containers/PtrLists/UPtrList/UPtrList.H