Go to the documentation of this file.
56 template<
class T,
unsigned SizeInc,
unsigned SizeMult,
unsigned SizeDiv>
59 template<
class T,
unsigned SizeInc,
unsigned SizeMult,
unsigned SizeDiv>
65 template<
class T,
unsigned SizeInc,
unsigned SizeMult,
unsigned SizeDiv>
77 template<
class T,
unsigned SizeInc=0,
unsigned SizeMult=2,
unsigned SizeDiv=1>
215 inline void operator=
231 friend Ostream& operator<< <T, SizeInc, SizeMult, SizeDiv>
238 friend Istream&
operator>> <
T, SizeInc, SizeMult, SizeDiv>
void resize(const label)
Alter the addressed list size.
Xfer< List< T > > xfer()
Transfer contents to the Xfer container as a plain List.
label capacity() const
Size of the underlying storage.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
A simple container for copying or transferring objects of type <T>.
T & operator()(const label)
Return non-const access to an element, resizing list if.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void clear()
Clear the addressed list, i.e. set the size to zero.
void setCapacity(const label)
Alter the size of the underlying storage.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
StaticAssert((SizeInc||SizeMult) &&SizeDiv)
Avoid invalid sizing parameters.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & shrink()
Shrink the allocated space to the number of elements used.
void operator=(const T &)
Assignment of all addressed entries to the given value.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
label capacity_
The capacity (allocated size) of the underlying list.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void transfer(List< T > &)
Transfer contents of the argument List into this.
void clearStorage()
Clear the list and delete storage.
T remove()
Remove and return the top element.
void reserve(const label)
Reserve allocation space for at least this size.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void setSize(const label)
Alter the addressed list size.
DynamicList()
Construct null.