An indirect list with addressing based on sorting. The list is sorted upon construction or when explicitly requested. More...
Public Member Functions | |
SortList (const UList< T > &values) | |
template<class Compare > | |
SortList (const UList< T > &values, const Compare &comp) | |
const labelUList & | indices () const |
labelList & | indices () |
void | reverse () |
void | reset () |
template<class Compare > | |
void | sort (const Compare &comp) |
void | sort () |
void | reverseSort () |
![]() | |
IndirectList (const UList< T > &values, const labelUList &addr) | |
IndirectList (const UList< T > &values, labelList &&addr) | |
IndirectList (const UList< T > &values, const Foam::zero) | |
IndirectList (const IndirectList< T > &list) | |
IndirectList (IndirectList< T > &&list) | |
IndirectList (const UIndirectList< T > &list) | |
void | operator= (const IndirectList< T > &rhs) |
const Addr & | addressing () const noexcept |
Addr & | addressing () noexcept |
![]() | |
UIndirectList (const UList< T > &values, const labelUList &addr) | |
UIndirectList (const UIndirectList< T > &list) | |
void | operator= (const UIndirectList< T > &rhs) |
An indirect list with addressing based on sorting. The list is sorted upon construction or when explicitly requested.
Uses the std::stable_sort() algorithm.
Definition at line 50 of file SortList.H.
Definition at line 26 of file SortListI.H.
References SortList< T >::sort().
Definition at line 36 of file SortListI.H.
|
inline |
Definition at line 47 of file SortListI.H.
|
inline |
|
inline |
Definition at line 61 of file SortListI.H.
References Foam::reverse().
|
inline |
Definition at line 68 of file SortListI.H.
References Foam::ListOps::identity(), List::resize(), and Foam::HashTableOps::values().
|
inline |
Definition at line 80 of file SortListI.H.
References Foam::constant::physicoChemical::b, Foam::ListOps::identity(), List::resize(), UList::size(), and Foam::HashTableOps::values().
|
inline |
Definition at line 101 of file SortListI.H.
References Foam::constant::physicoChemical::b, Foam::ListOps::identity(), List::resize(), UList::size(), and Foam::HashTableOps::values().
Referenced by SortList< T >::SortList().
|
inline |
Definition at line 123 of file SortListI.H.
References Foam::constant::physicoChemical::b, Foam::ListOps::identity(), List::resize(), UList::size(), and Foam::HashTableOps::values().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.