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"
153 return ptr_ == iter.ptr_;
160 return ptr_ != iter.ptr_;
258 return (ptr_ - iter.ptr_);
272 return ptr_ < iter.ptr_;
279 return ptr_ > iter.ptr_;
286 return ptr_ <= iter.ptr_;
293 return ptr_ >= iter.ptr_;
335 return ptr_ == iter.ptr_;
345 return ptr_ != iter.ptr_;
443 return (ptr_ - iter.ptr_);
460 return ptr_ < iter.ptr_;
470 return ptr_ > iter.ptr_;
480 return ptr_ <= iter.ptr_;
490 return ptr_ >= iter.ptr_;
498 return ptrs_.
begin();
514 return ptrs_.
begin();
iterator begin()
Return an iterator to begin traversing the UList.
iterator end()
Return an iterator to end traversing the UList.
An STL-conforming const_iterator.
const_iterator operator-(const label) const
const T & operator[](const label)
const_iterator operator--()
const_iterator operator+=(const label)
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.
T & first()
Return reference to the first element of the list.
bool set(const label) const
Is element set.
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.
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.
const T * operator()(const label) const
Return element const pointer.
T & last()
Return reference to the last element of the list.
A class for managing temporary objects.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManip< error > abort(error &err)
tmp< fvMatrix< Type > > operator*(const volScalarField::Internal &, const fvMatrix< Type > &)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
points setSize(newPointi)