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