A list that is sorted upon construction or when explicitly requested with the sort() method. More...
Public Member Functions | |
constexpr | SortableList () noexcept |
SortableList (const label size) | |
SortableList (const label size, const Foam::zero) | |
SortableList (const label size, const T &val) | |
SortableList (const SortableList< T > &lst) | |
SortableList (SortableList< T > &&lst) | |
SortableList (const UList< T > &values) | |
SortableList (List< T > &&values) | |
SortableList (std::initializer_list< T > values) | |
const labelList & | indices () const |
labelList & | indices () |
void | clear () |
List< T > & | shrink () |
void | sort () |
void | reverseSort () |
void | partialSort (label n, label start=0) |
void | partialReverseSort (label n, label start=0) |
void | swap (SortableList< T > &other) |
void | operator= (const T &val) |
void | operator= (const UList< T > &lst) |
void | operator= (const SortableList< T > &lst) |
void | operator= (List< T > &&lst) |
void | operator= (SortableList< T > &&lst) |
void | operator= (std::initializer_list< T > lst) |
A list that is sorted upon construction or when explicitly requested with the sort() method.
Uses the std::stable_sort() algorithm.
|
inlineconstexprnoexcept |
|
inlineexplicit |
Definition at line 35 of file SortableList.C.
|
inline |
Definition at line 42 of file SortableList.C.
|
inline |
Definition at line 49 of file SortableList.C.
|
inline |
Definition at line 56 of file SortableList.C.
|
inline |
Definition at line 64 of file SortableList.C.
|
inlineexplicit |
Definition at line 72 of file SortableList.C.
References SortableList::sort().
|
inline |
Definition at line 81 of file SortableList.C.
References SortableList::sort().
|
inline |
Definition at line 90 of file SortableList.C.
References SortableList::sort().
|
inline |
Definition at line 104 of file SortableList.H.
Referenced by binaryTree< CompType, ThermoType >::balance(), primitiveMesh::checkPointNearness(), primitiveMesh::checkUpperTriangular(), commSchedule::commSchedule(), geomCellLooper::cut(), searchableBox::findNearestOnEdge(), triangleFuncs::intersect(), Foam::matchPoints(), SortableList::operator=(), SprayCloud::penetration(), boundaryMesh::readTriSurface(), faceCollapser::setRefinement(), ParSortableList< Type >::sort(), and PatchTools::sortedEdgeFaces().
|
inline |
Definition at line 110 of file SortableList.H.
void clear | ( | ) |
Definition at line 101 of file SortableList.C.
References List::clear().
Foam::List< T > & shrink | ( | ) |
Definition at line 109 of file SortableList.C.
References List::clear().
Referenced by DynamicList< Foam::FixedList< scalar, 3 > >::transfer(), and List< vectorField >::transfer().
void sort | ( | ) |
Definition at line 117 of file SortableList.C.
References Foam::sortedOrder(), and List::transfer().
Referenced by binaryTree< CompType, ThermoType >::balance(), primitiveMesh::checkUpperTriangular(), geomCellLooper::cut(), searchableBox::findNearestOnEdge(), triangleFuncs::intersect(), SprayCloud::penetration(), boundaryMesh::readTriSurface(), faceCollapser::setRefinement(), SortableList::SortableList(), and PatchTools::sortedEdgeFaces().
void reverseSort | ( | ) |
Definition at line 127 of file SortableList.C.
References Foam::sortedOrder(), and List::transfer().
void partialSort | ( | label | n, |
label | start = 0 |
||
) |
Definition at line 137 of file SortableList.C.
References Foam::ListOps::identity(), n, and List::transfer().
void partialReverseSort | ( | label | n, |
label | start = 0 |
||
) |
Definition at line 157 of file SortableList.C.
References Foam::ListOps::identity(), n, and List::transfer().
|
inline |
Definition at line 177 of file SortableList.C.
|
inline |
Definition at line 192 of file SortableList.C.
References UList::operator=().
Definition at line 200 of file SortableList.C.
References List::operator=().
|
inline |
Definition at line 208 of file SortableList.C.
References SortableList::indices(), and List::operator=().
Definition at line 221 of file SortableList.C.
References List::transfer().
|
inline |
Definition at line 229 of file SortableList.C.
References clear().
|
inline |
Definition at line 242 of file SortableList.C.
References List::operator=(), and Foam::sort().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.