StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Attributes | List of all members
ConstrainedParameter Class Reference
Inheritance diagram for ConstrainedParameter:
Parameter Named Described EditableParameter

Public Member Functions

 ConstrainedParameter (const string &name, const string &description, double value, double defaultValue, double min, double max, int type=Double, int key=0)
 
 ConstrainedParameter (const string &name, const string &description, bool *value, bool defaultValue, int key=0)
 
 ConstrainedParameter (const string &name, const string &description, int *value, int defaultValue, int min, int max, int key=0)
 
 ConstrainedParameter (const string &name, const string &description, float *value, float defaultValue, float min, float max, int key=0)
 
 ConstrainedParameter (const string &name, const string &description, double *value, double defaultValue, double min, double max, int key=0)
 
 ConstrainedParameter (const ConstrainedParameter &parameter)
 
const ConstrainedParameteroperator= (const ConstrainedParameter &parameter)
 
double getMinimum () const
 
double getMaximum () const
 
double getDefault () const
 
void setMinimum (double min)
 
void setMaximum (double max)
 
void setDefault (double value)
 
void setValue (double value)
 
void set (const string &name, const string &description, double value, double defaultValue, double min, double max, int type=Double, int key=0)
 
void set (const string &name, const string &description, bool *value, bool defaultValue, int key=0)
 
void set (const string &name, const string &description, int *value, int defaultValue, int min, int max, int key=0)
 
void set (const string &name, const string &description, float *value, float defaultValue, float min, float max, int key=0)
 
void set (const string &name, const string &description, double *value, double defaultValue, double min, double max, int key=0)
 
void reset ()
 
- Public Member Functions inherited from Parameter
 Parameter (const string &name, const string &description, double value, int type, int key)
 
 Parameter (const string &name, const string &description, bool *value, int key)
 
 Parameter (const string &name, const string &description, int *value, int key)
 
 Parameter (const string &name, const string &description, float *value, int key)
 
 Parameter (const string &name, const string &description, double *value, int key)
 
 Parameter (const Parameter &parameter)
 
const Parameteroperator= (const Parameter &parameter)
 
int getKey () const
 
int getType () const
 
bool getBoolValue () const
 
int getIntValue () const
 
float getFloatValue () const
 
double getDoubleValue () const
 
void setKey (int key)
 
void setValue (bool value)
 
void setValue (int value)
 
void setValue (float value)
 
void setValue (double value)
 
void set (const string &name, const string &description, double value, int type=Double, int key=0)
 
void set (const string &name, const string &description, bool *value, int key=0)
 
void set (const string &name, const string &description, int *value, int key=0)
 
void set (const string &name, const string &description, float *value, int key=0)
 
void set (const string &name, const string &description, double *value, int key=0)
 
- Public Member Functions inherited from Named
void setName (const string &newName)
 Set the name of the object.
 
const string & getName () const
 Get the name of the object.
 
bool isName (const string &aName) const
 Determine whether name equals given name.
 
- Public Member Functions inherited from Described
void setDescription (const string &description)
 Set the Describe of the object.
 
const string getDescription () const
 Get the Describe of the object.
 
bool isDescribed () const
 Determine whether Describe is set, i.e object has a Describe.
 
bool isDescription (const string &description) const
 Determine whether Describe equals given Describe.
 
bool sameDescriptionAs (const Described &described) const
 Determine whether Describe equals that of given object.
 

Protected Attributes

double _minimum
 
double _maximum
 
double _default
 
- Protected Attributes inherited from Parameter
int _key
 
int _type
 
double _value
 
void * _exValue
 
- Protected Attributes inherited from Named
string _name
 
- Protected Attributes inherited from Described
string _description
 

Additional Inherited Members

- Static Public Attributes inherited from Parameter
static const int Boolean = 0
 
static const int Integer = 1
 
static const int Float = 2
 
static const int Double = 3
 
- Protected Member Functions inherited from Named
 Named (const string &aName=" ")
 Only derived class are Named.
 
- Protected Member Functions inherited from Described
 Described (const string &aDescribe=" ")
 Only derived class are Described.
 

Detailed Description

Definition at line 11 of file ConstrainedParameter.h.

Member Function Documentation

void ConstrainedParameter::reset ( void  )
inline

Reset the parameter value to its default value.

See Also
void setDefault()

Definition at line 124 of file ConstrainedParameter.h.


The documentation for this class was generated from the following files: