Go to the documentation of this file.
47 return this->operator[](0);
54 return this->operator[](0);
61 return this->operator[](this->size()-1);
68 return this->operator[](this->size()-1);
82 return ptrs_[i] != NULL;
110 <<
"hanging pointer at index " << i
111 <<
" (size " << size()
112 <<
"), cannot dereference"
126 <<
"hanging pointer at index " << i
127 <<
" (size " << size()
128 <<
"), cannot dereference"
154 return ptr_ == iter.
ptr_;
160 return ptr_ != iter.
ptr_;
256 return (iter1.ptr_ - iter2.ptr_)/
sizeof(
T*);
268 return ptr_ < iter.
ptr_;
274 return ptr_ > iter.
ptr_;
280 return ptr_ <= iter.
ptr_;
286 return ptr_ >= iter.
ptr_;
293 return ptrs_.begin();
points setSize(newPointi)
bool empty() const
Return true if the UPtrList is empty (ie, size() is zero).
T & first()
Return reference to the first element of the list.
iterator begin()
Return an iterator to begin traversing the UPtrList.
A class for managing temporary objects.
bool operator!=(const iterator &) const
A simple container for copying or transferring objects of type <T>.
tmp< fvMatrix< Type > > operator-(const fvMatrix< Type > &)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
errorManip< error > abort(error &err)
iterator(T **)
Construct for a given UPtrList entry.
tmp< fvMatrix< Type > > operator*(const DimensionedField< scalar, volMesh > &, const fvMatrix< Type > &)
bool operator>(const iterator &) const
void resize(const label)
Reset size of UPtrList. This can only be used to set the size.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Xfer< T > xferMove(T &)
Construct by transferring the contents of the arg.
iterator end()
Return an iterator to end traversing the UPtrList.
const T & operator[](const label) const
Return element const reference.
T & last()
Return reference to the last element of the list.
bool set(const label) const
Is element set.
bool operator<(const iterator &) const
iterator operator-=(label)
const T * operator()(const label) const
Return element const pointer.
Xfer< UPtrList< T > > xfer()
Transfer contents to the Xfer container.
iterator operator+=(label)
bool operator<=(const iterator &) const
tmp< fvMatrix< Type > > operator+(const fvMatrix< Type > &, const fvMatrix< Type > &)
bool operator>=(const iterator &) const
label size() const
Return the number of elements in the UPtrList.
bool operator==(const iterator &) const