[mareframe] View of /trunk/gadget/popratio.cc
View of /trunk/gadget/popratio.cc
Parent Directory
| Revision Log
Revision 1 -
( download)
( annotate)
Mon Feb 10 17:09:07 2014 UTC
(10 years, 6 months ago)
by agomez
File size: 334 byte(s)
Initial version based on Gadget 2.2.00
#include "popratio.h"
PopRatio& PopRatio::operator = (const PopRatio& a) {
if (a.N == NULL) {
N = NULL;
R = 0.0;
} else {
if (N == NULL)
N = a.N;
else
*N = *(a.N);
R = a.R;
}
return *this;
}
PopRatio& PopRatio::operator += (const PopRatio& a) {
*N += *(a.N);
R = 0.0;
return *this;
}
|