[mareframe] Annotation of /trunk/gadget/popinfo.cc
Annotation of /trunk/gadget/popinfo.cc
Parent Directory
| Revision Log
Revision 2 -
(view)
(download)
1 : |
agomez |
1 |
#include "popinfo.h" |
2 : |
|
|
#include "mathfunc.h" |
3 : |
|
|
|
4 : |
|
|
PopInfo& PopInfo::operator = (const PopInfo& a) {
|
5 : |
|
|
N = a.N;
|
6 : |
|
|
W = a.W;
|
7 : |
|
|
return *this;
|
8 : |
|
|
}
|
9 : |
|
|
|
10 : |
|
|
PopInfo PopInfo::operator * (double a) {
|
11 : |
|
|
PopInfo c;
|
12 : |
|
|
c.N = N * a;
|
13 : |
|
|
c.W = W;
|
14 : |
|
|
return c;
|
15 : |
|
|
}
|
|