Go to the documentation of this file.
31 template<
class T,
class BaseType>
34 Istream& is = readStream(word::null);
41 else if (headerClassName() == typeName)
51 ) <<
"unexpected class name " << headerClassName()
54 <<
" while reading object " <<
name()
62 template<
class T,
class BaseType>
78 template<
class T,
class BaseType>
102 template<
class T,
class BaseType>
126 template<
class T,
class BaseType>
130 const Xfer<Field<T> >& list
135 Field<T>::transfer(list());
150 template<
class T,
class BaseType>
158 template<
class T,
class BaseType>
169 const word oldTypeName = typeName;
176 const_cast<word&
>(typeName) = oldTypeName;
187 template<
class T,
class BaseType>
190 return (os << *
this).good();
196 template<
class T,
class BaseType>
206 template<
class T,
class BaseType>
215 template<
class T,
class BaseType>
224 const Field<BaseType> elems(is);
227 L.setSize(start.size()-1);
233 label index = start[i];
234 subField.setSize(start[i+1] - index);
238 subField[j] = elems[index++];
246 template<
class T,
class BaseType>
256 os << static_cast<const Field<T>&>(L);
264 for (
label i = 1; i < start.size(); i++)
266 start[i] = start[i-1]+L[i-1].size();
269 Field<BaseType> elems(start[start.size()-1]);
274 const T& subField = L[i];
278 elems[elemI++] = subField[j];
281 os << start << elems;
points setSize(newPointi)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual bool writeData(Ostream &) const
virtual ~CompactIOField()
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType) const
Write using given format, version and compression.
A class for handling words, derived from string.
A primitive field of type <T> with automated input and output.
List< label > labelList
A List of labels.
#define forAll(list, i)
Loop across all elements in list.
compressionType
Enumeration for the format of data in the stream.
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....
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
readOption readOpt() const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType) const
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void readFromStream()
Read according to header type.
CompactIOField(const IOobject &)
Construct from IOobject.
void operator=(const Field< Type > &)
errorManipArg< error, int > exit(error &err, const int errNo=1)
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
#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,...
void operator=(const CompactIOField< T, BaseType > &)
word name(const complex &)
Return a string representation of a complex.
streamFormat
Enumeration for the format of data in the stream.