41 #ifndef UIndirectList_H
42 #define UIndirectList_H
52 template<
class T>
class UIndirectList;
91 inline bool empty()
const;
97 inline const T&
first()
const;
103 inline const T&
last()
const;
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An STL-conforming const_iterator.
bool operator!=(const const_iterator &) const
const_iterator(const UList< T > &, const UList< label >::const_iterator &)
Construct for a given UList and addressing iterator.
const T & operator*() const
const_iterator operator-=(const label)
bool operator>(const const_iterator &) const
bool operator<=(const const_iterator &) const
const T & operator[](const label)
bool operator>=(const const_iterator &) const
std::random_access_iterator_tag iterator_category
const_iterator operator++()
bool operator==(const const_iterator &) const
bool operator<(const const_iterator &) const
const_iterator operator-(const label) const
const_iterator operator+=(const label)
const_iterator operator+(const label) const
const_iterator operator--()
const T & operator()() const
An STL-conforming iterator.
iterator operator-(const label) const
bool operator!=(const iterator &) const
iterator operator+(const label) const
bool operator>(const iterator &) const
iterator(UList< T > &, const UList< label >::const_iterator &)
Construct for a given UList and addressing iterator.
std::random_access_iterator_tag iterator_category
iterator operator+=(const label)
T & operator[](const label)
bool operator==(const iterator &) const
bool operator<(const iterator &) const
iterator operator-=(const label)
bool operator<=(const iterator &) const
bool operator>=(const iterator &) const
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.
const_iterator cbegin() const
Return an const_iterator to begin traversing the UIndirectList.
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.
const_iterator cend() const
Return an const_iterator to end traversing the UIndirectList.
bool empty() const
Return true if the list is empty (ie, size() is zero).
const UList< T > & completeList() const
Return the complete list.
bool operator==(const UIndirectList< T > &) const
Equality comparison. Compares element-by-element.
T & operator[](const label)
Return non-const access to an element.
T & reference
Type that can be used for storing into.
iterator begin()
Return an iterator to begin traversing the UIndirectList.
bool operator!=(const UIndirectList< T > &) const
Inequality comparison. Compares element-by-element.
void operator=(const UList< T > &)
Assignment to UList of addressed elements.
List< T > operator()() const
Return the addressed elements as a List.
iterator end()
Return an iterator to end traversing the UIndirectList.
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(GeometricField< Type, GeoMesh, PrimitiveField1 > &gf, const GeometricField< Type, GeoMesh, PrimitiveField2 > &gf1)
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)