QDP++
QIO

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...

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.
template<class T>
void QDP::QDPFileReader::read (XMLReader &xml, OScalar< T > &s1)
 Reads an OScalar object.
template<class T>
void QDP::QDPFileReader::read (XMLReader &xml, multi1d< OScalar< T > > &s1)
 Reads an array of objects all in a single record.
template<class T>
void QDP::QDPFileWriter::write (XMLBufferWriter &xml, const OScalar< T > &s1)
 Writes an OScalar object.
template<class T>
void QDP::QDPFileWriter::write (XMLBufferWriter &xml, const multi1d< OScalar< T > > &s1)
 Writes an array of objects all to a single record.
template<class T>
void QDP::QDPFileReader::read (XMLReader &xml, OLattice< T > &s1)
 Reads an OLattice object.
template<class T>
void QDP::QDPFileReader::read (XMLReader &xml, multi1d< OLattice< T > > &s1)
 Reads an array of objects all in a single record.
template<class T>
void QDP::QDPFileWriter::write (XMLBufferWriter &xml, const OLattice< T > &s1)
 Writes an OLattice object.
template<class T>
void QDP::QDPFileWriter::write (XMLBufferWriter &xml, const OLattice< T > &s1, const multi1d< int > &lower_left, const multi1d< int > &upper_right)
 Writes a hypercube from an OLattice object.
template<class T>
void QDP::QDPFileWriter::write (XMLBufferWriter &xml, const multi1d< OLattice< T > > &s1)
 Writes an array of objects all to a single record.
template<class T>
void QDP::QDPFileWriter::write (XMLBufferWriter &xml, const multi1d< OLattice< T > > &s1, const multi1d< int > &lower_left, const multi1d< int > &upper_right)
 Writes a hypercube of an array of objects all to a single record.

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<>
char * QDP::QIOStringTraits< float >::tprec = (char *)"F"
template<>
char * QDP::QIOStringTraits< double >::tprec = (char *)"D"
template<>
char * QDP::QIOStringTraits< int >::tprec = (char *)"I"
template<>
char * QDP::QIOStringTraits< multi1d< LatticeColorMatrixF3 > >::tname = (char *)"QDP_F3_ColorMatrix"
template<>
char * QDP::QIOStringTraits< multi1d< LatticeColorMatrixD3 > >::tname = (char *)"QDP_D3_ColorMatrix"
template<>
char * QDP::QIOStringTraits< multi1d< LatticeDiracFermionF3 > >::tname = (char *)"USQCD_F3_DiracFermion"
template<>
char * QDP::QIOStringTraits< multi1d< LatticeDiracFermionD3 > >::tname = (char *)"USQCD_D3_DiracFermion"
template<>
char * QDP::QIOStringTraits< LatticeColorVectorF3 >::tname = (char *)"USQCD_F3_ColorVector"
template<>
char * QDP::QIOStringTraits< LatticeColorVectorD3 >::tname = (char *)"USQCD_D3_ColorVector"
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

Enumeration Type Documentation

◆ QDP_filemode_t

File open mode.

Enumerator
QDPIO_CREATE 
QDPIO_OPEN 
QDPIO_APPEND 

Definition at line 41 of file qdp_qdpio.h.

◆ QDP_iostate_t

QDPIO state.

Enumerator
QDPIO_goodbit 
QDPIO_eofbit 
QDPIO_failbit 
QDPIO_badbit 

Definition at line 49 of file qdp_qdpio.h.

◆ QDP_serialparallel_t

File access mode.

Enumerator
QDPIO_SERIAL 
QDPIO_PARALLEL 

Definition at line 26 of file qdp_qdpio.h.

◆ QDP_volfmt_t

File format.

Enumerator
QDPIO_SINGLEFILE 
QDPIO_MULTIFILE 
QDPIO_PARTFILE 

Definition at line 33 of file qdp_qdpio.h.

Function Documentation

◆ close() [1/2]

void QDP::close ( QDPFileReader & qsw)

Close a QDPFileReader.

Closes a QDPFileReader.

Definition at line 207 of file qdp_qdpio.cc.

References QDP::QDPFileReader::close().

