1#ifndef DUNE_FEM_STREAMS_INLINE_HH
2#define DUNE_FEM_STREAMS_INLINE_HH
17 template<
class Traits >
26 template<
class Traits >
35 template<
class Traits >
44 template<
class Traits >
53 template<
class Traits >
62 template<
class Traits >
65 const std :: string &s )
71 template<
class Traits >
74 const unsigned int value )
80 template<
class Traits,
class T >
90 template<
class Traits >
93 const uint64_t value )
99 template<
class Traits >
104 unsigned long >::type& value
107 assert(
sizeof(value) <=
sizeof(uint64_t) );
109 out.writeUnsignedInt64( v );
113 template<
class Traits >
116 const int64_t value )
122 template<
class Traits >
127 long >::type& value )
129 assert(
sizeof(value) <=
sizeof(int64_t));
131 out.writeSignedInt64( v );
135 template<
class Traits,
class T, std::
size_t N >
144 template<
class Traits,
class T,
int N >
148 for(
int i = 0; i <
N; ++i )
153 template<
class Traits,
class T,
class A >
158 const size_t size = value.size();
160 for(
size_t i = 0; i <
size; ++i )
165 template<
class Traits >
174 template<
class Traits >
175 inline InStreamInterface< Traits > &
179 in.readFloat( value );
183 template<
class Traits >
184 inline InStreamInterface< Traits > &
192 template<
class Traits >
193 inline InStreamInterface< Traits > &
197 in.readChar( value );
201 template<
class Traits >
202 inline InStreamInterface< Traits > &
206 in.readBool( value );
210 template<
class Traits >
211 inline InStreamInterface< Traits > &
219 template<
class Traits >
220 inline InStreamInterface< Traits > &
222 unsigned int &value )
224 in.readUnsignedInt( value );
228 template<
class Traits >
229 inline InStreamInterface< Traits > &
233 in.readUnsignedInt64( value );
237 template<
class Traits >
238 inline InStreamInterface< Traits > &
242 unsigned long >::type& value )
245 assert(
sizeof(value) <=
sizeof(uint64_t));
247 in.readUnsignedInt64( v );
252 template<
class Traits >
253 inline InStreamInterface< Traits > &
257 in.readSignedInt64( value );
261 template<
class Traits >
262 inline InStreamInterface< Traits > &
266 long >::type& value )
269 assert(
sizeof(value) <=
sizeof(int64_t));
271 in.readSignedInt64( v );
276 template<
class Traits,
class T, std::
size_t N >
277 inline InStreamInterface< Traits > &
285 template<
class Traits,
class T,
int N >
286 inline InStreamInterface< Traits > &
289 for(
int i = 0; i <
N; ++i )
294 template<
class Traits,
class T >
295 inline InStreamInterface< Traits > &
306 template<
class Traits,
class T,
class A >
307 inline InStreamInterface< Traits > &
313 value.resize(
size );
314 for(
size_t i = 0; i <
size; ++i )
static constexpr size_type N()
double imag(const complex< Dune::Fem::Double > &x)
Definition double.hh:995
double real(const complex< Dune::Fem::Double > &x)
Definition double.hh:983
OutStreamInterface< StreamTraits > & operator<<(OutStreamInterface< StreamTraits > &out, const DiscreteFunctionInterface< Impl > &df)
write a discrete function into an output stream
Definition discretefunction_inline.hh:396
InStreamInterface< StreamTraits > & operator>>(InStreamInterface< StreamTraits > &in, DiscreteFunctionInterface< Impl > &df)
read a discrete function from an input stream
Definition discretefunction_inline.hh:416
abstract interface for an output stream
Definition streams.hh:48
void writeBool(const bool value)
write a bool to the stream
Definition streams.hh:125
void writeInt(const int value)
write an int to the stream
Definition streams.hh:98
void writeSignedInt64(int64_t value)
write an int64_t to the stream
Definition streams.hh:107
void writeChar(const char value)
write a char to the stream
Definition streams.hh:116
void writeUnsignedInt(unsigned int value)
write an unsigned int to the stream
Definition streams.hh:143
void writeDouble(const double value)
write a double to the stream
Definition streams.hh:80
void writeString(const std::string &s)
write a string to the stream
Definition streams.hh:134
void writeFloat(const float value)
write a float to the stream
Definition streams.hh:89
void writeUnsignedInt64(uint64_t value)
write an uint64_t to the stream
Definition streams.hh:152
abstract interface for an input stream
Definition streams.hh:190
void readDouble(double &value)
read a double from the stream
Definition streams.hh:212