34 indices_(values.size())
56 List<Type>(size, val),
111 template <
class Type>
116 indices_.
begin()+start,
124 template <
class Type>
147 template <
class Type>
#define forAll(list, i)
Loop across all elements in list.
Type & operator[](const label)
Return element of UList.
SortableListEFA(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.
const labelList & indices() const
Return the list of sorted indices. Updated every sort.
void operator=(const SortableListEFA< Type > &)
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.
Less function class used by the sort function.
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 partialSort(int M, int start)
Partial sort the list (if changed after construction time)
void stableSort()
Sort the list (if changed after construction time)
void stableSort(UList< T > &)
label size() const
Return the number of elements in the UList.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
void sort()
Sort the list (if changed after construction time)