Referenced by QDP::MapObjectDisk< K, V >::~MapObjectDisk().

◆ close() [2/2]

void QDP::close ( QDPFileWriter & qsw)

Closes a QDPFileWriter.

Definition at line 511 of file qdp_qdpio.cc.

References QDP::QDPFileWriter::close().

◆ is_open() [1/2]

bool QDP::is_open ( QDPFileReader & qsw)

Is a QDPFileReader open.

Queries whether a QDPFileReader is open.

Definition at line 213 of file qdp_qdpio.cc.

References QDP::QDPFileReader::is_open().

◆ is_open() [2/2]

bool QDP::is_open ( QDPFileWriter & qsw)

Queries whether a QDPFileWriter is open.

Definition at line 517 of file qdp_qdpio.cc.

References QDP::QDPFileWriter::is_open().

◆ QDPOLatticeFactoryGet()

template<class T>
void QDP::QDPOLatticeFactoryGet ( char * buf,
size_t linear,
int count,
void * arg )

Function for moving data.

Data is moved from the one buffer to another with a specified offset.

Parameters
bufThe destination buffer
linearThe source buffer offset
countThe number of data to move
argThe source buffer.

Definition at line 1433 of file qdp_qdpio.h.

Referenced by QDP::QDPFileWriter::write(), and QDP::QDPFileWriter::write().

◆ QDPOLatticeFactoryGetArray()

template<class T>
void QDP::QDPOLatticeFactoryGetArray ( char * buf,
size_t linear,
int count,
void * arg )

Function for moving array data.

Data is moved from the one buffer to another with a specified offset. The data is taken to be in multi1d< OLattice<T> > form.

Parameters
bufThe source buffer
linearThe source buffer offset
countIgnored
argThe destination buffer.

Definition at line 1452 of file qdp_qdpio.h.

References QDP::multi1d< T >::size().

Referenced by QDP::QDPFileWriter::write(), and QDP::QDPFileWriter::write().

◆ QDPOLatticeFactoryPut()

template<class T>
void QDP::QDPOLatticeFactoryPut ( char * buf,
size_t linear,
int count,
void * arg )

Writes a BinaryBufferWriter object.

Parameters
rec_xmlThe (user) record metadata.
slThe data Function for moving data

Data is moved from the one buffer to another with a specified offset.

Parameters
bufThe source buffer
linearThe destination buffer offset
countThe number of data to move
argThe destination buffer.

Definition at line 1183 of file qdp_qdpio.h.

Referenced by QDP::QDPFileReader::read().

◆ QDPOLatticeFactoryPutArray()

template<class T>
void QDP::QDPOLatticeFactoryPutArray ( char * buf,
size_t linear,
int count,
void * arg )

Function for moving array data.

Data is moved from the one buffer to another buffer array with a specified offset. The data is taken to be in multi1d< OLattice<T> > form.

Parameters
bufThe source buffer
linearThe destination buffer offset
countIgnored
argThe destination buffer.

Definition at line 1203 of file qdp_qdpio.h.

References QDP::multi1d< T >::size().

Referenced by QDP::QDPFileReader::read().

◆ QDPOScalarFactoryGet()

template<class T>
void QDP::QDPOScalarFactoryGet ( char * buf,
size_t linear,
int count,
void * arg )

Function for moving data.

Parameters
rec_xmlThe (user) record metadata.
slThe data

Data is moved from the one buffer to another with a specified offset.

Parameters
bufThe destination buffer
linearThe source buffer offset
countThe number of data to move
argThe source buffer.

Definition at line 1051 of file qdp_qdpio.h.

Referenced by QDP::QDPFileWriter::write(), QDP::QDPFileWriter::write(), and QDP::QDPFileWriter::write().

◆ QDPOScalarFactoryPut()

template<class T>
void QDP::QDPOScalarFactoryPut ( char * buf,
size_t linear,
int count,
void * arg )

Function for moving data.

Data is moved from the one buffer to another with a specified offset.

Parameters
bufThe source buffer
linearThe offset
countThe number of data to move
argThe destination buffer.

Definition at line 834 of file qdp_qdpio.h.

