Go to the documentation of this file.
72 indices_(lst.indices())
88 indices_.setSize(newSize);
106 tmpValues[i] = this->operator[](indices_[i]);
113 template <
class Type>
118 indices_.begin()+
start,
126 template <
class Type>
140 tmpValues[i] = this->operator[](indices_[i]);
149 template <
class Type>
label ListType::const_reference val
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
SortableListEFA(const List< Type > &)
Construct from List, sorting the elements. Starts with indices set.
void stableSort()
Sort the list (if changed after construction time)
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
static bool less(const vector &x, const vector &y)
To compare normals.
Less function class used by the sort function.
void setSize(const label)
Size the list. If grow can cause undefined indices (until next sort)
#define forAll(list, i)
Loop across all elements in list.
void stableSort(UList< T > &a)
A list that is sorted upon construction or when explicitly requested with the sort() method.
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 transfer(List< T > &list)
void operator=(const UList< T > &a)
Assignment to UList operator. Takes linear time.
const labelList & indices() const
Return the list of sorted indices. Updated every sort.
void operator=(const SortableListEFA< Type > &)
void partialSort(int M, int start)
Partial sort the list (if changed after construction time)
label ListType::const_reference const label start
void sort()
Sort the list (if changed after construction time)
void setSize(const label newSize)
Alias for resize(const label)