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 label sz = this->size();
82 this->ptrs_[sz] = ptr;
89 return ptrs_[i] !=
nullptr;
110 <<
"hanging pointer at index " << i
111 <<
" (size " << size()
112 <<
"), cannot dereference"
126 <<
"hanging pointer at index " << i
127 <<
" (size " << size()
128 <<
"), cannot dereference"
162 return ptr_ == iter.ptr_;
169 return ptr_ != iter.ptr_;
267 return (ptr_ - iter.ptr_);
281 return ptr_ < iter.ptr_;
288 return ptr_ > iter.ptr_;
295 return ptr_ <= iter.ptr_;
302 return ptr_ >= iter.ptr_;
344 return ptr_ == iter.ptr_;
354 return ptr_ != iter.ptr_;
452 return (ptr_ - iter.ptr_);
469 return ptr_ < iter.ptr_;
479 return ptr_ > iter.ptr_;
489 return ptr_ <= iter.ptr_;
499 return ptr_ >= iter.ptr_;
507 return ptrs_.
begin();
523 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.
void append(T *)
Append an element at the end of the list.
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)