Log In | Get Help   
Home My Page Projects Code Snippets Project Openings Mareframe
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files
[mareframe] View of /trunk/gadget/popratio.cc
[mareframe] / trunk / gadget / popratio.cc Repository:
ViewVC logotype

View of /trunk/gadget/popratio.cc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (download) (annotate)
Mon Feb 10 17:09:07 2014 UTC (10 years, 3 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;
}

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge