Bridge++  Ver. 2.0.2
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_NERSC.h"
32 #include "fieldIO_None.h"
33 
34 #include "io_format.h"
35 // #include "io_format_gauge.h"
36 
37 #include "bridgeIO.h"
38 using Bridge::vout;
39 
41 
81 {
82  public:
83  static const std::string class_name;
84 
85  public:
86  GaugeConfig(const string& type);
87  virtual ~GaugeConfig();
88 
89  private:
90  // non-copyable
91  GaugeConfig(const GaugeConfig&);
93 
94  public:
95  void read(Field_G& U, const string& filename = string());
96 
97  void write(Field_G& U, const string& filename = string());
98 
99 
100  void read_file(Field_G& U, const string& filename)
101  { return read(U, filename); }
102 
103  void write_file(Field_G& U, const string& filename)
104  { return write(U, filename); }
105 
106  protected:
110 
111  private:
112  class DataSource;
113  class DataSource_Unit;
115 
117 };
118 #endif
GaugeConfig::~GaugeConfig
virtual ~GaugeConfig()
Definition: gaugeConfig.cpp:112
GaugeConfig::DataSource_Random
Definition: gaugeConfig.cpp:39
bridgeIO.h
field_G.h
fieldIO_Binary_Parallel.h
GaugeConfig::DataSource_Unit
Definition: gaugeConfig.cpp:29
GaugeConfig::GaugeConfig
GaugeConfig(const string &type)
Definition: gaugeConfig.cpp:61
fieldIO_NERSC.h
GaugeConfig::read
void read(Field_G &U, const string &filename=string())
Definition: gaugeConfig.cpp:121
GaugeConfig::write_file
void write_file(Field_G &U, const string &filename)
Definition: gaugeConfig.h:103
fieldIO_LIME.h
IO_Format::Format
Definition: io_format.h:36
GaugeConfig::m_fieldio
FieldIO * m_fieldio
Definition: gaugeConfig.h:108
fieldIO_Fortran.h
GaugeConfig::DataSource
Definition: gaugeConfig.cpp:21
fieldIO_Binary.h
GaugeConfig::write
void write(Field_G &U, const string &filename=string())
Definition: gaugeConfig.cpp:137
fieldIO_Text_4x4x4x8.h
io_format.h
fieldIO_None.h
GaugeConfig::m_vl
Bridge::VerboseLevel m_vl
Definition: gaugeConfig.h:107
fieldIO_Text.h
GaugeConfig
GaugeConfig class for file I/O of gauge configuration.
Definition: gaugeConfig.h:80
FieldIO
FieldIO class for file I/O of space-time distributed data.
Definition: fieldIO.h:53
fieldIO_LIME_Parallel.h
GaugeConfig::read_file
void read_file(Field_G &U, const string &filename)
Definition: gaugeConfig.h:100
fieldIO_Binary_Distributed.h
GaugeConfig::m_datasource
DataSource * m_datasource
Definition: gaugeConfig.h:114
GaugeConfig::operator=
GaugeConfig & operator=(const GaugeConfig &)
GaugeConfig::class_name
static const std::string class_name
Definition: gaugeConfig.h:83
Bridge::VerboseLevel
VerboseLevel
Definition: bridgeIO.h:42
Field_G
SU(N) gauge field.
Definition: field_G.h:38
GaugeConfig::m_format
IO_Format::Format * m_format
Definition: gaugeConfig.h:109
Element_type::type
type
Definition: bridge_defs.h:41
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512