Referenced by QDP::QDPFileReader::read(), QDP::QDPFileReader::read(), and QDP::QDPFileReader::read().

◆ read() [1/9]

template<typename T>
void QDP::QDPFileReader::read ( XMLReader & rec_xml,
multi1d< OLattice< T > > & s1 )

Reads an array of objects all in a single record.

Reads an array of OLattice objects.

This implementation is only correct for scalar ILattice.

Parameters
rec_xmlThe (user) record metadata.
slThe data

Definition at line 1324 of file qdp_qdpio.h.

References QDP::QDPIO::cerr, clear(), QDP::QDPIO::cout, QDP::XMLReader::open(), QDP::Layout::primaryNode(), QDP::QDP_abort(), QDP::QDPIO_badbit, QDP::QDPOLatticeFactoryPutArray(), QDP::multi1d< T >::size(), and QDP::zero_rep().

◆ read() [2/9]

template<typename T>
void QDP::QDPFileReader::read ( XMLReader & rec_xml,
multi1d< OScalar< T > > & s1 )

Reads an array of objects all in a single record.

Reads an array of OScalar objects.

This implementation is only correct for scalar ILattice

Parameters
rec_xmlThe (user) record metadata.
slThe data

Definition at line 943 of file qdp_qdpio.h.

References QDP::QDPIO::cerr, clear(), QDP::QDPIO::cout, QDP::XMLReader::open(), QDP::Layout::primaryNode(), QDP::QDP_abort(), QDP::QDPIO_badbit, QDP::QDPOScalarFactoryPut(), QDP::multi1d< T >::size(), and QDP::multi1d< T >::slice().

◆ read() [3/9]

template<class T>
void QDP::QDPFileReader::read ( XMLReader & rec_xml,
OLattice< T > & s1 )

Reads an OLattice object.

This implementation is only correct for scalar ILattice.

Parameters
rec_xmlThe (user) record metadata.
slThe data

Definition at line 1225 of file qdp_qdpio.h.

References QDP::QDPIO::cerr, clear(), QDP::QDPIO::cout, QDP::OLattice< T >::getF(), QDP::XMLReader::open(), QDP::Layout::primaryNode(), QDP::QDP_abort(), QDP::QDPIO_badbit, QDP::QDPOLatticeFactoryPut(), and QDP::zero_rep().

◆ read() [4/9]

template<typename T>
void QDP::QDPFileReader::read ( XMLReader & rec_xml,
OScalar< T > & s1 )

Reads an OScalar object.

This implementation is only correct for scalar ILattice

Parameters
rec_xmlThe (user) record metadata.
slThe data

Definition at line 852 of file qdp_qdpio.h.

References QDP::QDPIO::cerr, clear(), QDP::QDPIO::cout, QDP::OScalar< T >::elem(), QDP::XMLReader::open(), QDP::Layout::primaryNode(), QDP::QDP_abort(), QDP::QDPIO_badbit, and QDP::QDPOScalarFactoryPut().

◆ read() [5/9]

void QDP::read ( QDPFileReader & qsw,
XMLReader & rec_xml,
BinaryBufferReader & s1 )
inline

Reads a BinaryBufferReader object.

Parameters
qswThe reader
rec_xmlThe user record metadata.
slThe data

Definition at line 477 of file qdp_qdpio.h.

References QDP::QDPFileReader::read().

◆ read() [6/9]

template<class T>
void QDP::read ( QDPFileReader & qsw,
XMLReader & rec_xml,
multi1d< OLattice< T > > & s1 )

Reads an array of OLattice objects.

Parameters
qswThe reader
rec_xmlThe user record metadata.
slThe data

Definition at line 465 of file qdp_qdpio.h.

References QDP::QDPFileReader::read().

◆ read() [7/9]

template<class T>
void QDP::read ( QDPFileReader & qsw,
XMLReader & rec_xml,
multi1d< OScalar< T > > & s1 )

Reads an array of OScalar object.

Parameters
qswThe reader
rec_xmlThe user record metadata.
slThe data

Definition at line 453 of file qdp_qdpio.h.

References QDP::QDPFileReader::read().

◆ read() [8/9]

template<class T>
void QDP::read ( QDPFileReader & qsw,
XMLReader & rec_xml,
OLattice< T > & s1 )

Reads an array of OLattice objects.

Parameters
qswThe reader
rec_xmlThe user record metadata.
slThe data

Definition at line 441 of file qdp_qdpio.h.

References QDP::QDPFileReader::read().

◆ read() [9/9]

template<class T>
void QDP::read ( QDPFileReader & qsw,
XMLReader & rec_xml,
OScalar< T > & s1 )

Reads an OScalar object.

Parameters
qswThe reader
rec_xmlThe user record metadata.
slThe data

Definition at line 429 of file qdp_qdpio.h.

References QDP::QDPFileReader::read().

◆ write() [1/13]

template<class T>
void QDP::QDPFileWriter::write ( XMLBufferWriter & rec_xml,
const multi1d< OLattice< T > > & s1 )

Writes an array of objects all to a single record.

Writes an array of OLattice objects.

Parameters
xmlThe user record metadata.
slThe data

This implementation is only correct for scalar ILattice.

Parameters
rec_xmlThe (user) record metadata.
slThe data

Definition at line 1575 of file qdp_qdpio.h.

References QDP::QDPIO::cerr, clear(), get(), QDP::Layout::primaryNode(), QDP::QDP_abort(), QDP::QDPIO_badbit, QDP::QDPOLatticeFactoryGetArray(), QDP::QIOStringTraits< float >::tprec, QDP::QIOStringTraits< multi1d< LatticeColorMatrixF3 > >::tname, QDP::XMLBufferWriter::str(), QDP::NumColors< T >::value, and QDP::NumSpins< T >::value.

◆ write() [2/13]

template<class T>
void QDP::QDPFileWriter::write ( XMLBufferWriter & rec_xml,
const multi1d< OLattice< T > > & s1,
const multi1d< int > & lower_left,
const multi1d< int > & upper_right )

Writes a hypercube of an array of objects all to a single record.

Writes a hypercube from an array of OLattice objects.

Parameters
xmlThe user record metadata.
slThe data
lower_lefta multi1d<int> holding coordinates of lower left corner of the hypercube
upper_righta multi1d<int> holding coordinates of the upper right corner of the hypercube

This implementation is only correct for scalar ILattice.

Parameters
rec_xmlThe (user) record metadata.
slThe data
lower_leftA multi1d of integers containing the lower left lower left corner of the hypercube
upper_rightA multi1d of integers containing the coordinates of the upper right corner of the hypercube

Definition at line 1624 of file qdp_qdpio.h.

References QDP::QDPIO::cerr, clear(), get(), QDP::Layout::primaryNode(), QDP::QDP_abort(), QDP::QDPIO_badbit, QDP::QDPOLatticeFactoryGetArray(), QDP::QIOStringTraits< float >::tprec, QDP::QIOStringTraits< multi1d< LatticeColorMatrixF3 > >::tname, QDP::multi1d< T >::size(), QDP::multi1d< T >::slice(), QDP::XMLBufferWriter::str(), QDP::NumColors< T >::value, and QDP::NumSpins< T >::value.

◆ write() [3/13]

template<class T>
void QDP::QDPFileWriter::write ( XMLBufferWriter & rec_xml,
const multi1d< OScalar< T > > & s1 )

Writes an array of objects all to a single record.

Writes an array of OScalar objects.

Parameters
xmlThe user record metadata.
slThe data

This implementation is only correct for scalar ILattice.

Parameters
rec_xmlThe (user) record metadata.
slThe data Reads an array of OLattice objects

This implementation is only correct for scalar ILattice.

Parameters
rec_xmlThe (user) record metadata.
slThe data

Definition at line 1124 of file qdp_qdpio.h.

References QDP::QDPIO::cerr, clear(), get(), QDP::Layout::primaryNode(), QDP::QDP_abort(), QDP::QDPIO_badbit, QDP::QDPOScalarFactoryGet(), QDP::QIOStringTraits< float >::tprec, QDP::QIOStringTraits< multi1d< LatticeColorMatrixF3 > >::tname, QDP::XMLBufferWriter::str(), QDP::NumColors< T >::value, and QDP::NumSpins< T >::value.

