52 template<
class T>
class PtrList;
55 template<
class T>
class UPtrList;
101 inline bool empty()
const;
107 inline const T&
first()
const;
113 inline const T&
last()
const;
258 const T*
const* ptr_;
274 typedef const T&
Tref;
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
An STL-conforming const_iterator.
const_iterator operator-(const label) const
bool operator!=(const const_iterator &) const
bool operator>(const const_iterator &) const
bool operator<=(const const_iterator &) const
const T & operator[](const label)
bool operator>=(const const_iterator &) const
const_iterator operator--()
bool operator==(const const_iterator &) const
const_iterator operator+=(const label)
bool operator<(const const_iterator &) const
const_iterator(const T *const *)
Construct for a given UPtrList entry.
const_iterator operator+(const label) const
const_iterator operator-=(const label)
const_iterator operator++()
bool operator!=(const iterator &) const
bool operator>(const iterator &) const
iterator operator-(const label) const
T & operator[](const label)
bool operator==(const iterator &) const
bool operator<(const iterator &) const
iterator operator+(const label) const
iterator operator-=(const label)
bool operator<=(const iterator &) const
bool operator>=(const iterator &) const
iterator operator+=(const label)
iterator(T **)
Construct for a given UPtrList entry.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
iterator begin()
Return an iterator to begin traversing the UPtrList.
UPtrList< T2 > convert()
Convert to list of different pointer type.
T & first()
Return reference to the first element of the list.
T value_type
Type of values the UPtrList contains.
bool set(const label) const
Is element set.
void transfer(UPtrList< T > &)
Transfer the contents of the argument UPtrList into this.
iterator end()
Return an iterator to end traversing the UPtrList.
label size() const
Return the number of elements in the UPtrList.
void resize(const label)
Reset size of UPtrList. This can only be used to set the size.
bool empty() const
Return true if the UPtrList is empty (ie, size() is zero)
const T & operator[](const label) const
Return element const reference.
T & reference
Type that can be used for storing into UPtrList::value_type objects.
UPtrList()
Null Constructor.
const_iterator cbegin() const
Return an const_iterator to begin traversing the UPtrList.
const_iterator cend() const
Return an const_iterator to end traversing the UPtrList.
void reorder(const labelUList &oldToNew)
Reorders elements. Ordering does not have to be done in.
void shuffle(const labelUList &newToOld)
Reorders elements. Ordering does not have to be done in.
void clear()
Clear the UPtrList, i.e. set size to zero.
void append(T *)
Append an element at the end of the list.
const T * operator()(const label) const
Return element const pointer.
void setSize(const label)
Reset size of UPtrList. This can only be used to set the size.
T & last()
Return reference to the last element of the list.
const T & const_reference
Type that can be used for storing into constant UPtrList::value_type.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
Istream & operator>>(Istream &, pistonPointEdgeData &)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)