Go to the documentation of this file.
41 #ifndef UIndirectList_H
42 #define UIndirectList_H
52 template<
class T>
class UIndirectList;
53 template<
class T> Ostream&
operator<<(Ostream&,
const UIndirectList<T>&);
84 inline bool empty()
const;
90 inline const T&
first()
const;
96 inline const T&
last()
const;
const typedef T & const_reference
Type that can be used for storing into.
label size_type
The type that can represent the size of a UList.
label difference_type
The type that can represent the difference between any two.
label size() const
Return the number of elements in the list.
T value_type
Type of values the UList contains.
void operator=(const UList< T > &)
Assignment from UList of addressed elements.
UIndirectList(const UList< T > &, const labelUList &)
Construct given the complete list and the addressing array.
T & last()
Return the last element of 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.
List< T > operator()() const
Return the addressed elements as a List.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Ostream & operator<<(Ostream &, const edgeMesh &)
T & reference
Type that can be used for storing into.
UList< T > & completeList_
const UList< T > & completeList() const
Return the complete list.
const List< label > & addressing() const
Return the list addressing.
const labelUList & addressing_
T & first()
Return the first element of the list.
T & operator[](const label)
Return non-const access to an element.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool empty() const
Return true if the list is empty (ie, size() is zero).