48 #include <type_traits>
57 template<
class T,
unsigned SizeInc,
unsigned SizeMult,
unsigned SizeDiv>
63 template<
class T,
unsigned SizeInc,
unsigned SizeMult,
unsigned SizeDiv>
75 template<
class T,
unsigned SizeInc,
unsigned SizeMult,
unsigned SizeDiv>
82 (SizeInc || SizeMult) && SizeDiv,
83 "Invalid sizing parameters"
220 inline void operator=
226 inline void operator=
251 friend Ostream& operator<< <T, SizeInc, SizeMult, SizeDiv>
258 friend Istream&
operator>> <
T, SizeInc, SizeMult, SizeDiv>
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
T remove()
Remove and return the top element.
void transfer(List< T > &)
Transfer contents of the argument List into this.
void setCapacity(const label)
Alter the size of the underlying storage.
void resize(const label)
Alter the addressed list size.
label capacity() const
Size of the underlying storage.
void operator=(const T &)
Assignment of all addressed entries to the given value.
void reserve(const label)
Reserve allocation space for at least this size.
void clearStorage()
Clear the list and delete storage.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & shrink()
Shrink the allocated space to the number of elements used.
DynamicList()
Construct null.
T & operator()(const label)
Return non-const access to an element, resizing list if.
void clear()
Clear the addressed list, i.e. set the size to zero.
UList< T >::iterator erase(typename UList< T >::iterator)
Erase an element, move the remaining elements to fill the gap.
void setSize(const label)
Alter the addressed list size.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A List with indirect addressing.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
T * iterator
Random access iterator for traversing UList.
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)