30 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
39 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
52 this->set(iter.key(), iter()->
clone(iF).ptr());
57 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
66 errorLocation_(mtf.errorLocation_)
70 this->set(iter.key(), iter()->
clone(iF).ptr());
75 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
76 template<
template<
class>
class PrimitiveField2>
85 errorLocation_(mtf.errorLocation_)
89 this->set(iter.key(), iter()->
clone(iF).ptr());
94 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
109 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
133 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
141 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
152 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
163 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
178 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
203 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
212 errorLocation_ = mtf.errorLocation_;
216 this->set(iter.key(), iter()->
clone(field).ptr());
221 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
243 "GeometricFieldSources<Type, GeoMesh, PrimitiveField>::"
244 "writeEntry(const word& keyword, Ostream& os) const"
251 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
256 const word& sourceName
261 if (iter == this->end())
264 <<
"Cannot find fieldSource entry for " << sourceName
274 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
281 typedef typename GeoMesh::template FieldSource<Type> Source;
282 os << static_cast<const HashPtrTable<Source>&>(bf);
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Part of a geometric field used for setting the values associated with optional sources.
void readField(const Internal &field, const dictionary &dict)
Read the sources.
const HashPtrTable< Source > & table() const
Access the underlying field table.
void writeEntry(const word &keyword, Ostream &os) const
Write sources as dictionary entry.
GeoMesh::template FieldSource< Type > Source
Type of the field source of which this field sources is composed.
HashTable< word > types() const
Return a map from the source name to the field source type.
friend class GeometricFieldSources
Declare friendship with other geometric field sources.
~GeometricFieldSources()
Destructor.
void reset(const Internal &, const GeometricFieldSources &)
Reset the boundary field contents to the given field.
A HashTable specialisation for hashing pointers.
An STL-conforming const_iterator.
An STL-conforming hash table.
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
Ostream & indent(Ostream &os)
Indent stream.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.