◆ write() [4/13]

template<class T>
void QDP::QDPFileWriter::write ( XMLBufferWriter & rec_xml,
const OLattice< T > & s1 )

Writes an OLattice object.

Parameters
xmlThe user record metadata.
slThe data

This implementation is only correct for scalar ILattice.

Parameters
rec_xmlThe user record metadata.
slThe data

Definition at line 1475 of file qdp_qdpio.h.

References QDP::QDPIO::cerr, clear(), get(), QDP::OLattice< T >::getF(), QDP::Layout::primaryNode(), QDP::QDP_abort(), QDP::QDPIO_badbit, QDP::QDPOLatticeFactoryGet(), QDP::QIOStringTraits< float >::tprec, QDP::QIOStringTraits< multi1d< LatticeColorMatrixF3 > >::tname, QDP::XMLBufferWriter::str(), QDP::NumColors< T >::value, and QDP::NumSpins< T >::value.

◆ write() [5/13]

template<class T>
void QDP::QDPFileWriter::write ( XMLBufferWriter & rec_xml,
const OLattice< T > & s1,
const multi1d< int > & lower_left,
const multi1d< int > & upper_right )

Writes a hypercube from an OLattice object.

Parameters
xmlThe user record metadata.
slThe data
lower_lefta multi1d<int> holding coordinates of lower left corner of the hypercube
upper_righta multi1d<int> holding coordinates of the upper right corner of the hypercube

This implementation is only correct for scalar ILattice.

Parameters
rec_xmlThe user record metadata.
slThe data
lower_leftA multi1d of integers containing the lower left lower left corner of the hypercube
upper_rightA multi1d of integers containing the coordinates of the upper right corner of the hypercube

Definition at line 1521 of file qdp_qdpio.h.

References QDP::QDPIO::cerr, clear(), get(), QDP::OLattice< T >::getF(), QDP::Layout::primaryNode(), QDP::QDP_abort(), QDP::QDPIO_badbit, QDP::QDPOLatticeFactoryGet(), QDP::QIOStringTraits< float >::tprec, QDP::QIOStringTraits< multi1d< LatticeColorMatrixF3 > >::tname, QDP::multi1d< T >::size(), QDP::multi1d< T >::slice(), QDP::XMLBufferWriter::str(), QDP::NumColors< T >::value, and QDP::NumSpins< T >::value.

◆ write() [6/13]

template<class T>
void QDP::QDPFileWriter::write ( XMLBufferWriter & rec_xml,
const OScalar< T > & s1 )

Writes an OScalar object.

Parameters
xmlThe user record metadata.
slThe data

This implementation is only correct for scalar ILattice.

Parameters
rec_xmlThe (user) record metadata.
slThe data

Definition at line 1069 of file qdp_qdpio.h.

References QDP::QDPIO::cerr, clear(), QDP::OScalar< T >::elem(), get(), QDP::Layout::primaryNode(), QDP::QDP_abort(), QDP::QDPIO_badbit, QDP::QDPOScalarFactoryGet(), QDP::QIOStringTraits< float >::tprec, QDP::QIOStringTraits< multi1d< LatticeColorMatrixF3 > >::tname, QDP::XMLBufferWriter::str(), QDP::NumColors< T >::value, and QDP::NumSpins< T >::value.

◆ write() [7/13]

void QDP::write ( QDPFileWriter & qsw,
XMLBufferWriter & rec_xml,
BinaryBufferWriter & s1 )
inline

Writes a XML plus BinaryBufferWriter pair.

Parameters
qswThe writer
xmlThe user record metadata.
slThe data

Definition at line 807 of file qdp_qdpio.h.

References QDP::QDPFileWriter::write().

◆ write() [8/13]

template<class T>
void QDP::write ( QDPFileWriter & qsw,
XMLBufferWriter & rec_xml,
const multi1d< OLattice< T > > & s1 )

Writes an array of OLattice objects.

Parameters
qswThe writer
xmlThe user record metadata.
slThe data

Definition at line 781 of file qdp_qdpio.h.

References QDP::QDPFileWriter::write().

◆ write() [9/13]

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.

