Go to the documentation of this file.
71 indices_(lst.indices())
90 return static_cast<List<T>&
>(*this);
102 lst[i] = this->operator[](indices_[i]);
117 lst[i] = this->operator[](indices_[i]);
127 return xferMoveTo<List<T> >(*this);
152 indices_ = rhs.indices();
void sort()
(stable) sort the list (if changed after construction time)
#define forAll(list, i)
Loop across all elements in list.
void reverseSort()
Reverse (stable) sort the list.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
void operator=(const UList< T > &)
Assignment from UList operator. Takes linear time.
void operator=(const T &)
Assignment of all entries to the given value.
A simple container for copying or transferring objects of type <T>.
void sortedOrder(const UList< T > &, labelList &order)
Generate the (stable) sort order for the 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.
SortableList()
Null constructor, sort later (eg, after assignment or transfer)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
List< T > & shrink()
Clear the indices and return a reference to the underlying List.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void clear()
Clear the list, i.e. set size to zero.
Various functions to operate on Lists.
void clear()
Clear the list and the indices.
void operator=(const T &)
Assignment of all entries to the given value.
Xfer< List< T > > xfer()
Transfer contents to the Xfer container as a plain List.