QDP++
qdp_qdpio.h File Reference

IO support via QIO. More...

#include "qio.h"
#include <sstream>
#include "qdp_defs.h"
#include "qdp_traits.h"
#include <cstring>

Go to the source code of this file.

Classes

struct  QDP::QIOStringTraits< T >
 QIO Type and precision strings. More...
struct  QDP::QIOStringTraits< OLattice< T > >
 Partial(?) Specialisation for OLattice Objects. More...
struct  QDP::QIOStringTraits< OScalar< T > >
 Partial(?) Specialisation for OScalar Objects. More...
struct  QDP::QIOStringTraits< multi1d< OLattice< T > > >
 Partial(?) Specialisation for OLattice Objects. More...
struct  QDP::QIOStringTraits< multi1d< OScalar< T > > >
 Partial(?) Specialisation for OScalar Objects. More...
struct  QDP::NumSpins< T >
struct  QDP::NumSpins< RScalar< T > >
struct  QDP::NumSpins< RComplex< T > >
struct  QDP::NumSpins< PSpinVector< T, N > >
struct  QDP::NumSpins< PSpinMatrix< T, N > >
struct  QDP::NumSpins< PColorVector< T, N > >
struct  QDP::NumSpins< PColorMatrix< T, N > >
struct  QDP::NumSpins< T1< T2 > >
struct  QDP::NumColors< T >
struct  QDP::NumColors< RScalar< T > >
struct  QDP::NumColors< RComplex< T > >
struct  QDP::NumColors< PSpinVector< T, N > >
struct  QDP::NumColors< PSpinMatrix< T, N > >
struct  QDP::NumColors< PColorVector< T, N > >
struct  QDP::NumColors< PColorMatrix< T, N > >
struct  QDP::NumColors< T1< T2 > >
class  QDP::QDPFileReader
 QIO class. More...
class  QDP::QDPFileWriter
 QIO writer class. More...

Namespaces

namespace  QDP
 Yet another random number generator.

Enumerations

enum  QDP::QDP_serialparallel_t { QDP::QDPIO_SERIAL , QDP::QDPIO_PARALLEL }
 File access mode. More...
enum  QDP::QDP_volfmt_t { QDP::QDPIO_SINGLEFILE , QDP::QDPIO_MULTIFILE , QDP::QDPIO_PARTFILE }
 File format. More...
enum  QDP::QDP_filemode_t { QDP::QDPIO_CREATE , QDP::QDPIO_OPEN , QDP::QDPIO_APPEND }
 File open mode. More...
enum  QDP::QDP_iostate_t { QDP::QDPIO_goodbit = 0x0000 , QDP::QDPIO_eofbit = 0x0001 , QDP::QDPIO_failbit = 0x0010 , QDP::QDPIO_badbit = 0x0100 }
 QDPIO state. More...

Functions

template<class T>
void QDP::read (QDPFileReader &qsw, XMLReader &rec_xml, OScalar< T > &s1)
 Reads an OScalar object.
template<class T>
void QDP::read (QDPFileReader &qsw, XMLReader &rec_xml, OLattice< T > &s1)
 Reads an array of OLattice objects.
template<class T>
void QDP::read (QDPFileReader &qsw, XMLReader &rec_xml, multi1d< OScalar< T > > &s1)
 Reads an array of OScalar object.
template<class T>
void QDP::read (QDPFileReader &qsw, XMLReader &rec_xml, multi1d< OLattice< T > > &s1)
 Reads an array of OLattice objects.
void QDP::read (QDPFileReader &qsw, XMLReader &rec_xml, BinaryBufferReader &s1)
 Reads a BinaryBufferReader object.
void QDP::close (QDPFileReader &qsw)
 Close a QDPFileReader.
bool QDP::is_open (QDPFileReader &qsw)
 Is a QDPFileReader open.
template<class T>
void QDP::write (QDPFileWriter &qsw, XMLBufferWriter &rec_xml, const OScalar< T > &s1)
 Writes an OScalar object.
template<class T>
void QDP::write (QDPFileWriter &qsw, XMLBufferWriter &rec_xml, const OLattice< T > &s1)
 Writes an OLattice object.
template<class T>
void QDP::write (QDPFileWriter &qsw, XMLBufferWriter &rec_xml, const OLattice< T > &s1, const multi1d< int > &lower_left, const multi1d< int > &upper_right)
 Writes a hypercube part of an OLattice object.
template<class T>
void QDP::write (QDPFileWriter &qsw, XMLBufferWriter &rec_xml, const multi1d< OScalar< T > > &s1)
 Writes an array of OScalar objects.
template<class T>
void QDP::write (QDPFileWriter &qsw, XMLBufferWriter &rec_xml, const multi1d< OLattice< T > > &s1)
 Writes an array of OLattice objects.
template<class T>
void QDP::write (QDPFileWriter &qsw, XMLBufferWriter &rec_xml, const multi1d< OLattice< T > > &s1, const multi1d< int > &lower_left, const multi1d< int > &upper_right)
 Writes an array of OLattice objects.
void QDP::write (QDPFileWriter &qsw, XMLBufferWriter &rec_xml, BinaryBufferWriter &s1)
 Writes a XML plus BinaryBufferWriter pair.
void QDP::close (QDPFileWriter &qsw)
 Closes a QDPFileWriter.
bool QDP::is_open (QDPFileWriter &qsw)
 Queries whether a QDPFileWriter is open.
template<class T>
void QDP::QDPOScalarFactoryPut (char *buf, size_t linear, int count, void *arg)
 Function for moving data.
template<class T>
void QDP::QDPOScalarFactoryGet (char *buf, size_t linear, int count, void *arg)
 Function for moving data.
template<class T>
void QDP::QDPOLatticeFactoryPut (char *buf, size_t linear, int count, void *arg)
 Writes a BinaryBufferWriter object.
template<class T>
void QDP::QDPOLatticeFactoryPutArray (char *buf, size_t linear, int count, void *arg)
 Function for moving array data.
template<class T>
void QDP::QDPOLatticeFactoryGet (char *buf, size_t linear, int count, void *arg)
 Function for moving data.
template<class T>
void QDP::QDPOLatticeFactoryGetArray (char *buf, size_t linear, int count, void *arg)
 Function for moving array data.

Variables

template<typename T>
char * QDP::QIOStringTraits< T >::tname = (char *)"QDP_GenericType"
 Generic type.
template<typename T>
char * QDP::QIOStringTraits< OLattice< T > >::tname = (char *)"Lattice"
 Lattice Type.
template<typename T>
char * QDP::QIOStringTraits< OScalar< T > >::tname = (char *)"Scalar"
 Scalar Type.
template<typename T>
char * QDP::QIOStringTraits< multi1d< OLattice< T > > >::tname = (char *)"Lattice"
 multi1d<LatticeType>
template<typename T>
char * QDP::QIOStringTraits< multi1d< OScalar< T > > >::tname = (char *)"Scalar"
 multi1d<ScalarType>
template<typename T>
char * QDP::QIOStringTraits< T >::tprec = (char *)"U"
 Unknown precision string.
template<class T>
int QDP::NumSpins< RScalar< T > >::value = 1
template<class T>
int QDP::NumSpins< RComplex< T > >::value = 1
template<class T, int N>
int QDP::NumSpins< PSpinVector< T, N > >::value = N
template<class T, int N>
int QDP::NumSpins< PSpinMatrix< T, N > >::value = N
template<class T, int N>
int QDP::NumSpins< PColorVector< T, N > >::value = NumSpins<T>::value
template<class T, int N>
int QDP::NumSpins< PColorMatrix< T, N > >::value = NumSpins<T>::value
template<template< class > class T1, class T2>
int QDP::NumSpins< T1< T2 > >::value = NumSpins<T2>::value
template<class T>
int QDP::NumColors< RScalar< T > >::value = 1
template<class T>
int QDP::NumColors< RComplex< T > >::value = 1
template<class T, int N>
int QDP::NumColors< PSpinVector< T, N > >::value = NumColors<T>::value
template<class T, int N>
int QDP::NumColors< PSpinMatrix< T, N > >::value = NumColors<T>::value
template<class T, int N>
int QDP::NumColors< PColorVector< T, N > >::value = N
template<class T, int N>
int QDP::NumColors< PColorMatrix< T, N > >::value = N
template<template< class > class T1, class T2>
int QDP::NumColors< T1< T2 > >::value = NumColors<T2>::value

Detailed Description

IO support via QIO.

Definition in file qdp_qdpio.h.