File: loop.ih

package info (click to toggle)
simrisc 16.05.00-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,568 kB
  • sloc: cpp: 6,877; fortran: 665; makefile: 112; ansic: 112; sh: 107
file content (36 lines) | stat: -rw-r--r-- 794 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "loop.h"
#include "../xerr/xerr.ih"

#include <cmath>
#include <algorithm>
#include <fstream>

#include <bobcat/exception>
#include <bobcat/csvtable>
#include <bobcat/datetime>

#include "../random/random.h"
#include "../options/options.h"
#include "../modbase/modbase.h"
#include "../log/log.h"

extern size_t g_caseIdx;
extern size_t g_err;

namespace Icmake
{
    extern char version[];
}

inline double Loop::treatmentCosts(double screeningAge) const
{
                                        // diameter unused with lung cancer
                                        // otherwise metastasis unused
    return d_costs.treatment(screeningAge,
                             d_tumor.diameter(), d_tumor.metastasis());
}

#ifndef SPCH_
using namespace std;
using namespace FBB;
#endif