46 #include <initializer_list> 59 template<
class T>
class List;
61 template<
class T> Istream&
operator>>(Istream&, List<T>&);
64 template<
class T>
class PtrList;
67 template<
class LListBase,
class T>
class LList;
71 template<
class T,
unsigned SizeInc,
unsigned SizeMult,
unsigned SizeDiv>
96 inline void reAlloc(
const label s);
100 inline void copyList(
const List2&);
103 template<
class List2>
104 inline void allocCopyList(
const List2&);
107 template<
class InputIterator>
157 template<
class InputIterator>
161 template<
unsigned Size>
177 List(std::initializer_list<T>);
234 template<
unsigned SizeInc,
unsigned SizeMult,
unsigned SizeDiv>
270 void operator=(std::initializer_list<T>);
UList< label > unallocLabelList
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.
A 1D vector of objects of type <T> with a fixed size <Size>.
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...
A list that is sorted upon construction or when explicitly requested with the sort() method...
Template class for non-intrusive linked lists.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
T & newElmt(const label)
Return subscript-checked element of UList.
SubList< T > subList
Declare type of subList.
List< T > readList(Istream &)
Read a bracket-delimited list, or handle a single value as list of size 1.
static const List< T > & null()
Return a null List.
void resize(const label)
Alias for setSize(const label)
T & first()
Return the first element of the list.
A List obtained as a section of another List.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
void shallowCopy(const UList< T > &)=delete
Disallow implicit shallowCopy.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
void clear()
Clear the list, i.e. set size to zero.
Istream & operator>>(Istream &, directionInfo &)
void append(const T &)
Append an element at the end of the list.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Indexes into negList (negative index) or posList (zero or positive index).
void operator=(const UList< T > &)
Assignment to UList operator. Takes linear time.
void setSize(const label)
Reset size of List.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
A List with indirect addressing.
autoPtr< List< T > > clone() const
Clone.
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...
T & last()
Return the last element of the list.
label size() const
Return the number of elements in the UList.
A List with indirect addressing.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.