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;
108 <<
"hanging pointer at index " << i
109 <<
" (size " << size()
110 <<
"), cannot dereference" 124 <<
"hanging pointer at index " << i
125 <<
" (size " << size()
126 <<
"), cannot dereference" 152 return ptr_ == iter.ptr_;
158 return ptr_ != iter.ptr_;
254 return (iter1.ptr_ - iter2.ptr_)/
sizeof(
T*);
266 return ptr_ < iter.ptr_;
272 return ptr_ > iter.ptr_;
278 return ptr_ <= iter.ptr_;
284 return ptr_ >= iter.ptr_;
291 return ptrs_.begin();
324 return ptr_ == iter.ptr_;
334 return ptr_ != iter.ptr_;
442 return (iter1.ptr_ - iter2.ptr_)/
sizeof(
T*);
459 return ptr_ < iter.ptr_;
469 return ptr_ > iter.ptr_;
479 return ptr_ <= iter.ptr_;
489 return ptr_ >= iter.ptr_;
497 return ptrs_.begin();
513 return ptrs_.begin();
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.
iterator(T **)
Construct for a given UPtrList entry.
const_iterator operator+=(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 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.
const T & operator[](label)
points setSize(newPointi)
bool operator<(const iterator &) const
bool operator<=(const iterator &) const
Xfer< T > xferMove(T &)
Construct by transferring the contents of the arg.
tmp< fvMatrix< Type > > operator-(const fvMatrix< Type > &)
tmp< fvMatrix< Type > > operator+(const fvMatrix< Type > &, const fvMatrix< Type > &)
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)
const_iterator operator-=(label)
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.
iterator begin()
Return an iterator to begin traversing the UPtrList.
const_iterator operator--()
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.
T & first()
Return reference to the first element of the list.