Go to the documentation of this file.
53 template<
class T>
class PtrList;
54 template<
class T>
class SLPtrList;
78 inline label operator-
106 inline label operator-
116 Ostream&
operator<<(Ostream&,
const PtrList<T>&);
119 template<
class T>
class tmp;
157 template<
class CloneArg>
189 inline bool empty()
const;
195 inline const T&
first()
const;
201 inline const T&
last()
const;
317 friend label operator- <
T>
345 const T*
const*
ptr_;
361 typedef const T&
Tref;
392 friend label operator- <
T>
T value_type
Type of values the PtrList contains.
const_iterator operator+=(label)
bool operator>=(const const_iterator &) const
T & last()
Return reference to the last element of the list.
bool operator<(const iterator &) const
void append(T *)
Append an element at the end of the list.
A class for managing temporary objects.
iterator begin()
Return an iterator to begin traversing the PtrList.
PtrList()
Null Constructor.
Xfer< PtrList< T > > xfer()
Transfer contents to the Xfer container.
const_iterator(const T *const *)
Construct for a given PtrList entry.
iterator(T **)
Construct for a given PtrList entry.
bool operator<=(const const_iterator &) const
const_iterator operator--()
A simple container for copying or transferring objects of type <T>.
An STL-conforming iterator.
const T * operator()(const label) const
Return element const pointer.
iterator end()
Return an iterator to end traversing the PtrList.
bool operator<=(const iterator &) const
An STL-conforming const_iterator.
A helper class when constructing from an Istream or dictionary.
bool set(const label) const
Is element set.
Non-intrusive singly-linked pointer list.
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)....
bool empty() const
Return true if the PtrList is empty (ie, size() is zero).
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const_iterator cend() const
Return an const_iterator to end traversing the PtrList.
const T & operator[](const label) const
Return element const reference.
bool operator!=(const iterator &) const
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
void transfer(PtrList< T > &)
Transfer the contents of the argument PtrList into this PtrList.
bool operator>(const iterator &) const
Ostream & operator<<(Ostream &, const edgeMesh &)
void reorder(const labelUList &)
Reorders elements. Ordering does not have to be done in.
bool operator<(const const_iterator &) const
T & reference
Type that can be used for storing into PtrList::value_type objects.
void clear()
Clear the PtrList, i.e. set size to zero deleting all the.
iterator operator-=(label)
const_iterator operator-=(label)
const_iterator cbegin() const
Return an const_iterator to begin traversing the PtrList.
iterator operator+=(label)
bool operator==(const const_iterator &) const
void resize(const label)
Alias for setSize(const label)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
T & first()
Return reference to the first element of the list.
bool operator>=(const iterator &) const
const T & operator[](label)
void read(Istream &, const INew &inewt)
Read from Istream using given Istream constructor class.
const_iterator operator++()
bool operator>(const const_iterator &) const
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
label size() const
Return the number of elements in the PtrList.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
Istream & operator>>(Istream &, edgeMesh &)
const typedef T & const_reference
Type that can be used for storing into constant PtrList::value_type.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool operator!=(const const_iterator &) const
bool operator==(const iterator &) const
friend class const_iterator
PtrList< T > & operator=(const PtrList< T > &)
Assignment.