#include <DmrgParameters.h>
Definition at line 125 of file DmrgParameters.h.
ModelParameters::ModelParameters |
( |
| ) |
|
|
inline |
ModelParameters::ModelParameters |
( |
std::ifstream & |
param_file | ) |
|
|
inline |
Definition at line 148 of file BaseParameters.h.
std::map< std::string, std::string > descriptions
std::map< std::string, std::string > defaults
template<class T >
T BaseParameters::get |
( |
std::string const & |
key | ) |
|
|
inlineinherited |
bool BaseParameters::is_set |
( |
std::string const & |
key | ) |
const |
|
inlineinherited |
BaseParameters BaseParameters::iteration_params |
( |
std::string const & |
var, |
|
|
std::size_t |
val |
|
) |
| |
|
inlineinherited |
Definition at line 118 of file BaseParameters.h.
122 boost::regex expression(
"^(.*)\\[" + var +
"\\]$");
124 for (alps::Parameters::const_iterator it=this->begin();it != this->end();++it) {
125 std::string key = it->key();
126 if (boost::regex_match(key, what, expression)) {
127 std::vector<value_type> v = (*this)[key];
129 p.
set(what.str(1), v[val]);
131 p.
set(what.str(1), *(v.rbegin()));
void set(std::string const &key, T const &value)
Definition at line 138 of file BaseParameters.h.
140 for (alps::Parameters::const_iterator it=p.begin(); it!=p.end(); ++it)
141 alps::Parameters::operator[](it->key()) = it->value();
142 defaults.insert(p.defaults.begin(), p.defaults.end());
std::map< std::string, std::string > defaults
Definition at line 95 of file BaseParameters.h.
98 std::map<std::string, std::string>::const_iterator match =
defaults.find(key);
100 alps::Parameters::operator[](key) = match->second;
102 boost::throw_exception(std::runtime_error(
"parameter " + key +
" not defined"));
std::map< std::string, std::string > defaults
template<class T >
void BaseParameters::set |
( |
std::string const & |
key, |
|
|
T const & |
value |
|
) |
| |
|
inlineinherited |
Definition at line 113 of file BaseParameters.h.
115 alps::Parameters::operator[](key) = boost::lexical_cast<std::string>(value);
std::map<std::string, std::string> BaseParameters::defaults |
|
protectedinherited |
std::map<std::string, std::string> BaseParameters::descriptions |
|
protectedinherited |
The documentation for this class was generated from the following file: