70 indices_(lst.indices())
80 indices_.setSize(newSize);
94 List<Type> tmpValues(this->size());
98 tmpValues[i] = this->operator[](indices_[i]);
105 template <
class Type>
123 template <
class Type>
133 List<Type> tmpValues(this->size());
137 tmpValues[i] = this->operator[](indices_[i]);
146 template <
class Type>
void sort()
Sort the list (if changed after construction time)
void transfer(List< Type > &list)
Transfer the contents of the argument List into this list and annul the argument list.
SortableListDRGEP(const List< Type > &)
Construct from List, sorting the elements. Starts with indices set.
void stableSort(UList< T > &list)
Stable sort the list.
A list that is sorted upon construction or when explicitly requested with the sort() method...
static bool less(const vector &x, const vector &y)
To compare normals.
#define forAll(list, i)
Loop across all elements in list.
points setSize(newPointi)
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
void sort(UList< T > &list)
Sort the list.
void setSize(const label)
Size the list. If grow can cause undefined indices (until next sort)
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()
Sort the list (if changed after construction time)