Go to the documentation of this file.
48 return this->operator[](0);
55 return this->operator[](0);
62 return this->operator[](this->size()-1);
69 return this->operator[](this->size()-1);
92 return append(
const_cast<autoPtr<T>&
>(aptr).ptr());
102 return append(
const_cast<tmp<T>&
>(t).ptr());
109 return ptrs_[i] != NULL;
116 autoPtr<T> old(ptrs_[i]);
126 const autoPtr<T>& aptr
129 return set(i,
const_cast<autoPtr<T>&
>(aptr).ptr());
140 return set(i,
const_cast<tmp<T>&
>(t).ptr());
159 <<
"hanging pointer of type " <<
typeid(
T).
name()
161 <<
" (size " << size()
162 <<
"), cannot dereference"
176 <<
"hanging pointer of type " <<
typeid(
T).
name()
178 <<
" (size " << size()
179 <<
"), cannot dereference"
206 return ptr_ == iter.
ptr_;
213 return ptr_ != iter.
ptr_;
321 return (iter1.ptr_ - iter2.ptr_)/
sizeof(
T*);
335 return ptr_ < iter.
ptr_;
342 return ptr_ > iter.
ptr_;
349 return ptr_ <= iter.
ptr_;
356 return ptr_ >= iter.
ptr_;
363 return ptrs_.begin();
396 return ptr_ == iter.ptr_;
406 return ptr_ != iter.ptr_;
514 return (iter1.ptr_ - iter2.ptr_)/
sizeof(
T*);
531 return ptr_ < iter.ptr_;
541 return ptr_ > iter.ptr_;
551 return ptr_ <= iter.ptr_;
561 return ptr_ >= iter.ptr_;
569 return ptrs_.begin();
585 return ptrs_.begin();
points setSize(newPointi)
const_iterator operator+=(label)
T & last()
Return reference to the last element of the list.
bool operator<(const iterator &) const
void append(T *)
Append an element at the end of the list.
A class for managing temporary objects.
iterator begin()
Return an iterator to begin traversing the PtrList.
Xfer< PtrList< T > > xfer()
Transfer contents to the Xfer container.
const_iterator(const T *const *)
Construct for a given PtrList entry.
iterator(T **)
Construct for a given PtrList entry.
const_iterator operator--()
A simple container for copying or transferring objects of type <T>.
An STL-conforming iterator.
const T * operator()(const label) const
Return element const pointer.
iterator end()
Return an iterator to end traversing the PtrList.
bool operator<=(const iterator &) const
An STL-conforming const_iterator.
tmp< fvMatrix< Type > > operator-(const fvMatrix< Type > &)
bool set(const label) const
Is element set.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool empty() const
Return true if the PtrList is empty (ie, size() is zero).
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const_iterator cend() const
Return an const_iterator to end traversing the PtrList.
const T & operator[](const label) const
Return element const reference.
bool operator!=(const iterator &) const
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
bool operator>(const iterator &) const
errorManip< error > abort(error &err)
iterator operator-=(label)
const_iterator operator-=(label)
tmp< fvMatrix< Type > > operator*(const DimensionedField< scalar, volMesh > &, const fvMatrix< Type > &)
const_iterator cbegin() const
Return an const_iterator to begin traversing the PtrList.
iterator operator+=(label)
void resize(const label)
Alias for setSize(const label)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
T & first()
Return reference to the first element of the list.
Xfer< T > xferMove(T &)
Construct by transferring the contents of the arg.
bool operator>=(const iterator &) const
const T & operator[](label)
const_iterator operator++()
label size() const
Return the number of elements in the PtrList.
bool operator==(const iterator &) const
tmp< fvMatrix< Type > > operator+(const fvMatrix< Type > &, const fvMatrix< Type > &)
word name(const complex &)
Return a string representation of a complex.