Go to the documentation of this file.
36 #ifndef DynamicField_H
37 #define DynamicField_H
49 template<
class T,
unsigned SizeInc,
unsigned SizeMult,
unsigned SizeDiv>
52 template<
class T,
unsigned SizeInc,
unsigned SizeMult,
unsigned SizeDiv>
59 template<
class T,
unsigned SizeInc,
unsigned SizeMult,
unsigned SizeDiv>
71 template<
class T,
unsigned SizeInc=0,
unsigned SizeMult=2,
unsigned SizeDiv=1>
231 inline void operator=
const Foam::edgeFaceCirculator Foam::edgeFaceCirculator::endConstIter * reinterpret_cast(0), -1, false, -1, false
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 operator=(const T &)
Assignment of all addressed entries to the given value.
void clearStorage()
Clear the list and delete storage.
void resize(const label)
Alter the addressed list size.
void setSize(const label)
Alter the addressed list size.
A class for managing temporary objects.
label capacity_
The capacity (allocated size) of the underlying field.
T & operator()(const label)
Return non-const access to an element, resizing list if.
Abstract base class to hold the Field mapping addressing and weights.
A simple container for copying or transferring objects of type <T>.
StaticAssert((SizeInc||SizeMult) &&SizeDiv)
Avoid invalid sizing parameters.
DynamicField()
Construct null.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
DynamicField< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
label capacity() const
Size of the underlying storage.
Xfer< List< T > > xfer()
Transfer contents to the Xfer container as a plain List.
void reserve(const label)
Reserve allocation space for at least this size.
T remove()
Remove and return the top element.
tmp< DynamicField< T, SizeInc, SizeMult, SizeDiv > > clone() const
Clone.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
DynamicField< T, SizeInc, SizeMult, SizeDiv > & shrink()
Shrink the allocated space to the number of elements used.