36 virtual std::ostream&
info(std::ostream&
os)
const throw();
42 bool operator()(
const char* s1,
const char* s2)
const {
43 return std::strcmp(s1, s2) < 0;
49 return (
i1[0] <
i2[0]) || (
i1[0] ==
i2[0] &&
i1[1] <
i2[1]);
89 void addDouble(
const char* name,
const double value);
91 void addComplex(
const char* name,
const std::complex<double> value);
93 void addString(
const char* name,
const char* value);
95 void addInt(
const char* name,
const int value);
97 void addBool(
const char* name,
const int value);
105 double getDouble(
const char* name,
const double value)
const;
112 std::string
getString(
const char* name,
const char* value = 0)
const;
124 bool getBool(
const char* name,
const bool value)
const;
171 const std::complex<double> value);
240 const std::map<int, std::complex<double> >&
313 const std::string description =
"")
const;
320 const std::string description =
"")
const;
322 virtual std::ostream&
info(std::ostream&
os)
const;
325 std::map<const char*, double, ltstr> double_;
327 std::map<const char*, std::complex<double>,
ltstr> complex_;
329 std::map<const char*, std::string, ltstr> string_;
331 std::map<const char*, int, ltstr> int_;
333 std::map<const char*, bool, ltstr> bool_;
336 std::map<const char*, std::map<int, double>*,
ltstr> doubleArrays_;
339 <
const char*, std::map<int, std::complex<double> >*,
ltstr> complexArrays_;
341 std::map<const char*, std::map<int, std::string>*,
ltstr> stringArrays_;
343 std::map<const char*, std::map<int, int>*,
ltstr> intArrays_;
345 std::map<const char*, std::map<int, bool>*,
ltstr> boolArrays_;
348 std::map<
const char*,
351 std::map<
const char*,
356 void mapOutputMatlab_(std::ostream&
os,
357 const std::map<const char*, F, ltstr>& map)
const;
360 void mapArrayOutputMatlab_(std::ostream&
os,
const std::map
361 <
const char*, std::map<int, F>*,
ltstr> & map,
362 const std::string
brackets =
"[]")
const;
365 void mapMatrixOutputMatlab_
366 (std::ostream&
os,
const std::map
368 const std::string
brackets =
"[]")
const;
372 void add_(std::map<const char*, F, ltstr>& map,
const char* name,
376 F get_(
const std::map<const char*, F, ltstr>& map,
const char* name)
const;
378 template<
class F,
class G,
class H>
379 void addArray_(std::map<
const char*, std::map<F, G, H>*,
ltstr>& map,
382 template<
class F,
class G,
class H>
383 void addArray_(std::map<
const char*, std::map<F, G, H>*,
ltstr>& map,
386 template<
class F,
class G,
class H>
387 G getArray_(
const std::map<
const char*, std::map<F, G, H>*,
ltstr>& map,
391 const std::map<int, F>&
392 getMap_(
const std::map<
const char*, std::map<int, F>*,
ltstr>& map,
393 const char*
array)
const;
397 void clear_(std::map<const char*, F, ltstr>& map);
399 template<
class F,
class G>
400 void clear_(std::map<
const char*, std::map<G, F>*,
ltstr>& map);
469 virtual std::ostream&
info(std::ostream&
os)
const;
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
void addArrayBool(const char *array, const bool newArray=false)
double getDouble(const char *name) const
Returns a double from the hash of doubles.
void addArrayInt(const char *array, const int number, const int value)
bool getBool(const char *name, const bool value) const
void append(const InOutParameters &inout, bool arrayAppend=true)
void addMatrixInt(const char *array, const bool newMatrix=false)
void addMatrixDouble(const char *matrix, const int i, const int j, const double value)
InOutParameters(const InOutParameters &i)
Copy constructor.
void addInt(const char *name, const int value)
Adds an int to the hash of ints.
const std::map< int, std::string > & getMapString(const char *array) const
void addArrayDouble(const char *array, const bool newArray=false)
void addMatrixInt(const char *matrix, const int i, const int j, const int value)
std::ostream & storeMatlab(std::ostream &os, const char *name, const std::string description="") const
std::complex< double > getComplex(const char *name) const
Returns a complex double from the hash of doubles.
int getMatrixInt(const char *array, const int i, const int j) const
void addArrayBool(const char *array, const int number, const int value)
int getInt(const char *name, const int value=INT_MAX) const
void addBool(const char *name, const int value)
Adds a bool to the hash of bools.
std::complex< double > getArrayComplex(const char *array, const int number) const
void addString(const char *name, const char *value)
Adds a string to the hash of strings.
void addArrayDouble(const char *array, const int number, const double value)
double getMatrixDouble(const char *array, const int i, const int j) const
std::string getString(const char *name, const char *value=0) const
void addComplex(const char *name, const std::complex< double > value)
Adds a complex double to the hash of doubles.
double getDouble(const char *name, const double value) const
bool getArrayBool(const char *array, const int number) const
const std::map< int, double > & getMapDouble(const char *array) const
const std::map< int, int > & getMapInt(const char *array) const
void clear()
clears the object
void addMatrixDouble(const char *array, const bool newMatrix=false)
void addArrayComplex(const char *array, const int number, const std::complex< double > value)
const std::map< int, bool > & getMapBool(const char *array) const
int getArrayInt(const char *array, const int number) const
void storeMatlab(const char *filename, const std::string description="") const
void addDouble(const char *name, const double value)
Adds a double to the hash of doubles.
void addArrayString(const char *array, const bool newArray=false)
void addArrayComplex(const char *array, const bool newArray=false)
double getArrayDouble(const char *array, const int number) const
void addArrayInt(const char *array, const bool newArray=false)
bool getBool(const char *name) const
Returns a bool from the hash of bools.
std::string getArrayString(const char *array, const int number) const
InOutParameters()
Constructor.
void addArrayString(const char *array, const int number, const char *value)
const std::map< int, std::complex< double > > & getMapComplex(const char *array) const
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
MissingParameter(const std::string ¶meter)
Set< F > makeSet(uint n, const F &first,...)