CHROMA
enum_simplebctype_io.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Simple BC type enum
4  */
5 #ifndef enum_simplebctype_io_h
6 #define enum_simplebctype_io_h
7 
8 #include "chromabase.h"
9 #include <string>
10 #include "singleton.h"
12 
13 
14 
15 namespace Chroma {
16 
17  /*!
18  * Types and structures
19  *
20  * \ingroup io
21  *
22  * @{
23  */
24  //! SimpleBC type
25  enum SimpleBCType {
26  BC_TYPE_ANTIPERIODIC = -1, // Antiperiodic = -1
27  BC_TYPE_DIRICHLET, // Dirichlet = 0
28  BC_TYPE_PERIODIC // Periodic = 1
29  };
30 
31 
32  namespace SimpleBCTypeEnv {
33  extern const std::string typeIDString;
34  extern bool registered;
35  bool registerAll(void); // Forward declaration
36  }
37 
38  // A singleton to hold the typemap
40 
41  // Reader and writer
42 
43  //! Read an SimpleBCType enum
44  void read(XMLReader& r, const std::string& path, SimpleBCType& t);
45 
46  //! Write an SimpleBCType enum
47  void write(XMLWriter& w, const std::string& path, const SimpleBCType& t);
48 
49  /*! @} */ // end of group io
50 
51 }
52 #endif
Primary include file for CHROMA library code.
Enum std::map.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams &param)
Read parameters.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams &param)
Writer parameters.
SimpleBCType
SimpleBC type.
SingletonHolder< EnumTypeMap< SimpleBCType > > theSimpleBCTypeMap
int t
Definition: meslate.cc:37
const std::string typeIDString
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Singleton support.