45 return NullObjectRef<List<T>>();
66 if (i >= this->size())
112 label nextFree = this->size();
117 this->operator[](nextFree++) = lst[elemI];
125 label nextFree = this->size();
130 this->operator[](nextFree++) = lst[elemI];
A simple container for copying or transferring objects of type <T>.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Xfer< List< T > > xfer()
Transfer contents to the Xfer container.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
T & newElmt(const label)
Return subscript-checked element of UList.
static const List< T > & null()
Return a null List.
void resize(const label)
Alias for setSize(const label)
points setSize(newPointi)
Xfer< T > xferMove(T &)
Construct by transferring the contents of the arg.
label size() const
Return the number of elements in the list.
void append(const T &)
Append an element at the end of the list.
errorManip< error > abort(error &err)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
label size() const
Return the number of elements in the UList.
void operator=(const UList< T > &)
Assignment from UList operator. Takes linear time.
label size() const
Return the number of elements in the UList.
A List with indirect addressing.
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
autoPtr< List< T > > clone() const
Clone.