45 #include <initializer_list> 66 template<
class T>
class List;
71 template<
class T>
class PtrList;
74 template<
class LListBase,
class T>
class LList;
78 template<
class T,
unsigned SizeInc,
unsigned SizeMult,
unsigned SizeDiv>
103 inline void reAlloc(
const label s);
106 template<
class List2>
107 inline void copyList(
const List2&);
110 template<
class List2>
111 inline void allocCopyList(
const List2&);
114 template<
class InputIterator>
164 template<
class InputIterator>
168 template<
unsigned Size>
184 List(std::initializer_list<T>);
241 template<
unsigned SizeInc,
unsigned SizeMult,
unsigned SizeDiv>
277 void operator=(std::initializer_list<T>);
UList< label > unallocLabelList
A 1D vector of objects of type <T> with a fixed size <Size>.
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...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
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.