20 #ifndef LIBMESH_XDR_CXX_H 21 #define LIBMESH_XDR_CXX_H 32 #ifdef LIBMESH_HAVE_XDR 40 #ifdef LIBMESH_USE_COMPLEX_NUMBERS 46 #ifndef LIBMESH_DEFAULT_SINGLE_PRECISION 47 #define xdr_REAL xdr_double 49 #define xdr_REAL xdr_float 85 void open (
const std::string &
name);
130 template <
typename T>
136 template <
typename T>
142 template <
typename T>
148 template <
typename T>
171 template <
typename T>
174 template <
typename T>
175 void do_read(std::complex<T> & a);
177 template <
typename T>
178 void do_read(std::vector<T> & a);
180 template <
typename T>
181 void do_read(std::vector<std::complex<T>> & a);
186 template <
typename T>
189 template <
typename T>
192 template <
typename T>
195 template <
typename T>
196 void do_write(std::vector<std::complex<T>> & a);
208 #ifdef LIBMESH_HAVE_XDR 226 std::unique_ptr<std::istream>
in;
231 std::unique_ptr<std::ostream>
out;
254 #endif // LIBMESH_XDR_CXX_H std::string name(const ElemQuality q)
void data(T &a, const char *comment="")
const unsigned int xdr_MAX_STRING_LENGTH
const unsigned int invalid_uint
char comm[xdr_MAX_STRING_LENGTH]
void comment(std::string &)
std::unique_ptr< std::istream > in
std::unique_ptr< std::ostream > out
XdrMODE access_mode() const
C++ interface for the XDR (eXternal Data Representation) format.
std::unique_ptr< XDR > xdrs
void set_version(int ver)
void open(const std::string &name)
Xdr(const std::string &name="", const XdrMODE m=UNKNOWN)
void data_stream(T *val, const unsigned int len, const unsigned int line_break=libMesh::invalid_uint)