Go to the documentation of this file.
78 inline label operator-
134 inline bool empty()
const;
140 inline const T&
first()
const;
146 inline const T&
last()
const;
248 friend label operator- <
T>
bool empty() const
Return true if the UPtrList is empty (ie, size() is zero).
T & first()
Return reference to the first element of the list.
iterator begin()
Return an iterator to begin traversing the UPtrList.
void clear()
Clear the UPtrList, i.e. set size to zero.
T & reference
Type that can be used for storing into UPtrList::value_type objects.
UPtrList()
Null Constructor.
bool operator!=(const iterator &) const
void setSize(const label)
Reset size of UPtrList. This can only be used to set the size.
A simple container for copying or transferring objects of type <T>.
T value_type
Type of values the UPtrList contains.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Ostream & operator<<(Ostream &, const edgeMesh &)
void reorder(const labelUList &)
Reorders elements. Ordering does not have to be done in.
iterator(T **)
Construct for a given UPtrList entry.
bool operator>(const iterator &) const
void resize(const label)
Reset size of UPtrList. This can only be used to set the size.
iterator end()
Return an iterator to end traversing the UPtrList.
const T & operator[](const label) const
Return element const reference.
T & last()
Return reference to the last element of the list.
bool set(const label) const
Is element set.
bool operator<(const iterator &) const
iterator operator-=(label)
Istream & operator>>(Istream &, edgeMesh &)
const T * operator()(const label) const
Return element const pointer.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Xfer< UPtrList< T > > xfer()
Transfer contents to the Xfer container.
iterator operator+=(label)
bool operator<=(const iterator &) const
const typedef T & const_reference
Type that can be used for storing into constant UPtrList::value_type.
bool operator>=(const iterator &) const
void transfer(UPtrList< T > &)
Transfer the contents of the argument UPtrList into this.
label size() const
Return the number of elements in the UPtrList.
bool operator==(const iterator &) const