Parameters
qswThe writer
xmlThe user record metadata.
slThe data
lower_leftA multi1d of integers containing the lower left lower left corner of the hypercube
upper_rightA multi1d of integers containing the coordinates of the upper right corner of the hypercube

Definition at line 795 of file qdp_qdpio.h.

References QDP::QDPFileWriter::write().

◆ write() [10/13]

template<class T>
void QDP::write ( QDPFileWriter & qsw,
XMLBufferWriter & rec_xml,
const multi1d< OScalar< T > > & s1 )

Writes an array of OScalar objects.

Parameters
qswThe writer
xmlThe user record metadata.
slThe data

Definition at line 769 of file qdp_qdpio.h.

References QDP::QDPFileWriter::write().

◆ write() [11/13]

template<class T>
void QDP::write ( QDPFileWriter & qsw,
XMLBufferWriter & rec_xml,
const OLattice< T > & s1 )

Writes an OLattice object.

Parameters
qswThe writer
xmlThe user record metadata.
slThe data

Definition at line 743 of file qdp_qdpio.h.

References QDP::QDPFileWriter::write().

◆ write() [12/13]

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.

Parameters
qswThe writer
xmlThe user record metadata.
slThe data
lower_leftA multi1d of integers containing the lower left lower left corner of the hypercube
upper_rightA multi1d of integers containing the coordinates of the upper right corner of the hypercube

Definition at line 757 of file qdp_qdpio.h.

References QDP::QDPFileWriter::write().

◆ write() [13/13]

template<class T>
void QDP::write ( QDPFileWriter & qsw,
XMLBufferWriter & rec_xml,
const OScalar< T > & s1 )

Writes an OScalar object.

Parameters
qswThe writer
xmlThe user record metadata.
slThe data

Definition at line 731 of file qdp_qdpio.h.

References QDP::QDPFileWriter::write().

Variable Documentation

◆ NumColors< PColorMatrix< T, N > >::value

template<class T, int N>
int QDP::NumColors< PColorMatrix< T, N > >::value = N

Definition at line 296 of file qdp_qdpio.h.

◆ NumColors< PColorVector< T, N > >::value

template<class T, int N>
int QDP::NumColors< PColorVector< T, N > >::value = N

Definition at line 288 of file qdp_qdpio.h.

◆ NumColors< PSpinMatrix< T, N > >::value

template<class T, int N>
int QDP::NumColors< PSpinMatrix< T, N > >::value = NumColors<T>::value

Definition at line 277 of file qdp_qdpio.h.

◆ NumColors< PSpinVector< T, N > >::value

template<class T, int N>
int QDP::NumColors< PSpinVector< T, N > >::value = NumColors<T>::value

Definition at line 269 of file qdp_qdpio.h.

◆ NumColors< RComplex< T > >::value

template<class T>
int QDP::NumColors< RComplex< T > >::value = 1

Definition at line 258 of file qdp_qdpio.h.

◆ NumColors< RScalar< T > >::value

template<class T>
int QDP::NumColors< RScalar< T > >::value = 1

Definition at line 249 of file qdp_qdpio.h.

◆ NumColors< T1< T2 > >::value

template<template< class > class T1, class T2>
int QDP::NumColors< T1< T2 > >::value = NumColors<T2>::value

Definition at line 305 of file qdp_qdpio.h.

◆ NumSpins< PColorMatrix< T, N > >::value

template<class T, int N>
int QDP::NumSpins< PColorMatrix< T, N > >::value = NumSpins<T>::value

Definition at line 219 of file qdp_qdpio.h.

◆ NumSpins< PColorVector< T, N > >::value

template<class T, int N>
int QDP::NumSpins< PColorVector< T, N > >::value = NumSpins<T>::value

Definition at line 211 of file qdp_qdpio.h.

◆ NumSpins< PSpinMatrix< T, N > >::value

template<class T, int N>
int QDP::NumSpins< PSpinMatrix< T, N > >::value = N

Definition at line 200 of file qdp_qdpio.h.

◆ NumSpins< PSpinVector< T, N > >::value

template<class T, int N>
int QDP::NumSpins< PSpinVector< T, N > >::value = N

Definition at line 192 of file qdp_qdpio.h.

