Go to the documentation of this file.
39 int main(
int argc,
char *argv[])
45 completeList[i] = 0.1*i;
61 Info<<
"idl[1] changed: " << idl <<
endl;
65 Info<<
"idl changed: " << idl <<
endl;
77 ident[i] = ident.
size() - i;
82 Info<<
"idl assigned from UList: " << idl <<
endl;
87 Info<<
"List constructed from UIndirectList: " << flatList <<
endl;
90 Info<<
"List assigned from UIndirectList: " << flatList <<
endl;
93 Info<<
"List::append(UIndirectList): " << flatList <<
endl;
97 Info<<
"DynamicList constructed from UIndirectList: " << dynList <<
endl;
100 Info<<
"DynamicList::append(UIndirectList): " << dynList <<
endl;
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
#define forAll(list, i)
Loop across all elements in list.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void append(const T &)
Append an element at the end of the list.
int main(int argc, char *argv[])
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A List with indirect addressing.
Various functions to operate on Lists.
void size(const label)
Override size to be inconsistent with allocated storage.