52 template<
class T>
class PtrList;
65 inline typename UPtrList<T>::iterator
operator+
68 const typename UPtrList<T>::iterator&
72 inline typename UPtrList<T>::iterator
operator-
74 const typename UPtrList<T>::iterator&,
79 inline label
operator-
81 const typename UPtrList<T>::iterator&,
82 const typename UPtrList<T>::iterator&
93 inline typename UPtrList<T>::const_iterator
operator+
96 const typename UPtrList<T>::const_iterator&
100 inline typename UPtrList<T>::const_iterator
operator-
102 const typename UPtrList<T>::const_iterator&,
107 inline label
operator-
109 const typename UPtrList<T>::const_iterator&,
110 const typename UPtrList<T>::const_iterator&
117 Ostream& operator<<(Ostream&, const UPtrList<T>&);
160 inline label
size()
const;
163 inline bool empty()
const;
169 inline const T&
first()
const;
175 inline const T&
last()
const;
188 inline void resize(
const label);
201 inline bool set(
const label)
const;
205 inline T*
set(
const label,
T*);
271 friend iterator
operator+ <
T>(
label,
const iterator&);
275 friend iterator
operator- <
T>(
const iterator&,
label);
277 friend label
operator- <
T>
285 inline bool operator<(
const iterator&)
const;
286 inline bool operator>(
const iterator&)
const;
288 inline bool operator<=(
const iterator&)
const;
289 inline bool operator>=(
const iterator&)
const;
305 const T*
const* ptr_;
321 typedef const T&
Tref;
338 friend const_iterator
operator+ <
T>
341 const const_iterator&
346 friend const_iterator
operator- <
T>
348 const const_iterator&,
352 friend label
operator- <
T>
354 const const_iterator&,
355 const const_iterator&
360 inline bool operator<(
const const_iterator&)
const;
361 inline bool operator>(
const const_iterator&)
const;
363 inline bool operator<=(
const const_iterator&)
const;
364 inline bool operator>=(
const const_iterator&)
const;
A simple container for copying or transferring objects of type <T>.
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.
Xfer< UPtrList< T > > xfer()
Transfer contents to the Xfer container.
bool operator==(const iterator &) const
iterator(T **)
Construct for a given UPtrList entry.
T & reference
Type that can be used for storing into UPtrList::value_type objects.
bool operator<=(const iterator &) const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
UPtrList()
Null Constructor.
bool operator>(const iterator &) const
iterator operator+=(label)
iterator end()
Return an iterator to end traversing the UPtrList.
iterator operator-=(label)
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
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 value_type
Type of values the UPtrList contains.
const T & const_reference
Type that can be used for storing into constant UPtrList::value_type.
Istream & operator>>(Istream &, directionInfo &)
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
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...
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
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 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...
const_iterator cend() const
Return an const_iterator to end traversing the UPtrList.
const_iterator cbegin() const
Return an const_iterator to begin traversing the UPtrList.
void transfer(UPtrList< T > &)
Transfer the contents of the argument UPtrList into this.
void clear()
Clear the UPtrList, i.e. set size to zero.
void reorder(const labelUList &)
Reorders elements. Ordering does not have to be done in.
label size() const
Return the number of elements in the UPtrList.
T & first()
Return reference to the first element of the list.