35 indices_(values.size())
103 template <
class Type>
121 template <
class Type>
144 template <
class Type>
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void sort()
Sort the list (if changed after construction time)
Type & operator[](const label)
Return element of UList.
SortableListDRGEP(const List< Type > &)
Construct from List, sorting the elements. Starts with indices set.
A list that is sorted upon construction or when explicitly requested with the sort() method...
iterator end()
Return an iterator to end traversing the UList.
static bool less(const vector &x, const vector &y)
To compare normals.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
iterator begin()
Return an iterator to begin traversing the UList.
void setSize(const label)
Size the list. If grow can cause undefined indices (until next sort)
void operator=(const UList< T > &)
Assignment to UList operator. Takes linear time.
void setSize(const label)
Reset size of List.
void operator=(const SortableListDRGEP< Type > &)
const labelList & indices() const
Return the list of sorted indices. Updated every sort.
void partialSort(int M)
Partial sort the list (if changed after construction time)
void stableSort(UList< T > &)
label size() const
Return the number of elements in the UList.
void stableSort()
Sort the list (if changed after construction time)
void transfer(List< T > &)
Transfer the contents of the argument List into this list.