Go to the documentation of this file.
45 return NullObjectRef<List<T> >();
66 if (i >= this->
size())
113 setSize(nextFree + lst.size());
117 this->operator[](nextFree++) = lst[elemI];
126 setSize(nextFree + lst.size());
130 this->operator[](nextFree++) = lst[elemI];
points setSize(newPointi)
static const List< T > & null()
Return a null List.
#define forAll(list, i)
Loop across all elements in list.
Xfer< List< T > > xfer()
Transfer contents to the Xfer container.
T & newElmt(const label)
Return subscript-checked element of UList.
void operator=(const UList< T > &)
Assignment from UList operator. Takes linear time.
A simple container for copying or transferring objects of type <T>.
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 append(const T &)
Append an element at the end of the list.
void resize(const label)
Alias for setSize(const label)
errorManip< error > abort(error &err)
label size() const
Return the number of elements in the UList.
label size_
Number of elements in UList.
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.
Xfer< T > xferMove(T &)
Construct by transferring the contents of the arg.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
autoPtr< List< T > > clone() const
Clone.
void operator=(const T &)
Assignment of all entries to the given value.