45 return this->operator[](0);
52 return this->operator[](0);
59 return this->operator[](this->size()-1);
66 return this->operator[](this->size()-1);
80 return ptrs_[i] !=
nullptr;
101 <<
"hanging pointer at index " << i
102 <<
" (size " << size()
103 <<
"), cannot dereference" 117 <<
"hanging pointer at index " << i
118 <<
" (size " << size()
119 <<
"), cannot dereference" 146 return ptr_ == iter.ptr_;
153 return ptr_ != iter.ptr_;
251 return (ptr_ - iter.ptr_);
265 return ptr_ < iter.ptr_;
272 return ptr_ > iter.ptr_;
279 return ptr_ <= iter.ptr_;
286 return ptr_ >= iter.ptr_;
294 return ptrs_.begin();
328 return ptr_ == iter.ptr_;
338 return ptr_ != iter.ptr_;
436 return (ptr_ - iter.ptr_);
453 return ptr_ < iter.ptr_;
463 return ptr_ > iter.ptr_;
473 return ptr_ <= iter.ptr_;
483 return ptr_ >= iter.ptr_;
491 return ptrs_.begin();
507 return ptrs_.begin();
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.
iterator operator-(const label) const
T & operator[](const label)
const_iterator(const T *const *)
Construct for a given UPtrList entry.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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.
const_iterator operator+(const label) const
points setSize(newPointi)
bool operator<(const iterator &) const
bool operator<=(const iterator &) const
iterator operator+=(const label)
iterator operator+(const label) const
const_iterator operator+=(const label)
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
errorManip< error > abort(error &err)
bool operator>=(const iterator &) const
bool set(const label) const
Is element set.
bool operator==(const iterator &) const
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
label size() const
Return the number of elements in the UPtrList.
const_iterator operator-(const label) const
iterator begin()
Return an iterator to begin traversing the UPtrList.
const_iterator operator--()
const T & operator[](const label)
const_iterator operator++()
bool operator!=(const iterator &) const
const_iterator cend() const
Return an const_iterator to end traversing the UPtrList.
A class for managing temporary objects.
const_iterator cbegin() const
Return an const_iterator to begin traversing the UPtrList.
const T * operator()(const label) const
Return element const pointer.
const_iterator operator-=(const label)
T & first()
Return reference to the first element of the list.