Go to the documentation of this file.
134 inline const std::string&
137 inline const std::vector<std::string>&
144 bpar_[key] = atoi(val) ? true :
false; }
147 bpar_[key] = val ? true :
false; }
153 ipar_[key] = atoi(val); }
159 dpar_[key] = atof(val); }
168 sapar_[key].push_back(val); }
184 for (
size_t j = 0; j <
sapar_[i].size(); ++j)
203 sapar_[i].reserve(str_size);
204 for (
size_t j = 0; j < str_size; ++j){
206 sapar_[i].push_back(std::string());
double * dpar_
The double parameters.
This is the class serves as a holder for a set of parameters.
void setEntry(const chrParams key, const char val)
char is true(1) or false(0), not used
const std::vector< std::string > & entry(const strArrayParams key) const
const std::string & entry(const strParams key) const
void setEntry(const strParams key, const char *val)
KnapParams()
The default constructor creates a parameter set with from the template argument structure.
std::string * spar_
The string (actually, std::string) parameters.
strArrayParams
There are no string array parameters.
void setEntry(const strArrayParams key, const char *val)
void unpack(AlpsEncoded &buf)
Unpack the parameter set from the buffer.
char entry(const chrParams key) const
void setEntry(const dblParams key, const char *val)
int entry(const intParams key) const
void setEntry(const dblParams key, const double val)
chrParams
Character parameters.
intParams
Integer paramters.
AlpsEncoded & writeRep(const T &value)
Write a single object of type T in repsentation_ .
int * ipar_
The integer parameters.
AlpsEncoded & readRep(T &value)
Read a single object of type T from repsentation_ .
strParams
String parameters.
virtual void createKeywordList()
Method for creating the list of keyword looked for in the parameter file.
double entry(const dblParams key) const
bool * bpar_
The bool parameters.
void pack(AlpsEncoded &buf)
Pack the parameter set into the buffer (AlpsEncoded is used as buffer Here).
void setEntry(const chrParams key, const char *val)
char* is true(1) or false(0), not used
dblParams
Double parameters.
virtual void setDefaultEntries()
Method for setting the default values for the parameters.
void setEntry(const intParams key, const int val)
std::vector< std::string > * sapar_
void setEntry(const chrParams key, const bool val)
This method is the one that ever been used.
void setEntry(const intParams key, const char *val)