◆ NumSpins< RComplex< T > >::value

template<class T>
int QDP::NumSpins< RComplex< T > >::value = 1

Definition at line 181 of file qdp_qdpio.h.

◆ NumSpins< RScalar< T > >::value

template<class T>
int QDP::NumSpins< RScalar< T > >::value = 1

Definition at line 172 of file qdp_qdpio.h.

Referenced by readArchivHeader().

◆ NumSpins< T1< T2 > >::value

template<template< class > class T1, class T2>
int QDP::NumSpins< T1< T2 > >::value = NumSpins<T2>::value

Definition at line 228 of file qdp_qdpio.h.

◆ QIOStringTraits< double >::tprec

template<>
char* QDP::QIOStringTraits< double >::tprec = (char *)"D"

Definition at line 32 of file qdp_qio_strings.cc.

◆ QIOStringTraits< float >::tprec

◆ QIOStringTraits< int >::tprec

template<>
char* QDP::QIOStringTraits< int >::tprec = (char *)"I"

Definition at line 35 of file qdp_qio_strings.cc.

◆ QIOStringTraits< LatticeColorVectorD3 >::tname

template<>
char* QDP::QIOStringTraits< LatticeColorVectorD3 >::tname = (char *)"USQCD_D3_ColorVector"

Definition at line 25 of file qdp_qio_strings.cc.

◆ QIOStringTraits< LatticeColorVectorF3 >::tname

template<>
char* QDP::QIOStringTraits< LatticeColorVectorF3 >::tname = (char *)"USQCD_F3_ColorVector"

Definition at line 22 of file qdp_qio_strings.cc.

◆ QIOStringTraits< multi1d< LatticeColorMatrixD3 > >::tname

template<>
char * QDP::QIOStringTraits< multi1d< LatticeColorMatrixD3 > >::tname = (char *)"QDP_D3_ColorMatrix"

Definition at line 12 of file qdp_qio_strings.cc.

◆ QIOStringTraits< multi1d< LatticeColorMatrixF3 > >::tname

◆ QIOStringTraits< multi1d< LatticeDiracFermionD3 > >::tname

template<>
char * QDP::QIOStringTraits< multi1d< LatticeDiracFermionD3 > >::tname = (char *)"USQCD_D3_DiracFermion"

Definition at line 18 of file qdp_qio_strings.cc.

◆ QIOStringTraits< multi1d< LatticeDiracFermionF3 > >::tname

template<>
char * QDP::QIOStringTraits< multi1d< LatticeDiracFermionF3 > >::tname = (char *)"USQCD_F3_DiracFermion"

Definition at line 15 of file qdp_qio_strings.cc.

◆ QIOStringTraits< multi1d< OLattice< T > > >::tname

template<typename T>
char* QDP::QIOStringTraits< multi1d< OLattice< T > > >::tname = (char *)"Lattice"

multi1d<LatticeType>

Definition at line 116 of file qdp_qdpio.h.

◆ QIOStringTraits< multi1d< OScalar< T > > >::tname

template<typename T>
char* QDP::QIOStringTraits< multi1d< OScalar< T > > >::tname = (char *)"Scalar"

multi1d<ScalarType>

Definition at line 120 of file qdp_qdpio.h.

◆ QIOStringTraits< OLattice< T > >::tname

template<typename T>
char* QDP::QIOStringTraits< OLattice< T > >::tname = (char *)"Lattice"

Lattice Type.

Definition at line 108 of file qdp_qdpio.h.

◆ QIOStringTraits< OScalar< T > >::tname

template<typename T>
char* QDP::QIOStringTraits< OScalar< T > >::tname = (char *)"Scalar"

Scalar Type.

Definition at line 112 of file qdp_qdpio.h.

◆ QIOStringTraits< T >::tname

template<typename T>
char* QDP::QIOStringTraits< T >::tname = (char *)"QDP_GenericType"

Generic type.

Definition at line 104 of file qdp_qdpio.h.

◆ QIOStringTraits< T >::tprec

template<typename T>
char* QDP::QIOStringTraits< T >::tprec = (char *)"U"

Unknown precision string.

Definition at line 124 of file qdp_qdpio.h.