31 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
40 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
53 this->set(iter.key(), iter()->
clone(iF).ptr());
58 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
67 errorLocation_(mtf.errorLocation_)
71 this->set(iter.key(), iter()->
clone(iF).ptr());
76 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
77 template<
template<
class>
class PrimitiveField2>
86 errorLocation_(mtf.errorLocation_)
90 this->set(iter.key(), iter()->
clone(iF).ptr());
95 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
110 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
120 errorLocation_(errorLocation)
135 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
143 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
154 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
165 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
170 return errorLocation_;
174 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
189 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
214 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
223 errorLocation_ = mtf.errorLocation_;
227 this->set(iter.key(), iter()->
clone(field).ptr());
232 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
254 "GeometricFieldSources<Type, GeoMesh, PrimitiveField>::"
255 "writeEntry(const word& keyword, Ostream& os) const"
262 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
267 const word& sourceName
272 if (iter == this->end())
275 <<
"Cannot find fieldSource entry for " << sourceName
285 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
292 typedef typename GeoMesh::template FieldSource<Type> Source;
293 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.
const IOerrorLocation & errorLocation() const
Access the error location.
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.
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.
tmp< DimensionedField< TypeR, GeoMesh, Field > > New(const tmp< DimensionedField< TypeR, GeoMesh, Field >> &tdf1, const word &name, const dimensionSet &dimensions)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.