Program Listing for File oneElLambda.h
↰ Return to documentation for file (src/lib/oneElLambda.h)
/*
17/11/2014
Class to store one element with lambda, value, origin (used for create vector
in filter and SED)
*/
// avoid multiple def of the same class
#ifndef ONEEL_H // check that this keyword has been set already
#define ONEEL_H // define the keyword to be checked
class oneElLambda {
public:
double lamb,
val,
ori;
oneElLambda(double lambda, double value, int origin) {
lamb = lambda;
val = value;
ori = origin;
}
oneElLambda(const oneElLambda &obj) {
lamb = obj.lamb;
val = obj.val;
ori = obj.ori;
}
~oneElLambda() {}
void interp(const oneElLambda &previous, const oneElLambda &next);
inline bool operator<(const oneElLambda &rhs) const {
return lamb < rhs.lamb;
}
};
#endif