41 #ifndef UIndirectList_H
42 #define UIndirectList_H
87 inline bool empty()
const;
93 inline const T&
first()
const;
99 inline const T&
last()
const;
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A List with indirect addressing.
label size_type
The type that can represent the size of a UList.
UIndirectList(const UList< T > &, const UList< label > &)
Construct given the complete list and the addressing array.
label difference_type
The type that can represent the difference between any two.
T & first()
Return the first element of the list.
T value_type
Type of values the UList contains.
label rcIndex(const label i) const
Return the reverse circular index, i.e. the previous index.
label size() const
Return the number of elements in the list.
label fcIndex(const label i) const
Return the forward circular index, i.e. the next index.
bool empty() const
Return true if the list is empty (ie, size() is zero).
const UList< T > & completeList() const
Return the complete list.
T & operator[](const label)
Return non-const access to an element.
T & reference
Type that can be used for storing into.
void operator=(const UList< T > &)
Assignment to UList of addressed elements.
List< T > operator()() const
Return the addressed elements as a List.
T & last()
Return the last element of the list.
const T & const_reference
Type that can be used for storing into.
const List< label > & addressing() const
Return the list addressing.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)