Go to the documentation of this file.
30 typedef std::shared_ptr<datarecord>
rec_ptr;
33 #define NEWREC std::make_shared<datarecord>
39 datarecord(
double time_,
int pos_,
bool output_);
42 datarecord(
double time_,
short int cmt_,
int pos_,
double id_);
45 datarecord(
short int cmt_,
int evid_,
double amt_,
double time_,
double rate_,
46 int pos_,
double id_);
49 datarecord(
short int cmt_,
int evid_,
double amt_,
double time_,
double rate_);
57 void id(
double id_) {
Id = id_;}
60 void evid(
unsigned short int evid_){
Evid=evid_;}
81 void addl(
int addl_){
Addl = std::max(0,addl_);}
84 void ss(
int ss_){
Ss = std::max(0,ss_);}
85 unsigned short ss(){
return Ss;}
87 void ii(
double ii_){
Ii = ii_;}
90 void schedule(std::vector<rec_ptr>& thisi,
double maxtime,
bool put_ev_first,
91 const unsigned int maxpos,
double Fn);
124 unsigned short int Ss;
147 if(a->time() == b->time()) {
148 return a->pos() < b->pos();
150 return a->time() < b->time();
bool ss_infusion()
Definition: datarecord.cpp:136
Functor for sorting data records in reclist.
Definition: datarecord.h:145
void rate(double value)
Definition: datarecord.h:77
unsigned short int Evid
record event ID
Definition: datarecord.h:119
void evid(unsigned short int evid_)
Definition: datarecord.h:60
bool is_dose()
Definition: datarecord.h:104
bool is_event()
Definition: datarecord.h:103
unsigned int evid()
Definition: datarecord.h:59
bool armed()
Definition: datarecord.h:110
double amt()
Definition: datarecord.h:74
bool int_infusion()
Definition: datarecord.h:99
std::shared_ptr< datarecord > rec_ptr
Definition: datarecord.h:29
void steady_bolus(odeproblem *prob, LSODA &solver)
Definition: datarecord.cpp:221
bool operator()(const rec_ptr &a, const rec_ptr &b)
Definition: datarecord.h:146
void pos(int pos_)
Definition: datarecord.h:63
void time(double time_)
Definition: datarecord.h:54
double Ii
record inter-dose interval value
Definition: datarecord.h:127
unsigned short ss()
Definition: datarecord.h:85
double id()
Definition: datarecord.h:56
unsigned int addl()
Definition: datarecord.h:82
bool Output
should this record be included in output?
Definition: datarecord.h:120
void ss(int ss_)
Definition: datarecord.h:84
bool const_infusion()
Definition: datarecord.h:101
void output(bool in)
Definition: datarecord.h:68
double dur(double b)
Definition: datarecord.cpp:132
void steady_zero(odeproblem *prob, LSODA &solver)
Definition: datarecord.cpp:470
void steady_infusion(odeproblem *prob, reclist &thisi, LSODA &solver)
Definition: datarecord.cpp:311
double Amt
record dosing amount value
Definition: datarecord.h:125
datarecord(double time_, int pos_, bool output_)
constructor
Definition: datarecord.cpp:35
double ii()
Definition: datarecord.h:88
std::vector< rec_ptr > reclist
Definition: datarecord.h:31
int pos()
Definition: datarecord.h:62
unsigned int Addl
number of additional doses
Definition: datarecord.h:123
bool unarmed()
Definition: datarecord.h:108
void phantom_rec()
Definition: datarecord.h:113
bool CompEqual(const reclist &a, double time, unsigned int evid, int cmt)
Definition: datarecord.cpp:122
bool is_phantom()
Definition: datarecord.h:114
int Pos
record position number
Definition: datarecord.h:118
void implement(odeproblem *prob)
Definition: datarecord.cpp:140
bool Fromdata
is this record from the original data set?
Definition: datarecord.h:121
bool needs_sorting()
Definition: datarecord.h:106
~datarecord()
Definition: datarecord.cpp:114
void schedule(std::vector< rec_ptr > &thisi, double maxtime, bool put_ev_first, const unsigned int maxpos, double Fn)
Definition: datarecord.cpp:539
bool is_event_data()
Definition: datarecord.h:105
double time()
Definition: datarecord.h:53
Definition: datarecord.h:35
bool from_data()
Definition: datarecord.h:71
void arm()
Definition: datarecord.h:109
short int cmtn()
Definition: datarecord.h:66
void from_data(bool val)
Definition: datarecord.h:72
void addl(int addl_)
Definition: datarecord.h:81
bool output()
Definition: datarecord.h:69
unsigned short int Ss
record steady-state indicator
Definition: datarecord.h:124
bool ss_int_infusion()
Definition: datarecord.h:100
bool Armed
only armed records are actually executed
Definition: datarecord.h:128
double Id
record ID value
Definition: datarecord.h:117
short int cmt()
Definition: datarecord.h:65
double Rate
record infusion rate value
Definition: datarecord.h:126
double Time
record time
Definition: datarecord.h:116
short int Cmt
record compartment number
Definition: datarecord.h:122
void id(double id_)
Definition: datarecord.h:57
bool CompByTimePosRec(const rec_ptr &a, const rec_ptr &b)
Definition: datarecord.cpp:116
bool infusion()
Definition: datarecord.h:98
void steady(odeproblem *prob, reclist &thisi, double Fn, LSODA &solver)
Definition: datarecord.cpp:214
void ii(double ii_)
Definition: datarecord.h:87
void unarm()
Definition: datarecord.h:111
double rate()
Definition: datarecord.h:76
Definition: odeproblem.h:94