Go to the documentation of this file.
72 int main(
int argc,
char *argv[])
78 scalarDict.
set(i, key,
new Scalar(1.3*i));
84 Info<<
"elem " << i <<
" = " << scalarDict[i] <<
endl;
89 Info<<
"ent8 = " << *ent8Ptr <<
endl;
95 scalarDict2.
set(i, key,
new Scalar(1.3*i));
100 Info<<
"elem " << i <<
" = " << scalarDict2[i] <<
endl;
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
const T * lookupPtr(const word &) const
Find and return an entry if present, otherwise return NULL.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Template dictionary class which manages the storage associated with it.
autoPtr< T > set(const label, const word &key, T *)
Set element to pointer provided and return old element.
Ostream & operator<<(Ostream &, const edgeMesh &)
void clear()
Clear the dictionary.
friend Ostream & operator<<(Ostream &os, const Scalar &val)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void transfer(DictionaryBase< IDLListType, T > &)
Transfer the contents of the argument into this DictionaryBase.
int main(int argc, char *argv[])
word name(const complex &)
Return a string representation of a complex.