|
QDP++
|
Forward empty decl. More...
Classes | |
| class | QDP::BinaryStoreDB< K, D > |
| DB Base class. More... | |
| class | QDP::TextReader |
| Text input class. More... | |
| class | QDP::TextBufferReader |
| Text buffer input class. More... | |
| class | QDP::TextFileReader |
| Text file input class. More... | |
| class | QDP::TextWriter |
| Text output base class. More... | |
| class | QDP::TextBufferWriter |
| Text buffer output class. More... | |
| class | QDP::TextFileWriter |
| Text output class. More... | |
| class | QDP::BinaryReader |
| Binary input base class. More... | |
| class | QDP::BinaryBufferReader |
| Binary buffer input class. More... | |
| class | QDP::BinaryFileReader |
| Binary file input class. More... | |
| class | QDP::BinaryWriter |
| Binary writer base class. More... | |
| class | QDP::BinaryBufferWriter |
| Binary buffer output class. More... | |
| class | QDP::BinaryFileWriter |
| Binary file output class. More... | |
| class | QDP::BinaryReaderWriter |
| Binary input/output base class. More... | |
| class | QDP::BinaryBufferReaderWriter |
| Binary buffer input/ouput class. More... | |
| class | QDP::BinaryFileReaderWriter |
| Binary file input/output class. More... | |
| class | QDP::XMLReader |
| XML reader class. More... | |
| class | QDP::XMLFileWriter |
| Writes XML metadata to a file. More... | |
Functions | |
| static void | QDP::readArchivHeader (BinaryReader &cfg_in, ArchivGauge_t &header) |
| Read a QCD (NERSC) Archive format gauge field header. | |
| void | QDP::readArchiv (BinaryReader &cfg_in, multi1d< LatticeColorMatrix > &u, n_uint32_t &checksum, int mat_size, int float_size) |
| Read a NERSC Gauge Connection Archive file. | |
| static void | QDP::writeArchivHeader (BinaryWriter &cfg_out, const ArchivGauge_t &header) |
| Write a QCD (NERSC) Archive format gauge field. | |
| void | QDP::writeArchiv (BinaryWriter &cfg_out, const multi1d< LatticeColorMatrix > &u, int mat_size) |
| Writes a NERSC Gauge Connection Archive gauge configuration file. | |
| QDP::BinaryStoreDB< K, D >::BinaryStoreDB () | |
| QDP::BinaryStoreDB< K, D >::~BinaryStoreDB () | |
| virtual void | QDP::BinaryStoreDB< K, D >::setCacheSize (const unsigned int size) |
| virtual void | QDP::BinaryStoreDB< K, D >::setCacheSizeMB (const unsigned int size) |
| virtual void | QDP::BinaryStoreDB< K, D >::setPageSize (const unsigned int size) |
| virtual void | QDP::BinaryStoreDB< K, D >::setNumberBuckets (const unsigned int num) |
| virtual void | QDP::BinaryStoreDB< K, D >::enablePageMove (void) |
| virtual void | QDP::BinaryStoreDB< K, D >::disablePageMove (void) |
| virtual void | QDP::BinaryStoreDB< K, D >::setMaxUserInfoLen (unsigned int len) |
| virtual unsigned int | QDP::BinaryStoreDB< K, D >::getMaxUserInfoLen (void) const |
| virtual void | QDP::BinaryStoreDB< K, D >::setMaxNumberConfigs (unsigned int num) |
| virtual unsigned int | QDP::BinaryStoreDB< K, D >::getMaxNumberConfigs (void) const |
| virtual bool | QDP::BinaryStoreDB< K, D >::fileExists (const std::string &file) const |
| virtual void | QDP::BinaryStoreDB< K, D >::open (const std::string &file, int open_flags, int mode) |
| virtual void | QDP::BinaryStoreDB< K, D >::close (void) |
| bool | QDP::BinaryStoreDB< K, D >::exist (const K &key) |
| void | QDP::BinaryStoreDB< K, D >::insert (const K &key, const D &data) |
| void | QDP::BinaryStoreDB< K, D >::insertBinary (const std::string &key, const std::string &data) |
| int | QDP::BinaryStoreDB< K, D >::get (const K &key, D &data) |
| int | QDP::BinaryStoreDB< K, D >::getBinary (const std::string &key, std::string &data) |
| virtual void | QDP::BinaryStoreDB< K, D >::keys (std::vector< K > &keys_) |
| virtual void | QDP::BinaryStoreDB< K, D >::keysAndData (std::vector< K > &keys_, std::vector< D > &values_) |
| virtual void | QDP::BinaryStoreDB< K, D >::binaryKeysAndData (std::vector< std::string > keys_, std::vector< std::string > values_) |
| virtual void | QDP::BinaryStoreDB< K, D >::flush (void) |
| virtual std::string | QDP::BinaryStoreDB< K, D >::storageName (void) const |
| virtual void | QDP::BinaryStoreDB< K, D >::insertUserdata (const std::string &user_data) |
| virtual void | QDP::BinaryStoreDB< K, D >::getUserdata (std::string &user_data) |
| int | QDP::BinaryStoreDB< K, D >::get (K &key, D &data) |
| int | QDP::BinaryStoreDB< K, D >::getBinary (std::string &key, std::string &data) |
| TextReader & | QDP::operator>> (TextReader &txt, std::string &input) |
| TextReader & | QDP::operator>> (TextReader &txt, char &input) |
| TextReader & | QDP::operator>> (TextReader &txt, int &input) |
| TextReader & | QDP::operator>> (TextReader &txt, unsigned int &input) |
| TextReader & | QDP::operator>> (TextReader &txt, short int &input) |
| TextReader & | QDP::operator>> (TextReader &txt, unsigned short int &input) |
| TextReader & | QDP::operator>> (TextReader &txt, long int &input) |
| TextReader & | QDP::operator>> (TextReader &txt, unsigned long int &input) |
| TextReader & | QDP::operator>> (TextReader &txt, long long int &input) |
| TextReader & | QDP::operator>> (TextReader &txt, float &input) |
| TextReader & | QDP::operator>> (TextReader &txt, double &input) |
| TextReader & | QDP::operator>> (TextReader &txt, bool &input) |
| TextWriter & | QDP::operator<< (TextWriter &txt, const std::string &output) |
| TextWriter & | QDP::operator<< (TextWriter &txt, const char *output) |
| TextWriter & | QDP::operator<< (TextWriter &txt, char output) |
| TextWriter & | QDP::operator<< (TextWriter &txt, int output) |
| TextWriter & | QDP::operator<< (TextWriter &txt, unsigned int output) |
| TextWriter & | QDP::operator<< (TextWriter &txt, short int output) |
| TextWriter & | QDP::operator<< (TextWriter &txt, unsigned short int output) |
| TextWriter & | QDP::operator<< (TextWriter &txt, long int output) |
| TextWriter & | QDP::operator<< (TextWriter &txt, unsigned long int output) |
| TextWriter & | QDP::operator<< (TextWriter &txt, long long int output) |
| TextWriter & | QDP::operator<< (TextWriter &txt, float output) |
| TextWriter & | QDP::operator<< (TextWriter &txt, double output) |
| TextWriter & | QDP::operator<< (TextWriter &txt, bool output) |
| void | QDP::readDesc (BinaryReader &bin, std::string &input) |
| void | QDP::read (BinaryReader &bin, std::string &input, size_t maxBytes) |
| void | QDP::read (BinaryReader &bin, char &input) |
| void | QDP::read (BinaryReader &bin, int &input) |
| void | QDP::read (BinaryReader &bin, unsigned int &input) |
| void | QDP::read (BinaryReader &bin, short int &input) |
| void | QDP::read (BinaryReader &bin, unsigned short int &input) |
| void | QDP::read (BinaryReader &bin, long int &input) |
| void | QDP::read (BinaryReader &bin, unsigned long int &input) |
| void | QDP::read (BinaryReader &bin, long long int &input) |
| void | QDP::read (BinaryReader &bin, float &input) |
| void | QDP::read (BinaryReader &bin, double &input) |
| void | QDP::read (BinaryReader &bin, bool &input) |
| BinaryReader & | QDP::operator>> (BinaryReader &bin, char &input) |
| BinaryReader & | QDP::operator>> (BinaryReader &bin, int &input) |
| BinaryReader & | QDP::operator>> (BinaryReader &bin, unsigned int &input) |
| BinaryReader & | QDP::operator>> (BinaryReader &bin, short int &input) |
| BinaryReader & | QDP::operator>> (BinaryReader &bin, unsigned short int &input) |
| BinaryReader & | QDP::operator>> (BinaryReader &bin, long int &input) |
| BinaryReader & | QDP::operator>> (BinaryReader &bin, unsigned long int &input) |
| BinaryReader & | QDP::operator>> (BinaryReader &bin, long long int &input) |
| BinaryReader & | QDP::operator>> (BinaryReader &bin, float &input) |
| BinaryReader & | QDP::operator>> (BinaryReader &bin, double &input) |
| BinaryReader & | QDP::operator>> (BinaryReader &bin, bool &input) |
| void | QDP::read (BinaryReader &bin, std::complex< float > ¶m) |
| Complex reader. | |
| void | QDP::read (BinaryReader &bin, std::complex< double > ¶m) |
| Complex reader. | |
| template<class T> | |
| void | QDP::read (BinaryReader &bin, multi1d< T > &d) |
| Read a binary multi1d object. | |
| template<class T> | |
| void | QDP::read (BinaryReader &bin, multi1d< T > &d, int num) |
| Read a binary multi1d object. | |
| template<class T> | |
| void | QDP::read (BinaryReader &bin, multi2d< T > &d, int num1, int num2) |
| Read a binary multi2d object. | |
| template<class T> | |
| void | QDP::read (BinaryReader &bin, multi2d< T > &d) |
| Read a binary multi2d element. | |
| template<class T> | |
| void | QDP::read (BinaryReader &bin, multi3d< T > &d) |
| Read a binary multi3d element. | |
| template<class T> | |
| void | QDP::read (BinaryReader &bin, multi4d< T > &d) |
| Read a binary multi4d element. | |
| template<class T> | |
| void | QDP::read (BinaryReader &bin, multi5d< T > &d) |
| Read a binary multi5d element. | |
| template<class T> | |
| void | QDP::read (BinaryReader &bin, multiNd< T > &d) |
| Read a binary multiNd element. | |
| template<class T> | |
| void | QDP::read (BinaryReader &bin, std::vector< T > &d) |
| Read a binary std::vector object. | |
| template<class T> | |
| void | QDP::read (BinaryReader &bin, std::list< T > &d) |
| Read a binary std::list object. | |
| template<class T> | |
| void | QDP::read (BinaryReader &bin, Array1dO< T > &d) |
| Read a binary Array1dO object. | |
| template<typename K, typename V> | |
| void | QDP::read (BinaryReader &bin, std::map< K, V > &d) |
| Read a binary std::map object. | |
| template<typename T1, typename T2> | |
| void | QDP::read (BinaryReader &bin, std::pair< T1, T2 > &d) |
| Read a binary std::pair object. | |
| void | QDP::writeDesc (BinaryWriter &bin, const std::string &output) |
| void | QDP::write (BinaryWriter &bin, const std::string &output) |
| void | QDP::write (BinaryWriter &bin, const char *output) |
| void | QDP::write (BinaryWriter &bin, char output) |
| void | QDP::write (BinaryWriter &bin, int output) |
| void | QDP::write (BinaryWriter &bin, unsigned int output) |
| void | QDP::write (BinaryWriter &bin, short int output) |
| void | QDP::write (BinaryWriter &bin, unsigned short int output) |
| void | QDP::write (BinaryWriter &bin, long int output) |
| void | QDP::write (BinaryWriter &bin, unsigned long int output) |
| void | QDP::write (BinaryWriter &bin, long long int output) |
| void | QDP::write (BinaryWriter &bin, float output) |
| void | QDP::write (BinaryWriter &bin, double output) |
| void | QDP::write (BinaryWriter &bin, bool output) |
| BinaryWriter & | QDP::operator<< (BinaryWriter &bin, const std::string &output) |
| BinaryWriter & | QDP::operator<< (BinaryWriter &bin, const char *output) |
| BinaryWriter & | QDP::operator<< (BinaryWriter &bin, char output) |
| BinaryWriter & | QDP::operator<< (BinaryWriter &bin, int output) |
| BinaryWriter & | QDP::operator<< (BinaryWriter &bin, unsigned int output) |
| BinaryWriter & | QDP::operator<< (BinaryWriter &bin, short int output) |
| BinaryWriter & | QDP::operator<< (BinaryWriter &bin, unsigned short int output) |
| BinaryWriter & | QDP::operator<< (BinaryWriter &bin, long int output) |
| BinaryWriter & | QDP::operator<< (BinaryWriter &bin, unsigned long int output) |
| BinaryWriter & | QDP::operator<< (BinaryWriter &bin, long long int output) |
| BinaryWriter & | QDP::operator<< (BinaryWriter &bin, float output) |
| BinaryWriter & | QDP::operator<< (BinaryWriter &bin, double output) |
| BinaryWriter & | QDP::operator<< (BinaryWriter &bin, bool output) |
| void | QDP::write (BinaryWriter &bin, const std::complex< float > ¶m) |
| Complex writer. | |
| void | QDP::write (BinaryWriter &bin, const std::complex< double > ¶m) |
| Complex writer. | |
| template<class T> | |
| void | QDP::write (BinaryWriter &bin, const multi1d< T > &d) |
| Write all of a binary multi1d object. | |
| template<class T> | |
| void | QDP::write (BinaryWriter &bin, const multi1d< T > &d, int num) |
| Write some or all of a binary multi1d object. | |
| template<class T> | |
| void | QDP::write (BinaryWriter &bin, const multi2d< T > &d) |
| Write a binary multi2d element. | |
| template<class T> | |
| void | QDP::write (BinaryWriter &bin, const multi3d< T > &d) |
| Write a binary multi3d element. | |
| template<class T> | |
| void | QDP::write (BinaryWriter &bin, const multi4d< T > &d) |
| Write a binary multi4d element. | |
| template<class T> | |
| void | QDP::write (BinaryWriter &bin, const multi5d< T > &d) |
| Write a binary multi5d element. | |
| template<class T> | |
| void | QDP::write (BinaryWriter &bin, const multiNd< T > &d) |
| Write a binary multiNd element. | |
| template<class T> | |
| void | QDP::write (BinaryWriter &bin, const std::vector< T > &d) |
| Write all of a binary std::vector object. | |
| template<class T> | |
| void | QDP::write (BinaryWriter &bin, const std::list< T > &d) |
| Write all of a binary std::list object. | |
| template<class T> | |
| void | QDP::write (BinaryWriter &bin, const Array1dO< T > &d) |
| Write all of a binary Array object. | |
| template<typename K, typename V> | |
| void | QDP::write (BinaryWriter &bin, const std::map< K, V > &d) |
| Write all of a binary std::map object. | |
| template<typename T1, typename T2> | |
| void | QDP::write (BinaryWriter &bin, const std::pair< T1, T2 > &d) |
| Write all of a binary std::pair object. | |
| QDP::ArchivGauge_t::ArchivGauge_t () | |
| Initializes a NERSC Archive header with default values. | |
| void | QDP::readArchiv (ArchivGauge_t &header, multi1d< LatticeColorMatrix > &u, const std::string &file) |
| Reads a NERSC Gauge Connection Archive format gauge field. | |
| void | QDP::readArchiv (XMLReader &xml, multi1d< LatticeColorMatrix > &u, const std::string &cfg_file) |
| Reads a NERSC Gauge Connection Archive gauge configuration file. | |
| void | QDP::readArchiv (multi1d< LatticeColorMatrix > &u, const std::string &cfg_file) |
| Reads a NERSC Gauge Connection Archive gauge configuration file. | |
| void | QDP::writeArchiv (ArchivGauge_t &header, const multi1d< LatticeColorMatrix > &u, const std::string &file) |
| Writes a NERSC Gauge Connection Archive gauge configuration file. | |
| void | QDP::writeArchiv (XMLBufferWriter &xml, const multi1d< LatticeColorMatrix > &u, const std::string &cfg_file) |
| Writes a NERSC Gauge Connection Archive gauge configuration file. | |
| void | QDP::writeArchiv (const multi1d< LatticeColorMatrix > &u, const std::string &cfg_file) |
| Writes a NERSC Gauge Connection Archive gauge configuration file. | |
Variables | |
| const int | QDP::db_cachesize = 50*1024*1024 |
| Fake cache and page sizes. | |
| const int | QDP::db_pagesize = 64*1024 |
| QDP::ArchivGauge_t::ArchivGauge_t | ( | ) |
Initializes a NERSC Archive header with default values.
The defaults are:
Definition at line 81 of file qdp_iogauge.cc.
References archive_date, boundary, checksum, creation_date, creator, creator_hardware, ensemble_id, ensemble_label, float_size, gethostname(), QDP::Layout::lattSize(), link, mat_size, QDP::Nc, QDP::Nd, nrow, QDP::QDP_error_exit(), sequence_number, and w_plaq.
|
inlinevirtual |
Return all pairs of keys and data in binary string form
| keys | user supplied empty vector to hold all keys |
| data | user supplied empty vector to hold data |
Definition at line 366 of file qdp_db_imp.h.
References QDP::Layout::primaryNode().
|
inline |
Empty constructor for a DB
Definition at line 44 of file qdp_db_imp.h.
References QDP::db_cachesize, and QDP::Layout::primaryNode().
|
inlinevirtual |
Definition at line 218 of file qdp_db_imp.h.
References QDP::QDPInternal::broadcast(), QDP::QDPIO::cerr, QDP::Layout::primaryNode(), and QDP::QDP_abort().
Referenced by ~BinaryStoreDB().
|
inlinevirtual |
Definition at line 134 of file qdp_db_imp.h.
References QDP::Layout::primaryNode().
|
inlinevirtual |
Set whether to move pages when close to save disk space
This only effective on writable database
Definition at line 128 of file qdp_db_imp.h.
References QDP::Layout::primaryNode().
|
inline |
Does this key exist in the store
| key | a key object |
Definition at line 237 of file qdp_db_imp.h.
References QDP::QDPInternal::broadcast(), and QDP::Layout::primaryNode().
|
inlinevirtual |
Check if a DB file exists before opening.
Definition at line 182 of file qdp_db_imp.h.
References QDP::QDPInternal::broadcast(), and QDP::Layout::primaryNode().
|
inlinevirtual |
Flush database in memory to disk
Definition at line 378 of file qdp_db_imp.h.
References QDP::Layout::primaryNode().
|
inline |
Get data for a given key
| key | user supplied key |
| data | after the call data will be populated |
Definition at line 300 of file qdp_db_imp.h.
References QDP::QDPInternal::broadcast(), and QDP::Layout::primaryNode().
|
inline |
Get data for a given key
| key | user supplied key |
| data | after the call data will be populated |
Definition at line 286 of file qdp_db_stub.h.
|
inline |
Get data for a given key in binary form
| key | user supplied key in string format |
| data | after the call data will be populated |
Definition at line 320 of file qdp_db_imp.h.
References QDP::QDPInternal::broadcast(), and QDP::Layout::primaryNode().
|
inline |
Get data for a given key in binary form
| key | user supplied key in string format |
| data | after the call data will be populated |
Definition at line 295 of file qdp_db_stub.h.
|
inlinevirtual |
Definition at line 168 of file qdp_db_imp.h.
References QDP::QDPInternal::broadcast(), and QDP::Layout::primaryNode().
|
inlinevirtual |
Definition at line 149 of file qdp_db_imp.h.
References QDP::QDPInternal::broadcast(), and QDP::Layout::primaryNode().
|
inlinevirtual |
Get user user data from the metadata database
| user_data | user supplied buffer to store user data |
Definition at line 426 of file qdp_db_imp.h.
References QDP::QDPInternal::broadcast(), QDP::QDPInternal::broadcast_str(), QDP::QDPIO::cerr, QDP::Layout::primaryNode(), and QDP::QDP_abort().
|
inline |
Insert a pair of data and key into the database data is not ensemble, but a vector of complex.
| key | a key |
| data | a user provided data |
Definition at line 257 of file qdp_db_imp.h.
References QDP::QDPInternal::broadcast(), QDP::QDPIO::cerr, QDP::Layout::primaryNode(), and QDP::QDP_abort().
|
inline |
Insert a pair of data and key into the database in string format
| key | a key |
| data | a user provided data |
Definition at line 279 of file qdp_db_imp.h.
References QDP::QDPInternal::broadcast(), QDP::QDPIO::cerr, QDP::Layout::primaryNode(), and QDP::QDP_abort().
|
inlinevirtual |
Insert user data into the metadata database
| user_data | user supplied data |
Definition at line 406 of file qdp_db_imp.h.
References QDP::QDPInternal::broadcast(), QDP::QDPIO::cerr, QDP::Layout::primaryNode(), and QDP::QDP_abort().
|
inlinevirtual |
Return all available keys to user
| keys | user suppled an empty vector which is populated by keys after this call. |
Definition at line 337 of file qdp_db_imp.h.
References QDP::Layout::primaryNode().
|
inlinevirtual |
Return all pairs of keys and data
| keys | user supplied empty vector to hold all keys |
| data | user supplied empty vector to hold data |
Definition at line 351 of file qdp_db_imp.h.
References QDP::Layout::primaryNode().
|
inlinevirtual |
Open
| file | filename holding all data and keys |
| open_flags | can be regular UNIX file open flags such as: O_RDONLY, O_RDWR, O_TRUNC |
| mode | regular unix file mode |
Definition at line 203 of file qdp_db_imp.h.
References QDP::QDPInternal::broadcast(), QDP::QDPIO::cerr, QDP::Layout::primaryNode(), and QDP::QDP_abort().
| BinaryWriter & QDP::operator<< | ( | BinaryWriter & | bin, |
| bool | output ) |
| BinaryWriter & QDP::operator<< | ( | BinaryWriter & | bin, |
| char | output ) |
| BinaryWriter & QDP::operator<< | ( | BinaryWriter & | bin, |
| const char * | output ) |
| BinaryWriter & QDP::operator<< | ( | BinaryWriter & | bin, |
| const std::string & | output ) |
| BinaryWriter & QDP::operator<< | ( | BinaryWriter & | bin, |
| double | output ) |
| BinaryWriter & QDP::operator<< | ( | BinaryWriter & | bin, |
| float | output ) |
| BinaryWriter & QDP::operator<< | ( | BinaryWriter & | bin, |
| int | output ) |
| BinaryWriter & QDP::operator<< | ( | BinaryWriter & | bin, |
| long int | output ) |
| BinaryWriter & QDP::operator<< | ( | BinaryWriter & | bin, |
| long long int | output ) |
| BinaryWriter & QDP::operator<< | ( | BinaryWriter & | bin, |
| short int | output ) |
| BinaryWriter & QDP::operator<< | ( | BinaryWriter & | bin, |
| unsigned int | output ) |
| BinaryWriter & QDP::operator<< | ( | BinaryWriter & | bin, |
| unsigned long int | output ) |
| BinaryWriter & QDP::operator<< | ( | BinaryWriter & | bin, |
| unsigned short int | output ) |
| TextWriter & QDP::operator<< | ( | TextWriter & | txt, |
| bool | output ) |
Definition at line 349 of file qdp_io.cc.
References QDP::TextWriter::write().
| TextWriter & QDP::operator<< | ( | TextWriter & | txt, |
| char | output ) |
| TextWriter & QDP::operator<< | ( | TextWriter & | txt, |
| const char * | output ) |
Definition at line 289 of file qdp_io.cc.
References QDP::TextWriter::write().
| TextWriter & QDP::operator<< | ( | TextWriter & | txt, |
| const std::string & | output ) |
Definition at line 283 of file qdp_io.cc.
References QDP::TextWriter::write().
| TextWriter & QDP::operator<< | ( | TextWriter & | txt, |
| double | output ) |
Definition at line 343 of file qdp_io.cc.
References QDP::TextWriter::write().
| TextWriter & QDP::operator<< | ( | TextWriter & | txt, |
| float | output ) |
Definition at line 337 of file qdp_io.cc.
References QDP::TextWriter::write().
| TextWriter & QDP::operator<< | ( | TextWriter & | txt, |
| int | output ) |
Definition at line 295 of file qdp_io.cc.
References QDP::TextWriter::write().
| TextWriter & QDP::operator<< | ( | TextWriter & | txt, |
| long int | output ) |
Definition at line 319 of file qdp_io.cc.
References QDP::TextWriter::write().
| TextWriter & QDP::operator<< | ( | TextWriter & | txt, |
| long long int | output ) |
Definition at line 331 of file qdp_io.cc.
References QDP::TextWriter::write().
| TextWriter & QDP::operator<< | ( | TextWriter & | txt, |
| short int | output ) |
Definition at line 307 of file qdp_io.cc.
References QDP::TextWriter::write().
| TextWriter & QDP::operator<< | ( | TextWriter & | txt, |
| unsigned int | output ) |
Definition at line 301 of file qdp_io.cc.
References QDP::TextWriter::write().
| TextWriter & QDP::operator<< | ( | TextWriter & | txt, |
| unsigned long int | output ) |
Definition at line 325 of file qdp_io.cc.
References QDP::TextWriter::write().
| TextWriter & QDP::operator<< | ( | TextWriter & | txt, |
| unsigned short int | output ) |
Definition at line 313 of file qdp_io.cc.
References QDP::TextWriter::write().
| BinaryReader & QDP::operator>> | ( | BinaryReader & | bin, |
| bool & | input ) |
| BinaryReader & QDP::operator>> | ( | BinaryReader & | bin, |
| char & | input ) |
| BinaryReader & QDP::operator>> | ( | BinaryReader & | bin, |
| double & | input ) |
| BinaryReader & QDP::operator>> | ( | BinaryReader & | bin, |
| float & | input ) |
| BinaryReader & QDP::operator>> | ( | BinaryReader & | bin, |
| int & | input ) |
| BinaryReader & QDP::operator>> | ( | BinaryReader & | bin, |
| long int & | input ) |
| BinaryReader & QDP::operator>> | ( | BinaryReader & | bin, |
| long long int & | input ) |
| BinaryReader & QDP::operator>> | ( | BinaryReader & | bin, |
| short int & | input ) |
| BinaryReader & QDP::operator>> | ( | BinaryReader & | bin, |
| unsigned int & | input ) |
| BinaryReader & QDP::operator>> | ( | BinaryReader & | bin, |
| unsigned long int & | input ) |
| BinaryReader & QDP::operator>> | ( | BinaryReader & | bin, |
| unsigned short int & | input ) |
| TextReader & QDP::operator>> | ( | TextReader & | txt, |
| bool & | input ) |
Definition at line 176 of file qdp_io.cc.
References QDP::TextReader::read().
| TextReader & QDP::operator>> | ( | TextReader & | txt, |
| char & | input ) |
Definition at line 126 of file qdp_io.cc.
References QDP::TextReader::read().
| TextReader & QDP::operator>> | ( | TextReader & | txt, |
| double & | input ) |
Definition at line 171 of file qdp_io.cc.
References QDP::TextReader::read().
| TextReader & QDP::operator>> | ( | TextReader & | txt, |
| float & | input ) |
Definition at line 166 of file qdp_io.cc.
References QDP::TextReader::read().
| TextReader & QDP::operator>> | ( | TextReader & | txt, |
| int & | input ) |
Definition at line 131 of file qdp_io.cc.
References QDP::TextReader::read().
| TextReader & QDP::operator>> | ( | TextReader & | txt, |
| long int & | input ) |
Definition at line 151 of file qdp_io.cc.
References QDP::TextReader::read().
| TextReader & QDP::operator>> | ( | TextReader & | txt, |
| long long int & | input ) |
Definition at line 161 of file qdp_io.cc.
References QDP::TextReader::read().
| TextReader & QDP::operator>> | ( | TextReader & | txt, |
| short int & | input ) |
Definition at line 141 of file qdp_io.cc.
References QDP::TextReader::read().
| TextReader & QDP::operator>> | ( | TextReader & | txt, |
| std::string & | input ) |
Definition at line 121 of file qdp_io.cc.
References QDP::TextReader::read().
| TextReader & QDP::operator>> | ( | TextReader & | txt, |
| unsigned int & | input ) |
Definition at line 136 of file qdp_io.cc.
References QDP::TextReader::read().
| TextReader & QDP::operator>> | ( | TextReader & | txt, |
| unsigned long int & | input ) |
Definition at line 156 of file qdp_io.cc.
References QDP::TextReader::read().
| TextReader & QDP::operator>> | ( | TextReader & | txt, |
| unsigned short int & | input ) |
Definition at line 146 of file qdp_io.cc.
References QDP::TextReader::read().
|
inline |
Read a binary Array1dO object.
This assumes that the number of elements to be read is also written in the file, i.e. that the data was written with the corresponding write code.
| bin | The initialised binary reader |
| d | The data to be filled. |
Definition at line 825 of file qdp_io.h.
References read(), QDP::Array1dO< T >::resize(), and QDP::Array1dO< T >::size().
| void QDP::read | ( | BinaryReader & | bin, |
| bool & | input ) |
Definition at line 822 of file qdp_io.cc.
References QDP::BinaryReader::read().
| void QDP::read | ( | BinaryReader & | bin, |
| char & | input ) |
Definition at line 782 of file qdp_io.cc.
References QDP::BinaryReader::read().
| void QDP::read | ( | BinaryReader & | bin, |
| double & | input ) |
Definition at line 818 of file qdp_io.cc.
References QDP::BinaryReader::read().
| void QDP::read | ( | BinaryReader & | bin, |
| float & | input ) |
Definition at line 814 of file qdp_io.cc.
References QDP::BinaryReader::read().
| void QDP::read | ( | BinaryReader & | bin, |
| int & | input ) |
Definition at line 786 of file qdp_io.cc.
References QDP::BinaryReader::read().
| void QDP::read | ( | BinaryReader & | bin, |
| long int & | input ) |
Definition at line 802 of file qdp_io.cc.
References QDP::BinaryReader::read().
| void QDP::read | ( | BinaryReader & | bin, |
| long long int & | input ) |
Definition at line 810 of file qdp_io.cc.
References QDP::BinaryReader::read().
|
inline |
Read a binary multi1d object.
This assumes that the number of elements to be read is also written in the file, i.e. that the data was written with the corresponding write code.
| bin | The initialised binary reader |
| d | The data to be filled. |
Definition at line 530 of file qdp_io.h.
References read(), QDP::multi1d< T >::resize(), and QDP::multi1d< T >::size().
|
inline |
Read a binary multi1d object.
This assumes that the number of elements to be read is not written in the file, i.e. that the data was written with the corresponding write code. The number of elements must therefore be supplied by the caller
| bin | The initialised binary reader |
| d | The data to be filled. |
| num | The number of elements. |
Definition at line 555 of file qdp_io.h.
References read().
|
inline |
Read a binary multi2d element.
This assumes that the number of elements to be read is also written in the file, i.e. that the data was written with the corresponding write code.
| bin | The initialised binary reader |
| d | The data to be filled. |
Definition at line 598 of file qdp_io.h.
References read(), QDP::multi2d< T >::resize(), QDP::multi2d< T >::size1(), and QDP::multi2d< T >::size2().
|
inline |
Read a binary multi2d object.
This assumes that the number of elements to be read is not written in the file, i.e. that the data was written with the corresponding write code. The number of elements must therefore be supplied by the caller
| bin | The initialised binary reader |
| d | The data to be filled. |
| num1 | The first dimension of the array |
| num2 | The second dimension of the array.. |
Definition at line 576 of file qdp_io.h.
References read().
|
inline |
Read a binary multi3d element.
This assumes that the number of elements to be read is also written in the file, i.e. that the data was written with the corresponding write code.
| bin | The initialised binary reader |
| d | The data to be filled. |
Definition at line 627 of file qdp_io.h.
References read(), QDP::multi3d< T >::resize(), QDP::multi3d< T >::size1(), QDP::multi3d< T >::size2(), and QDP::multi3d< T >::size3().
|
inline |
Read a binary multi4d element.
This assumes that the number of elements to be read is also written in the file, i.e. that the data was written with the corresponding write code.
| bin | The initialised binary reader |
| d | The data to be filled. |
Definition at line 665 of file qdp_io.h.
References read(), QDP::multi4d< T >::resize(), QDP::multi4d< T >::size1(), QDP::multi4d< T >::size2(), QDP::multi4d< T >::size3(), and QDP::multi4d< T >::size4().
|
inline |
Read a binary multi5d element.
This assumes that the number of elements to be read is also written in the file, i.e. that the data was written with the corresponding write code.
| bin | The initialised binary reader |
| d | The data to be filled. |
Definition at line 708 of file qdp_io.h.
References read(), QDP::multi5d< T >::resize(), QDP::multi5d< T >::size1(), QDP::multi5d< T >::size2(), QDP::multi5d< T >::size3(), QDP::multi5d< T >::size4(), and QDP::multi5d< T >::size5().
|
inline |
Read a binary multiNd element.
Definition at line 746 of file qdp_io.h.
References QDP::multiNd< T >::getElem(), QDP::multiNd< T >::numElem(), read(), and QDP::multiNd< T >::resize().
| void QDP::read | ( | BinaryReader & | bin, |
| short int & | input ) |
Definition at line 794 of file qdp_io.cc.
References QDP::BinaryReader::read().
| void QDP::read | ( | BinaryReader & | bin, |
| std::complex< double > & | param ) |
| void QDP::read | ( | BinaryReader & | bin, |
| std::complex< float > & | param ) |
|
inline |
Read a binary std::list object.
This assumes that the number of elements to be read is also written in the file, i.e. that the data was written with the corresponding write code.
| bin | The initialised binary reader |
| d | The data to be filled. |
Definition at line 795 of file qdp_io.h.
References read().
|
inline |
Read a binary std::map object.
This assumes that the number of elements to be read is also written in the file, i.e. that the data was written with the corresponding write code.
| bin | The initialised binary reader |
| d | The data to be filled. |
Definition at line 849 of file qdp_io.h.
References read().
|
inline |
Read a binary std::pair object.
This assumes that the number of elements to be read is also written in the file, i.e. that the data was written with the corresponding write code.
| bin | The initialised binary reader |
| d | The data to be filled. |
Definition at line 882 of file qdp_io.h.
References read().
| void QDP::read | ( | BinaryReader & | bin, |
| std::string & | input, | ||
| size_t | maxBytes ) |
Definition at line 778 of file qdp_io.cc.
References QDP::BinaryReader::read().
Referenced by QDP::MapObjectDisk< K, V >::get(), QDP::MapObjDiskEnv::getMetaData(), QDP::MapObjectDisk< K, V >::keys(), QDP::MapObjectDiskMultiple< K, V >::keys(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), read(), read(), read(), read(), read(), read(), read(), read(), read(), read(), read(), read(), read(), read(), read(), read(), read(), read(), read(), read(), read(), read(), read(), readArrayPrimitive(), readListPrimitive(), readVectorPrimitive(), and writeArchiv().
|
inline |
Read a binary std::vector object.
This assumes that the number of elements to be read is also written in the file, i.e. that the data was written with the corresponding write code.
| bin | The initialised binary reader |
| d | The data to be filled. |
Definition at line 771 of file qdp_io.h.
References read().
| void QDP::read | ( | BinaryReader & | bin, |
| unsigned int & | input ) |
Definition at line 790 of file qdp_io.cc.
References QDP::BinaryReader::read().
| void QDP::read | ( | BinaryReader & | bin, |
| unsigned long int & | input ) |
Definition at line 806 of file qdp_io.cc.
References QDP::BinaryReader::read().
| void QDP::read | ( | BinaryReader & | bin, |
| unsigned short int & | input ) |
Definition at line 798 of file qdp_io.cc.
References QDP::BinaryReader::read().
| void QDP::readArchiv | ( | ArchivGauge_t & | header, |
| multi1d< LatticeColorMatrix > & | u, | ||
| const std::string & | file ) |
Reads a NERSC Gauge Connection Archive format gauge field.
The data in the file is assumed to be big-endian. If the host nachine is little-endian, the data is byte-swapped. Based on the header information, the precision of the data can be converted.
| header | A container for the Gauge Connection header metadata ( Modify ) |
| u | The gauge configuration ( Modify ) |
| file | The file name ( Read ) |
DATATYPE header token has the value 4D_SU3_GAUGE_3x3 or two-row format matrices if it has the value 4D_SU3_GAUGE The plaquette, link and checksum values are ignored.
Definition at line 497 of file qdp_iogauge.cc.
References QDP::QDPIO::cerr, QDP::ArchivGauge_t::checksum, QDP::BinaryFileReader::close(), fabs(), QDP::ArchivGauge_t::float_size, QDP::ArchivGauge_t::link, QDP::ArchivGauge_t::mat_size, QDP_abort(), readArchiv(), readArchivHeader(), toBool(), and QDP::ArchivGauge_t::w_plaq.
| void QDP::readArchiv | ( | BinaryReader & | cfg_in, |
| multi1d< LatticeColorMatrix > & | u, | ||
| n_uint32_t & | checksum, | ||
| int | mat_size, | ||
| int | float_size ) |
Read a NERSC Gauge Connection Archive file.
Writes a NERSC Gauge Connection Archive gauge configuration file
An architecture-specific version of this routine is called by the generic readArchiv functions.
The data is written in big-endian IEEE format to the file. If the host nachine is little-endian, the data is byte-swapped.
| cfg_in | A binary reader |
| u | The gauge configuration |
| mat_size | The number of floating-point numbers per link matrix in the file. This should be 12 to write two-row format or 18 for three-row format. |
| float_size | |
| checksum | The 32bit parity checksum |
Definition at line 1003 of file qdp_parscalar_specific.cc.
References QDP::QDPInternal::broadcast(), QDP::QDPIO::cerr, cmplx(), crtesn(), QDP::OScalar< T >::elem(), QDP::Layout::lattSize(), QDP::Layout::linearSiteIndex(), Nc, Nd, QDP::Layout::nodeNumber(), pokeColor(), QDP::Layout::primaryNode(), QDP_abort(), QDP_error_exit(), QDP::BinaryReader::readArrayPrimaryNode(), QDP::QDPInternal::recvFromWait(), QDP::QDPInternal::route(), QDP::QDPInternal::sendToWait(), QDP::Layout::sitesOnNode(), and QDP::Layout::vol().
Referenced by readArchiv(), readArchiv(), and readArchiv().
| void QDP::readArchiv | ( | multi1d< LatticeColorMatrix > & | u, |
| const std::string & | cfg_file ) |
Reads a NERSC Gauge Connection Archive gauge configuration file.
The data in the file is assumed to be big-endian. If the host nachine is little-endian, the data is byte-swapped.
| u | The gauge configuration ( Modify ) |
| cfg_file | The file name ( Read ) |
DATATYPE header token has the value 4D_SU3_GAUGE_3x3 or two-row format matrices if it has the value 4D_SU3_GAUGE The plaquette, link and checksum values are ignored.
Definition at line 576 of file qdp_iogauge.cc.
References readArchiv().
| void QDP::readArchiv | ( | XMLReader & | xml, |
| multi1d< LatticeColorMatrix > & | u, | ||
| const std::string & | cfg_file ) |
Reads a NERSC Gauge Connection Archive gauge configuration file.
The data in the file is assumed to be big-endian. If the host nachine is little-endian, the data is byte-swapped. Based on the header information, the precision of the data can be converted.
| xml | A container for the Gauge Connection header metadata as XML ( Modify ) |
| u | The gauge configuration ( Modify ) |
| cfg_file | The file name ( Read ) |
DATATYPE header token has the value 4D_SU3_GAUGE_3x3 or two-row format matrices if it has the value 4D_SU3_GAUGE The plaquette, link and checksum values are ignored.
Definition at line 543 of file qdp_iogauge.cc.
References QDP::QDPIO::cerr, QDP::XMLReader::open(), QDP_abort(), readArchiv(), and write().
|
static |
Read a QCD (NERSC) Archive format gauge field header.
| header | structure holding config info ( Modify ) |
| cfg_in | binary writer object ( Modify ) |
DATATYPE key has the value 4D_SU3_GAUGE_3x3 or two-row format matrices if it has the value 4D_SU3_GAUGE The plaquette, link value, and checksum are read and compared against computed values.
Definition at line 212 of file qdp_iogauge.cc.
References QDP::ArchivGauge_t::archive_date, QDP::ArchivGauge_t::boundary, QDP::QDPIO::cerr, QDP::ArchivGauge_t::checksum, QDP::QDPIO::cout, QDP::ArchivGauge_t::creation_date, QDP::ArchivGauge_t::creator, QDP::ArchivGauge_t::creator_hardware, QDP::ArchivGauge_t::ensemble_id, QDP::ArchivGauge_t::ensemble_label, QDP::ArchivGauge_t::float_size, QDP::Layout::lattSize(), QDP::ArchivGauge_t::link, QDP::ArchivGauge_t::mat_size, Nc, Nd, QDP::ArchivGauge_t::nrow, NumSpins< RScalar< T > >::value, QDP_abort(), QDP::BinaryReader::read(), QDP::multi1d< T >::resize(), QDP::ArchivGauge_t::sequence_number, and QDP::ArchivGauge_t::w_plaq.
Referenced by readArchiv().
| void QDP::readDesc | ( | BinaryReader & | bin, |
| std::string & | input ) |
Definition at line 774 of file qdp_io.cc.
References QDP::BinaryReader::readDesc().
Referenced by QDP::MapObjDiskEnv::getMetaData().
|
inlinevirtual |
How much data and keys should be kept in memory in bytes
This should be called before the open is called
| max_cache_size | number of bytes of data and keys should be kept in memory |
Definition at line 70 of file qdp_db_imp.h.
References QDP::Layout::primaryNode().
|
inlinevirtual |
How much data and keys should be kept in memory in megabytes
This should be called before the open is called
| max_cache_size | number of bytes of data and keys should be kept in memory |
Definition at line 84 of file qdp_db_imp.h.
References QDP::Layout::primaryNode().
|
inlinevirtual |
Set and get maximum number of configurations
Definition at line 162 of file qdp_db_imp.h.
References QDP::Layout::primaryNode().
|
inlinevirtual |
Set and get maximum user information length
Definition at line 143 of file qdp_db_imp.h.
References QDP::Layout::primaryNode().
|
inlinevirtual |
Set initial number of buckets
This should be called before the open is called
| num | the number of buckets should be used |
Definition at line 115 of file qdp_db_imp.h.
References QDP::Layout::primaryNode().
|
inlinevirtual |
Page size used when a new data based is created This only effects a new database
| pagesize | the pagesize used in hash database. This value should be power of 2. The minimum value is 512 and maximum value is 262144 |
Definition at line 100 of file qdp_db_imp.h.
References QDP::Layout::primaryNode().
|
inlinevirtual |
Name of database associated with this Data store
Definition at line 389 of file qdp_db_imp.h.
References QDP::QDPInternal::broadcast_str(), and QDP::Layout::primaryNode().
| void QDP::write | ( | BinaryWriter & | bin, |
| bool | output ) |
Definition at line 1252 of file qdp_io.cc.
References QDP::BinaryWriter::write().
| void QDP::write | ( | BinaryWriter & | bin, |
| char | output ) |
Definition at line 1212 of file qdp_io.cc.
References QDP::BinaryWriter::write().
|
inline |
Write all of a binary Array object.
This also writes the number of elements to the file.
| bin | The initialised binary reader |
| d | The data to be filled. |
Definition at line 1326 of file qdp_io.h.
References QDP::Array1dO< T >::size(), and write().
| void QDP::write | ( | BinaryWriter & | bin, |
| const char * | output ) |
Definition at line 1208 of file qdp_io.cc.
References QDP::BinaryWriter::write().
|
inline |
Write all of a binary multi1d object.
This also writes the number of elements to the file.
| bin | The initialised binary reader |
| d | The data to be filled. |
Definition at line 1169 of file qdp_io.h.
References QDP::multi1d< T >::size(), and write().
|
inline |
Write some or all of a binary multi1d object.
This does not write the number of elements to the file.
| bin | The initialised binary writer |
| d | The data to be filled. |
| num | The number of elements to write. |
Definition at line 1187 of file qdp_io.h.
References write().
|
inline |
Write a binary multi2d element.
Definition at line 1197 of file qdp_io.h.
References QDP::multi2d< T >::size1(), QDP::multi2d< T >::size2(), and write().
|
inline |
Write a binary multi3d element.
Definition at line 1215 of file qdp_io.h.
References QDP::multi3d< T >::size1(), QDP::multi3d< T >::size2(), QDP::multi3d< T >::size3(), and write().
|
inline |
Write a binary multi4d element.
Definition at line 1231 of file qdp_io.h.
References QDP::multi4d< T >::size1(), QDP::multi4d< T >::size2(), QDP::multi4d< T >::size3(), QDP::multi4d< T >::size4(), and write().
|
inline |
Write a binary multi5d element.
Definition at line 1249 of file qdp_io.h.
References QDP::multi5d< T >::size1(), QDP::multi5d< T >::size2(), QDP::multi5d< T >::size3(), QDP::multi5d< T >::size4(), QDP::multi5d< T >::size5(), and write().
|
inline |
Write a binary multiNd element.
Definition at line 1269 of file qdp_io.h.
References QDP::multiNd< T >::getElem(), QDP::multiNd< T >::numElem(), QDP::multiNd< T >::size(), and write().
| void QDP::write | ( | BinaryWriter & | bin, |
| const std::complex< double > & | param ) |
| void QDP::write | ( | BinaryWriter & | bin, |
| const std::complex< float > & | param ) |
|
inline |
|
inline |
|
inline |
| void QDP::write | ( | BinaryWriter & | bin, |
| const std::string & | output ) |
Definition at line 1204 of file qdp_io.cc.
References QDP::BinaryWriter::write().
Referenced by QDP::MapObjectMemory< K, V >::erase(), QDP::MapObjectDisk< K, V >::exist(), QDP::MapObjectMemory< K, V >::exist(), QDP::MapObjectDisk< K, V >::get(), QDP::MapObjectMemory< K, V >::get(), QDP::MapObjectDisk< K, V >::insert(), QDP::MapObjectMemory< K, V >::insert(), QDP::MapObjectDiskMultiple< K, V >::keys(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), QDP::MapObjectMemory< K, V >::operator[](), QDP::MapObjectMemory< K, V >::operator[](), readArchiv(), write(), write(), write(), write(), write(), write(), write(), write(), write(), write(), write(), write(), write(), write(), write(), write(), write(), write(), write(), write(), write(), write(), and write().
|
inline |
| void QDP::write | ( | BinaryWriter & | bin, |
| double | output ) |
Definition at line 1248 of file qdp_io.cc.
References QDP::BinaryWriter::write().
| void QDP::write | ( | BinaryWriter & | bin, |
| float | output ) |
Definition at line 1244 of file qdp_io.cc.
References QDP::BinaryWriter::write().
| void QDP::write | ( | BinaryWriter & | bin, |
| int | output ) |
Definition at line 1216 of file qdp_io.cc.
References QDP::BinaryWriter::write().
| void QDP::write | ( | BinaryWriter & | bin, |
| long int | output ) |
Definition at line 1232 of file qdp_io.cc.
References QDP::BinaryWriter::write().
| void QDP::write | ( | BinaryWriter & | bin, |
| long long int | output ) |
Definition at line 1240 of file qdp_io.cc.
References QDP::BinaryWriter::write().
| void QDP::write | ( | BinaryWriter & | bin, |
| short int | output ) |
Definition at line 1224 of file qdp_io.cc.
References QDP::BinaryWriter::write().
| void QDP::write | ( | BinaryWriter & | bin, |
| unsigned int | output ) |
Definition at line 1220 of file qdp_io.cc.
References QDP::BinaryWriter::write().
| void QDP::write | ( | BinaryWriter & | bin, |
| unsigned long int | output ) |
Definition at line 1236 of file qdp_io.cc.
References QDP::BinaryWriter::write().
| void QDP::write | ( | BinaryWriter & | bin, |
| unsigned short int | output ) |
Definition at line 1228 of file qdp_io.cc.
References QDP::BinaryWriter::write().
| void QDP::writeArchiv | ( | ArchivGauge_t & | header, |
| const multi1d< LatticeColorMatrix > & | u, | ||
| const std::string & | file ) |
Writes a NERSC Gauge Connection Archive gauge configuration file.
The data is written in 32-bit big-endian IEEE format to the file. If the host nachine is little-endian, the data is byte-swapped.
| header | A container for the Gauge Connection header metadata |
| u | The gauge configuration |
| file | The file name |
Definition at line 691 of file qdp_iogauge.cc.
References QDP::ArchivGauge_t::checksum, QDP::BinaryFileWriter::close(), computeChecksum(), QDP::ArchivGauge_t::link, QDP::ArchivGauge_t::mat_size, QDP::ArchivGauge_t::w_plaq, writeArchiv(), and writeArchivHeader().
| void QDP::writeArchiv | ( | BinaryWriter & | cfg_out, |
| const multi1d< LatticeColorMatrix > & | u, | ||
| int | mat_size ) |
Writes a NERSC Gauge Connection Archive gauge configuration file.
An architecture-specific version of this routine is called by the generic readArchiv functions.
The data is written in big-endian IEEE format to the file. If the host nachine is little-endian, the data is byte-swapped.
| cfg_out | A binary writer |
| u | The gauge configuration |
| mat_size | The number of floating-point numbers per link matrix to write. This should be 12 to write two-row format or 18 for three-row format. |
Definition at line 1142 of file qdp_parscalar_specific.cc.
References all, QDP::QDPIO::cerr, crtesn(), QDP::BinaryWriter::fail(), imag(), QDP::Layout::lattSize(), QDP::Layout::linearSiteIndex(), Nc, Nd, QDP::Layout::nodeNumber(), peekColor(), QDP::Layout::primaryNode(), QDP_abort(), QDP_error_exit(), real(), QDP::QDPInternal::recvFromWait(), QDP::multi1d< T >::resize(), QDP::QDPInternal::route(), QDP::QDPInternal::sendToWait(), QDP::Layout::sitesOnNode(), toFloat(), QDP::Layout::vol(), and QDP::BinaryWriter::writeArrayPrimaryNode().
Referenced by writeArchiv(), writeArchiv(), and writeArchiv().
| void QDP::writeArchiv | ( | const multi1d< LatticeColorMatrix > & | u, |
| const std::string & | cfg_file ) |
Writes a NERSC Gauge Connection Archive gauge configuration file.
The data is written in 32-bit big-endian IEEE format to the file. If the host nachine is little-endian, the data is byte-swapped.
| u | The gauge configuration |
| cfg_file | The file name |
Definition at line 742 of file qdp_iogauge.cc.
References writeArchiv().
| void QDP::writeArchiv | ( | XMLBufferWriter & | xml, |
| const multi1d< LatticeColorMatrix > & | u, | ||
| const std::string & | cfg_file ) |
Writes a NERSC Gauge Connection Archive gauge configuration file.
The data is written in 32-bit big-endian IEEE format to the file. If the host nachine is little-endian, the data is byte-swapped.
| header | A container for the Gauge Connection header metadata as XML |
| u | The gauge configuration |
| cfg_file | The file name |
FLOATING_POINT is always given the value IEEE32BIG Definition at line 717 of file qdp_iogauge.cc.
References QDP::ArchivGauge_t::checksum, computeChecksum(), QDP::ArchivGauge_t::link, QDP::ArchivGauge_t::mat_size, read(), QDP::ArchivGauge_t::w_plaq, and writeArchiv().
|
static |
Write a QCD (NERSC) Archive format gauge field.
| header | structure holding config info ( Read ) |
| cfg_out | binary writer object ( Modify ) |
FLOATING_POINT is always given the value IEEE32BIG Definition at line 599 of file qdp_iogauge.cc.
References QDP::ArchivGauge_t::archive_date, QDP::ArchivGauge_t::boundary, QDP::QDPIO::cerr, QDP::ArchivGauge_t::checksum, QDP::ArchivGauge_t::creation_date, QDP::ArchivGauge_t::creator, QDP::ArchivGauge_t::creator_hardware, QDP::ArchivGauge_t::ensemble_id, QDP::ArchivGauge_t::ensemble_label, QDP::Layout::lattSize(), QDP::ArchivGauge_t::link, Nc, Nd, QDP_abort(), QDP::ArchivGauge_t::sequence_number, QDP::ArchivGauge_t::w_plaq, and QDP::BinaryWriter::writeArray().
Referenced by writeArchiv().
| void QDP::writeDesc | ( | BinaryWriter & | bin, |
| const std::string & | output ) |
Definition at line 1200 of file qdp_io.cc.
References QDP::BinaryWriter::writeDesc().
|
inline |
| const int QDP::db_cachesize = 50*1024*1024 |
Fake cache and page sizes.
Database cache size in bytes
Definition at line 24 of file qdp_db_imp.h.
Referenced by QDP::BinaryStoreDB< K, D >::BinaryStoreDB().
| const int QDP::db_pagesize = 64*1024 |
Database page size in bytes
Definition at line 29 of file qdp_db_imp.h.