Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gaugeConfig.h
Go to the documentation of this file.
1 
15 #ifndef GAUGECONFIG_INCLUDED
16 #define GAUGECONFIG_INCLUDED
17 
18 #include <string>
19 using std::string;
20 
21 #include "Field/field_G.h"
22 
23 #include "fieldIO_Text.h"
24 #include "fieldIO_Text_4x4x4x8.h"
25 #include "fieldIO_Binary.h"
28 #include "fieldIO_Fortran.h"
29 #include "fieldIO_LIME.h"
30 #include "fieldIO_LIME_Parallel.h"
31 #include "fieldIO_None.h"
32 
33 #include "io_format_gauge.h"
34 
35 #include "bridgeIO.h"
36 using Bridge::vout;
37 
39 
79 {
80  public:
81  static const std::string class_name;
82 
83  public:
84  GaugeConfig(const string& type);
85  virtual ~GaugeConfig();
86 
87  private:
88  // non-copyable
89  GaugeConfig(const GaugeConfig&);
91 
92  public:
93  void read(Field_G *U, const string& filename = string());
94 
95  void read(unique_ptr<Field_G>& U, const string& filename = string())
96  { return read(U.get(), filename); }
97 
98  void write(Field_G *U, const string& filename = string());
99 
100  void write(unique_ptr<Field_G>& U, const string& filename = string())
101  { return write(U.get(), filename); }
102 
103 
104  void read_file(Field_G *U, const string& filename)
105  { return read(U, filename); }
106  void read_file(unique_ptr<Field_G>& U, const string& filename)
107  { return read_file(U.get(), filename); }
108 
109  void write_file(Field_G *U, const string& filename)
110  { return write(U, filename); }
111  void write_file(unique_ptr<Field_G>& U, const string& filename)
112  { return write_file(U.get(), filename); }
113 
114  protected:
117 
118  private:
119  class DataSource;
120  class DataSource_Unit;
122 
124 };
125 #endif
static const std::string class_name
Definition: gaugeConfig.h:81
BridgeIO vout
Definition: bridgeIO.cpp:503
virtual ~GaugeConfig()
Definition: gaugeConfig.cpp:97
void read_file(unique_ptr< Field_G > &U, const string &filename)
Definition: gaugeConfig.h:106
FieldIO * m_fieldio
Definition: gaugeConfig.h:116
GaugeConfig(const string &type)
Definition: gaugeConfig.cpp:60
void read(unique_ptr< Field_G > &U, const string &filename=string())
Definition: gaugeConfig.h:95
void write_file(unique_ptr< Field_G > &U, const string &filename)
Definition: gaugeConfig.h:111
SU(N) gauge field.
Definition: field_G.h:38
void read(Field_G *U, const string &filename=string())
void write(Field_G *U, const string &filename=string())
pointer get() const
Bridge::VerboseLevel m_vl
Definition: gaugeConfig.h:115
void read_file(Field_G *U, const string &filename)
Definition: gaugeConfig.h:104
void write(unique_ptr< Field_G > &U, const string &filename=string())
Definition: gaugeConfig.h:100
VerboseLevel
Definition: bridgeIO.h:42
void write_file(Field_G *U, const string &filename)
Definition: gaugeConfig.h:109
GaugeConfig class for file I/O of gauge configuration.
Definition: gaugeConfig.h:78
FieldIO class for file I/O of space-time distributed data.
Definition: fieldIO.h:53
DataSource * m_datasource
Definition: gaugeConfig.h:121
GaugeConfig & operator=(const GaugeConfig &)