SHOW:
|
|
- or go back to the newest paste.
1 | template<class T> | |
2 | class Foo : public generalFoo<T> { | |
3 | public: | |
4 | ||
5 | - | Foo(const int& size = 3, |
5 | + | Foo(const int& = 3, |
6 | - | const double& variance = -1.0); |
6 | + | const double& = -1.0); |
7 | ||
8 | - | void generate(const int& size, |
8 | + | void generate(const int& , |
9 | - | const double& theVariance=-1.0); |
9 | + | const double& =-1.0); |
10 | ||
11 | const double& getActualVariance() const; | |
12 | protected: | |
13 | double variance; | |
14 | }; | |
15 | ||
16 | template<class T> | |
17 | - | Foo<T>::Foo(const int& size, |
17 | + | Foo<T>::Foo(const int& theSize, |
18 | const double& theVariance) | |
19 | - | : generalFoo<T>() { |
19 | + | : generalFoo<T>(), size(theSize), variance(theVariance) { |
20 | ||
21 | generate(size,theVariance); | |
22 | } | |
23 | ||
24 | // generate filter | |
25 | template<class T> | |
26 | void Foo<T>::generate(const int& size, | |
27 | const double& theVariance) { | |
28 | ||
29 | // do something here. | |
30 | } | |
31 | ||
32 | template<class T> | |
33 | const double& gaussKernel1D<T>::getActualVariance() const { | |
34 | return variance; | |
35 | } |