123 inline const std::string&
126 inline const std::vector<std::string>&
133 bpar_[key] = atoi(val) ? true :
false; }
136 bpar_[key] = val ? true :
false; }
142 ipar_[key] = atoi(val); }
148 dpar_[key] = atof(val); }
157 sapar_[key].push_back(val); }
173 for (
size_t j = 0; j <
sapar_[i].size(); ++j)
192 sapar_[i].reserve(str_size);
193 for (
size_t j = 0; j < str_size; ++j){
195 sapar_[i].push_back(std::string());
This data structure is to contain the packed form of an encodable knowledge.
AlpsEncoded & readRep(T &value)
Read a single object of type T from repsentation_ .
AlpsEncoded & writeRep(const T &value)
Write a single object of type T in repsentation_ .
std::vector< std::string > * sapar_
int * ipar_
The integer parameters.
AlpsParameterSet(int c, int i, int d, int s, int sa)
The constructor allocate memory for parameters.
bool * bpar_
The bool parameters.
double * dpar_
The double parameters.
std::string * spar_
The string (actually, std::string) parameters.
void setEntry(const chrParams key, const bool val)
This method is the one that ever been used.
const std::vector< std::string > & entry(const strArrayParams key) const
void setEntry(const dblParams key, const double val)
void pack(AlpsEncoded &buf)
Pack the parameter set into the buffer (AlpsEncoded is used as buffer Here).
void setEntry(const dblParams key, const char *val)
void setEntry(const chrParams key, const char val)
char is true(1) or false(0), not used
virtual void setDefaultEntries()
Method for setting the default values for the parameters.
void setEntry(const chrParams key, const char *val)
char* is true(1) or false(0), not used
char entry(const chrParams key) const
void setEntry(const strArrayParams key, const char *val)
const std::string & entry(const strParams key) const
void setEntry(const intParams key, const char *val)
int entry(const intParams key) const
virtual void createKeywordList()
Method for creating the list of keyword looked for in the parameter file.
strParams
String parameters.
chrParams
Character parameters.
strArrayParams
There are no string array parameters.
void unpack(AlpsEncoded &buf)
Unpack the parameter set from the buffer.
double entry(const dblParams key) const
intParams
Integer paramters.
void setEntry(const intParams key, const int val)
KnapParams()
The default constructor creates a parameter set with from the template argument structure.
dblParams
Double parameters.
void setEntry(const strParams key, const char *val)