Go to the documentation of this file.
34 template<
class T,
class BaseType>
37 Istream& is = readStream(word::null, valid);
41 if (headerClassName() == IOField<T>::typeName)
43 is >>
static_cast<Field<T>&
>(*this);
46 else if (headerClassName() == typeName)
54 <<
"unexpected class name " << headerClassName()
55 <<
" expected " << typeName <<
" or " << IOField<T>::typeName
57 <<
" while reading object " <<
name()
66 template<
class T,
class BaseType>
82 template<
class T,
class BaseType>
93 readFromStream(valid);
97 bool haveFile = headerOk();
98 readFromStream(valid && haveFile);
103 template<
class T,
class BaseType>
127 template<
class T,
class BaseType>
151 template<
class T,
class BaseType>
175 template<
class T,
class BaseType>
187 const word oldTypeName(typeName);
194 const_cast<word&
>(typeName) = oldTypeName;
203 template<
class T,
class BaseType>
206 return (os << *
this).good();
212 template<
class T,
class BaseType>
229 template<
class T,
class BaseType>
241 L.setSize(
start.size()-1);
248 subField.setSize(
start[i+1] - index);
252 subField[j] = elems[index++];
260 template<
class T,
class BaseType>
270 os << static_cast<const Field<T>&>(
L);
288 const T& subField =
L[i];
292 elems[elemI++] = subField[j];
295 os <<
start << elems;
List< label > labelList
A List of labels.
points setSize(newPointi)
Defines the attributes of an object for which implicit objectRegistry management is supported,...
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType, const bool valid) const
Write using given format, version and compression.
const vector L(dict.get< vector >("L"))
A class for handling words, derived from Foam::string.
A primitive field of type <T> with automated input and output.
static constexpr direction size()
Return the number of elements in the VectorSpace = Ncmpts.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A Field of objects of type <T> with automated input and output using a compact storage....
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Representation of a major/minor version number.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
word name(const complex &c)
Return string representation of complex.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
streamFormat
Data format (ascii | binary)
CompactIOField(const CompactIOField &)=default
Default copy construct.
void operator=(const Field< Type > &)
Copy assignment.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual bool writeData(Ostream &os) const
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType, const bool valid) const
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
readOption readOpt() const
The read option.
label ListType::const_reference const label start
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
compressionType
Compression treatment (UNCOMPRESSED | COMPRESSED)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...