Bridge++  Ver. 1.2.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Parameters Class Reference

Class for parameters. More...

#include <parameters.h>

Inheritance diagram for Parameters:
Parameters_Action_F_Rational Parameters_Action_F_Rational_frame Parameters_Action_F_Rational_frame_SF Parameters_Action_G_Plaq Parameters_Action_G_Plaq_SF Parameters_Action_G_Rectangle Parameters_Action_G_Rectangle_SF Parameters_Builder_Integrator Parameters_Director_Smear Parameters_Eigensolver_IRLanczos Parameters_Field_G_SF Parameters_Fopr_Chebyshev Parameters_Fopr_Clover Parameters_Fopr_Clover_eo Parameters_Fopr_Clover_Isochemical Parameters_Fopr_Clover_SF Parameters_Fopr_CloverTerm Parameters_Fopr_CloverTerm_eo Parameters_Fopr_Rational Parameters_Fopr_Rational_SF Parameters_Fopr_Wilson Parameters_Fopr_Wilson_eo Parameters_Fopr_Wilson_Isochemical Parameters_Fopr_Wilson_SF Parameters_Force_F_Clover_Nf2 Parameters_Force_F_Clover_Nf2_Isochemical Parameters_Force_F_Clover_SF Parameters_Force_F_CloverTerm Parameters_Force_F_Rational Parameters_Force_F_Wilson_eo Parameters_Force_F_Wilson_Nf2 Parameters_Force_F_Wilson_Nf2_Isochemical Parameters_Force_F_Wilson_SF Parameters_ForceSmear_APE Parameters_ForceSmear_APE_SF Parameters_ForceSmear_HYP Parameters_ForceSmear_HYP_SF Parameters_Fprop_Wilson_Shift Parameters_GaugeFixing_Coulomb Parameters_GaugeFixing_Landau Parameters_GradientFlow Parameters_HMC_General Parameters_HMC_Leapfrog Parameters_Integrator_Leapfrog Parameters_Integrator_Omelyan Parameters_Integrator_UpdateU Parameters_Main Parameters_Math_Rational Parameters_PolyakovLoop Parameters_Projection_Maximum_SU_N Parameters_Projection_Stout_SU3 Parameters_Shiftsolver_CG Parameters_Smear_APE Parameters_Smear_APE_SF Parameters_Smear_APE_spatial Parameters_Smear_HYP Parameters_Smear_HYP_SF Parameters_Solver_BiCGStab Parameters_Solver_BiCGStab_Cmplx Parameters_Solver_BiCGStab_DS_L_Cmplx Parameters_Solver_BiCGStab_IDS_L_Cmplx Parameters_Solver_BiCGStab_L_Cmplx Parameters_Solver_CG Parameters_Solver_CGNE Parameters_Solver_CGNR Parameters_Solver_GMRES_m_Cmplx Parameters_Source_4spinor_Exp Parameters_Source_4spinor_Local Parameters_Source_Exponential Parameters_Source_Local Parameters_Source_MomentumWall Parameters_Source_Wall Parameters_Source_Wall_SF Parameters_Staples_SF Parameters_TopologicalCharge Parameters_WilsonLoop

Classes

struct  Item
 

Public Member Functions

 Parameters ()
 
virtual ~Parameters ()
 
void set_double (const string &key, const double value)
 
void set_int (const string &key, const int value)
 
void set_double_vector (const string &key, const std::valarray< double > &value)
 
void set_int_vector (const string &key, const std::valarray< int > &value)
 
void set_string (const string &key, const string &value)
 
void set_Parameters (const string &key, Parameters *const value)
 
void set_VerboseLevel (Bridge::VerboseLevel value)
 
double get_double (const string &key) const
 
int get_int (const string &key) const
 
std::valarray< double > get_double_vector (const string &key) const
 
std::valarray< int > get_int_vector (const string &key) const
 
string get_string (const string &key) const
 
Parametersget_Parameters (const string &key) const
 
Bridge::VerboseLevel get_VerboseLevel () const
 
int fetch_double (const string &key, double &val) const
 
int fetch_int (const string &key, int &val) const
 
int fetch_double_vector (const string &key, std::valarray< double > &val) const
 
int fetch_int_vector (const string &key, std::valarray< int > &val) const
 
int fetch_string (const string &key, string &val) const
 
int fetch_VerboseLevel (Bridge::VerboseLevel &val) const
 
void Register_double (const string &, const double)
 
void Register_int (const string &, const int)
 
void Register_double_vector (const string &, const std::valarray< double > &)
 
void Register_int_vector (const string &, const std::valarray< int > &)
 
void Register_string (const string &, const string &)
 
void Register_Parameters (const string &, Parameters *const)
 
bool find_double (const string &) const
 
bool find_int (const string &) const
 
bool find_double_vector (const string &) const
 
bool find_int_vector (const string &) const
 
bool find_string (const string &) const
 
bool find_Parameters (const string &) const
 
bool is_set (const string &) const
 

Private Attributes

std::map< string, Item< double > > m_map_double
 
std::map< string, Item< int > > m_map_int
 
std::map< string, Item
< std::valarray< double > > > 
m_map_double_vector
 
std::map< string, Item
< std::valarray< int > > > 
m_map_int_vector
 
std::map< string, Item< string > > m_map_string
 
std::map< string, Item
< Parameters * > > 
m_map_Parameters
 
Item< Bridge::VerboseLevelm_vlevel
 

Detailed Description

Class for parameters.

Base class of Parameters. This class gives general basis of structured parameter sets. [17 Jul 2012 H.Matsufuru] fetch is modified to return int, instead of bool in the original Aoyama-san's code. [16 Jun 2013 Y.Namekawa]

Definition at line 40 of file parameters.h.

Constructor & Destructor Documentation

Parameters::Parameters ( )

Definition at line 17 of file parameters.cpp.

virtual Parameters::~Parameters ( )
inlinevirtual

Definition at line 89 of file parameters.h.

Member Function Documentation

int Parameters::fetch_double ( const string &  key,
double &  val 
) const

Definition at line 124 of file parameters.cpp.

int Parameters::fetch_double_vector ( const string &  key,
std::valarray< double > &  val 
) const

Definition at line 158 of file parameters.cpp.

int Parameters::fetch_int ( const string &  key,
int &  val 
) const

Definition at line 141 of file parameters.cpp.

int Parameters::fetch_int_vector ( const string &  key,
std::valarray< int > &  val 
) const

Definition at line 176 of file parameters.cpp.

int Parameters::fetch_string ( const string &  key,
string &  val 
) const

Definition at line 194 of file parameters.cpp.

int Parameters::fetch_VerboseLevel ( Bridge::VerboseLevel val) const

Definition at line 211 of file parameters.cpp.

bool Parameters::find_double ( const string &  key) const

Definition at line 227 of file parameters.cpp.

bool Parameters::find_double_vector ( const string &  key) const

Definition at line 241 of file parameters.cpp.

bool Parameters::find_int ( const string &  key) const

Definition at line 220 of file parameters.cpp.

bool Parameters::find_int_vector ( const string &  key) const

Definition at line 234 of file parameters.cpp.

bool Parameters::find_Parameters ( const string &  key) const

Definition at line 255 of file parameters.cpp.

bool Parameters::find_string ( const string &  key) const

Definition at line 248 of file parameters.cpp.

double Parameters::get_double ( const string &  key) const

Definition at line 25 of file parameters.cpp.

std::valarray< double > Parameters::get_double_vector ( const string &  key) const

Definition at line 55 of file parameters.cpp.

int Parameters::get_int ( const string &  key) const

Definition at line 40 of file parameters.cpp.

std::valarray< int > Parameters::get_int_vector ( const string &  key) const

Definition at line 70 of file parameters.cpp.

Parameters * Parameters::get_Parameters ( const string &  key) const

Definition at line 100 of file parameters.cpp.

string Parameters::get_string ( const string &  key) const

Definition at line 85 of file parameters.cpp.

Bridge::VerboseLevel Parameters::get_VerboseLevel ( ) const

Definition at line 116 of file parameters.cpp.

bool Parameters::is_set ( const string &  key) const

Definition at line 366 of file parameters.cpp.

void Parameters::Register_double ( const string &  key,
const double  data 
)

Definition at line 324 of file parameters.cpp.

void Parameters::Register_double_vector ( const string &  key,
const std::valarray< double > &  data 
)

Definition at line 338 of file parameters.cpp.

void Parameters::Register_int ( const string &  key,
const int  data 
)

Definition at line 331 of file parameters.cpp.

void Parameters::Register_int_vector ( const string &  key,
const std::valarray< int > &  data 
)

Definition at line 345 of file parameters.cpp.

void Parameters::Register_Parameters ( const string &  key,
Parameters * const  data 
)

Definition at line 359 of file parameters.cpp.

void Parameters::Register_string ( const string &  key,
const string &  data 
)

Definition at line 352 of file parameters.cpp.

void Parameters::set_double ( const string &  key,
const double  value 
)

Definition at line 271 of file parameters.cpp.

void Parameters::set_double_vector ( const string &  key,
const std::valarray< double > &  value 
)

Definition at line 289 of file parameters.cpp.

void Parameters::set_int ( const string &  key,
const int  value 
)

Definition at line 262 of file parameters.cpp.

void Parameters::set_int_vector ( const string &  key,
const std::valarray< int > &  value 
)

Definition at line 280 of file parameters.cpp.

void Parameters::set_Parameters ( const string &  key,
Parameters *const  value 
)

Definition at line 307 of file parameters.cpp.

void Parameters::set_string ( const string &  key,
const string &  value 
)

Definition at line 298 of file parameters.cpp.

void Parameters::set_VerboseLevel ( Bridge::VerboseLevel  value)

Definition at line 317 of file parameters.cpp.

Member Data Documentation

std::map<string, Item<double> > Parameters::m_map_double
private

Definition at line 77 of file parameters.h.

std::map<string, Item<std::valarray<double> > > Parameters::m_map_double_vector
private

Definition at line 79 of file parameters.h.

std::map<string, Item<int> > Parameters::m_map_int
private

Definition at line 78 of file parameters.h.

std::map<string, Item<std::valarray<int> > > Parameters::m_map_int_vector
private

Definition at line 80 of file parameters.h.

std::map<string, Item<Parameters *> > Parameters::m_map_Parameters
private

Definition at line 82 of file parameters.h.

std::map<string, Item<string> > Parameters::m_map_string
private

Definition at line 81 of file parameters.h.

Item<Bridge::VerboseLevel> Parameters::m_vlevel
private

Definition at line 83 of file parameters.h.


The documentation for this class was generated from the following files: