35 indices_(values.size())
56 List<Type>(size, val),
68 indices_(lst.indices())
78 indices_.setSize(newSize);
96 tmpValues[i] = this->operator[](indices_[i]);
103 template <
class Type>
121 template <
class Type>
135 tmpValues[i] = this->operator[](indices_[i]);
144 template <
class Type>
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
#define forAll(list, i)
Loop across all elements in list.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
void operator=(const UList< T > &)
Assignment to UList operator. Takes linear time.
void setSize(const label)
Reset size of List.
Less function class used by the sort function.
A list that is sorted upon construction or when explicitly requested with the sort() method.
void stableSort()
Sort the list (if changed after construction time)
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 sort()
Sort the list (if changed after construction time)
void operator=(const SortableListDRGEP< Type > &)
SortableListDRGEP(const List< Type > &)
Construct from List, sorting the elements. Starts with indices set.
void setSize(const label)
Size the list. If grow can cause undefined indices (until next sort)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static bool less(const vector &x, const vector &y)
To compare normals.
void stableSort(UList< T > &)