Go to the documentation of this file.
56 template<
class T>
class List;
57 template<
class T>
class SubList;
60 template<
class T>
class UList;
61 template<
class T> Ostream&
operator<<(Ostream&,
const UList<T>&);
62 template<
class T> Istream&
operator>>(Istream&, UList<T>&);
95 inline static const UList<T>&
null();
168 inline const T*
cdata()
const;
179 inline const T&
first()
const;
185 inline const T&
last()
const;
317 inline bool empty()
const;
367 template<
class T,
class Cmp>
373 template<
class T,
class Cmp>
407 #define forAll(list, i) \
408 for (Foam::label i=0; i<(list).size(); i++)
419 #define forAllReverse(list, i) \
420 for (Foam::label i=(list).size()-1; i>=0; i--)
432 #define forAllIter(Container,container,iter) \
435 Container::iterator iter = (container).begin(); \
436 iter != (container).end(); \
450 #define forAllConstIter(Container,container,iter) \
453 Container::const_iterator iter = (container).begin(); \
454 iter != (container).end(); \
const_reverse_iterator crbegin() const
Return const_reverse_iterator to begin reverse traversing the UList.
const_iterator cbegin() const
Return const_iterator to begin traversing the constant UList.
void swap(UList< T > &)
Swap two ULists of the same type in constant time.
A class for handling words, derived from string.
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
T & operator[](const label)
Return element of UList.
const_iterator cend() const
Return const_iterator to end traversing the constant UList.
T & first()
Return the first element of the list.
const typedef T & const_reference
Type that can be used for storing into.
#define forAll(list, i)
Loop across all elements in list.
bool operator<=(const UList< T > &) const
Return true if !(a > b). Takes linear time.
label max_size() const
Return size of the largest possible UList.
A List obtained as a section of another List.
T * data()
Return a pointer to the first data element,.
bool operator>=(const UList< T > &) const
Return true if !(a < b). Takes linear time.
T *__restrict__ v_
Vector of values of type T.
void checkSize(const label size) const
Check size is within valid range (0 ... size).
const typedef T * const_reverse_iterator
Reverse iterator for reverse traversal of constant UList.
label size_type
The type that can represent the size of a UList.
void shuffle(UList< T > &)
label rcIndex(const label i) const
Return the reverse circular index, i.e. the previous index.
reverse_iterator rbegin()
Return reverse_iterator to begin reverse traversing the UList.
iterator begin()
Return an iterator to begin traversing the UList.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
const_reverse_iterator crend() const
Return const_reverse_iterator to end reverse traversing the UList.
void checkStart(const label start) const
Check start is within valid range (0 ... size-1).
void stableSort(UList< T > &)
bool operator!=(const UList< T > &) const
The opposite of the equality operation. Takes linear time.
T * reverse_iterator
Reverse iterator for reverse traversal of UList.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
T * iterator
Random access iterator for traversing UList.
T & last()
Return the last element of the list.
void assign(const UList< T > &)
Assign elements to those from UList.
T & reference
Type that can be used for storing into.
bool operator()(const label a, const label b)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
reverse_iterator rend()
Return reverse_iterator to end reverse traversing the UList.
Ostream & operator<<(Ostream &, const edgeMesh &)
bool operator==(const UList< T > &) const
Equality operation on ULists of the same type.
#define forAllReverse(list, i)
Reverse loop across all elements in list.
bool operator<(const UList< T > &) const
Compare two ULists lexicographically. Takes linear time.
Less function class that can be used for sorting.
bool operator>(const UList< T > &) const
Compare two ULists lexicographically. Takes linear time.
label size_
Number of elements in UList.
const UList< T > & values_
greater(const UList< T > &values)
label difference_type
The type that can represent the difference between any two.
label fcIndex(const label i) const
Return the forward circular index, i.e. the next index.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Istream & operator>>(Istream &, edgeMesh &)
void writeEntry(Ostream &) const
Write the UList as a dictionary entry.
std::streamsize byteSize() const
Return the binary size in number of characters of the UList.
const T * cdata() const
Return a const pointer to the first data element,.
const typedef T * const_iterator
Random access iterator for traversing UList.
bool empty() const
Return true if the UList is empty (ie, size() is zero).
const UList< T > & values_
Greater function class that can be used for sorting.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool operator()(const label a, const label b)
UList< label > labelUList
iterator end()
Return an iterator to end traversing the UList.
label size() const
Return the number of elements in the UList.
void checkIndex(const label i) const
Check index i is within valid range (0 ... size-1).
T value_type
Type of values the UList contains.
void operator=(const T &)
Assignment of all entries to the given value.
less(const UList< T > &values)
void reverse(UList< T > &, const label n)