EasyLocalpp
3.0
|
#include <parameter.hh>
Public Member Functions | |
Parametrized (const std::string &prefix, const std::string &description) | |
virtual void | ReadParameters (std::istream &is=std::cin, std::ostream &os=std::cout) |
virtual void | Print (std::ostream &os=std::cout) const |
template<typename T > | |
void | GetParameterValue (std::string flag, T &value) |
void | CopyParameterValues (const Parametrized &p) |
template<typename T > | |
void | SetParameter (std::string flag, const T &value) |
bool | IsRegistered () const |
Protected Member Functions | |
virtual void | RegisterParameters ()=0 |
Protected Attributes | |
ParameterBox | parameters |
Static Protected Attributes | |
static std::list< Parametrized * > | overall_parametrized |
Friends | |
bool | CommandLineParameters::Parse (int argc, const char *argv[], bool check_unregistered, bool silent) |
A class representing a parametrized component of EasyLocal++.
Definition at line 325 of file parameter.hh.
|
inline |
Constructor.
prefix | namespace of the parameters |
description | semantics of the parameters group |
Definition at line 334 of file parameter.hh.
|
inline |
Definition at line 383 of file parameter.hh.
|
inline |
Gets a given parameter
Definition at line 366 of file parameter.hh.
|
inline |
Definition at line 422 of file parameter.hh.
|
inlinevirtual |
Print all parameter values on an output stream.
Reimplemented in EasyLocal::Core::SearchEngine< Input, State, CFtype >, and EasyLocal::Core::SimpleLocalSearch< Input, Output, State, CFtype >.
Definition at line 355 of file parameter.hh.
|
inlinevirtual |
Read all parameters from an input stream (prints hints on output stream).
Reimplemented in EasyLocal::Core::SearchEngine< Input, State, CFtype >, and EasyLocal::Core::SimpleLocalSearch< Input, Output, State, CFtype >.
Definition at line 340 of file parameter.hh.
|
protectedpure virtual |
|
inline |
Sets a given parameter to a given value
Definition at line 403 of file parameter.hh.
|
friend |
|
staticprotected |
Definition at line 436 of file parameter.hh.
|
protected |
Definition at line 434 of file parameter.hh.