Classes | Functions
Foam::PtrListOps Namespace Reference

Various utility functions to operate on Pointer Lists. More...

Classes

struct  greater
 
struct  less
 

Functions

template<class ReturnType , class T , class AccessOp >
List< ReturnType > get (const UPtrList< T > &list, const AccessOp &aop)
 
template<class T , class UnaryMatchPredicate >
List< wordnames (const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
 
template<class T >
List< wordnames (const UPtrList< T > &list)
 
template<class T , class UnaryMatchPredicate >
label firstMatching (const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
 
template<class T , class UnaryMatchPredicate >
labelList findMatching (const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
 

Detailed Description

Various utility functions to operate on Pointer Lists.

Source files

Function Documentation

◆ get()

List<ReturnType> Foam::PtrListOps::get ( const UPtrList< T > &  list,
const AccessOp &  aop 
)

◆ names() [1/2]

List<word> Foam::PtrListOps::names ( const UPtrList< T > &  list,
const UnaryMatchPredicate &  matcher 
)

Referenced by fileFieldSelection::addFromFile(), fieldSelection::addRegistered(), Switch::c_str(), searchableSurfaces::checkClosed(), searchableSurfaces::checkIntersection(), searchableSurfaces::checkNormalOrientation(), ZoneMesh< cellZone, polyMesh >::checkParallelSync(), polyBoundaryMesh::checkParallelSync(), searchableSurfaces::checkQuality(), searchableSurfaces::checkSizes(), cellTable::combine(), profileModelList::connectBlades(), Foam::filteredName(), polyTopoChanger::findModifierID(), polyBoundaryMesh::findPatchID(), ZoneMesh< cellZone, polyMesh >::findZoneID(), Foam::FOAM_DEPRECATED_FOR(), MRFZoneList::getFromName(), if(), KinematicSurfaceFilm< CloudType >::initFilmModels(), fluxSummary::initialiseCellZoneAndDirection(), fluxSummary::initialiseFaceZone(), fluxSummary::initialiseFaceZoneAndDirection(), fluxSummary::initialiseSurface(), fluxSummary::initialiseSurfaceAndDirection(), SurfaceFilmModel< CloudType >::inject(), coordinateSystems::lookup(), Switch::name(), coordinateSystems::names(), ZoneMesh< cellZone, polyMesh >::names(), objectRegistry::names(), IOobjectList::names(), combustionModel::New(), chemistryTabulationMethod< CompType, ThermoType >::New(), chemistryReductionMethod< CompType, ThermoType >::New(), ZoneMesh< cellZone, polyMesh >::operator[](), polyBoundaryMesh::operator[](), boundaryMesh::patchNames(), polyBoundaryMesh::patchSet(), polyMeshAdder::procPatchPairs(), projectCurveEdge::projectCurveEdge(), projectEdge::projectEdge(), projectVertex::projectVertex(), AC3DsurfaceFormat< Face >::read(), NASsurfaceFormat< Face >::read(), cloudInfo::read(), STLsurfaceFormat< Face >::read(), triSurfaceLoader::readDir(), fieldSelection::resetFieldFilters(), logFiles::resetNames(), fieldSelection::selectionNames(), UnsortedMeshedSurface< Face >::setZones(), ZoneMesh< cellZone, polyMesh >::sortedNames(), IOobjectList::sortedNames(), Switch::str(), mappedPatchBase::subRegistry(), pointToPointPlanarInterpolation::timeNames(), uniformInterpolatedDisplacementPointPatchVectorField::uniformInterpolatedDisplacementPointPatchVectorField(), sampledFaceZone::update(), ZoneMesh< cellZone, polyMesh >::updateMetaData(), polyBoundaryMesh::whichPatch(), cloudInfo::write(), multiFieldValue::write(), and searchableSurfaces::writeStats().

◆ names() [2/2]

List<word> Foam::PtrListOps::names ( const UPtrList< T > &  list)

◆ firstMatching()

label Foam::PtrListOps::firstMatching ( const UPtrList< T > &  list,
const UnaryMatchPredicate &  matcher 
)

◆ findMatching()

labelList Foam::PtrListOps::findMatching ( const UPtrList< T > &  list,
const UnaryMatchPredicate &  matcher 
)