You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
778 B
35 lines
778 B
15 years ago
|
#ifndef PARAMETER_HPP
|
||
|
#define PARAMETER_HPP
|
||
|
|
||
|
#include "Vector.hpp"
|
||
|
|
||
|
class Parameters {
|
||
|
|
||
|
Vector * begin;
|
||
|
Vector * eind;
|
||
|
Vector * interpolated;
|
||
|
|
||
|
void check_pointers();
|
||
|
|
||
|
|
||
|
public:
|
||
|
|
||
|
// for checks and assertions
|
||
|
unsigned int num_parameters;
|
||
|
|
||
|
Parameters(unsigned int num_parameters, float default_val = 0.0);
|
||
|
//Parameters(unsigned int num_parameters, float default_val1, float default_val2);
|
||
|
~Parameters();
|
||
|
|
||
|
void set(unsigned int parameter, float val1, float val2);
|
||
|
void set(unsigned int parameter, float val);
|
||
|
float get(unsigned int parameter);
|
||
|
|
||
|
void interpolate(float time);
|
||
|
|
||
|
// output operator
|
||
|
friend ostream& operator<<(ostream& os, const Parameters& param);
|
||
|
};
|
||
|
|
||
|
#endif // PARAMETER_HPP
|