PtrListOps.H File Reference

Functions to operate on Pointer Lists. More...

Include dependency graph for PtrListOps.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  less< T >
 A UPtrList compare binary predicate for normal sort. More...
 
struct  greater< T >
 A UPtrList compare binary predicate for reverse sort. More...
 

Namespaces

 Foam::PtrListOps
 Various utility functions to operate on Pointer Lists.
 
 Foam
 Namespace for OpenFOAM.
 

Functions

template<class T >
labelList sortedOrder (const UPtrList< T > &input)
 Return (stable) sort order for the list. More...
 
template<class T >
void sortedOrder (const UPtrList< T > &input, labelList &order)
 Generate (stable) sort order for the list. More...
 
template<class T , class ListComparePredicate >
void sortedOrder (const UPtrList< T > &input, labelList &order, const ListComparePredicate &comp)
 
template<class T >
void sort (UPtrList< T > &list)
 Inplace (stable) sorting of pointer list. More...
 
template<class T , class Compare >
void sort (UPtrList< T > &list, const Compare &comp)
 Inplace (stable) sorting of pointer list. More...
 
template<class T >
void shuffle (UPtrList< T > &list)
 Inplace shuffle of pointer list. More...
 
template<class ReturnType , class T , class AccessOp >
List< ReturnType > get (const UPtrList< T > &list, const AccessOp &aop)
 
template<class T , class UnaryMatchPredicate >
List< word > names (const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
 
template<class T >
List< word > names (const UPtrList< T > &list)
 
template<class T , class UnaryMatchPredicate >
label firstMatching (const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
 Find first list item with 'name()' that matches, -1 on failure. More...
 
template<class T , class UnaryMatchPredicate >
labelList findMatching (const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
 Extract list indices for all items with 'name()' that matches. More...
 

Detailed Description

Functions to operate on Pointer Lists.

Original source file PtrListOps.H

InNamespace Foam

Definition in file PtrListOps.H.