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>
69 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
70 template<
template<
class>
class PrimitiveField2>
82 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
97 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
121 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
129 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
140 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
151 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
166 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
191 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
200 errorLocation_ = mtf.errorLocation_;
204 this->set(iter.key(), iter()->
clone(field).ptr());
209 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
231 "GeometricFieldSources<Type, GeoMesh, PrimitiveField>::"
232 "writeEntry(const word& keyword, Ostream& os) const"
239 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
244 const word& sourceName
249 if (iter == this->end())
252 <<
"Cannot find fieldSource entry for " << sourceName
262 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
269 typedef typename GeoMesh::template FieldSource<Type> Source;
270 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.