mrgsolve
Public Member Functions | Public Attributes | List of all members
databox Class Reference

member functions mevent and tad come in via housemodel; see inst/base/databox.cpp More...

#include <mrgsolv.h>

Public Member Functions

void stop ()
 stops the problem when the next record is started More...
 
void stop_id ()
 stops solving for the current id, filling with NA More...
 
void stop_id_cf ()
 stops solving for the current id, filling last value More...
 
void mevent (double time, int evid)
 constructor for evdata objects More...
 
double mtime (double time)
 creates evdata object for simple model event time More...
 
double tad ()
 calculates time after dose More...
 

Public Attributes

std::vector< double > ETA
 vector of ETA values More...
 
std::vector< double > EPS
 vector of EPS values More...
 
unsigned int newind
 new individual flag More...
 
double time
 current simulation time More...
 
int evid
 event ID flag More...
 
unsigned short int SYSTEMOFF
 flag to stop advancing system for current ID More...
 
double id
 current ID More...
 
double amt
 current dosing amount value More...
 
short int cmt
 current compartment value More...
 
int nid
 number of IDs in the data set More...
 
int idn
 current ID number More...
 
int nrow
 number of rows in output data set More...
 
int rown
 current output row number More...
 
bool CFONSTOP
 carry forward on stop indicator More...
 
void * envir
 model environment More...
 
std::vector< mrgsolve::evdatamevector
 a collection of model events to pass back More...
 

Detailed Description

member functions mevent and tad come in via housemodel; see inst/base/databox.cpp

Model data passed to the model.

This data is passed to PREAMBLE, MAIN, and TABLE but not ODE.

Member Function Documentation

◆ mevent()

void databox::mevent ( double  time,
int  evid 
)

constructor for evdata objects

◆ mtime()

double databox::mtime ( double  time)

creates evdata object for simple model event time

◆ stop()

void databox::stop ( )
inline

stops the problem when the next record is started

◆ stop_id()

void databox::stop_id ( )
inline

stops solving for the current id, filling with NA

◆ stop_id_cf()

void databox::stop_id_cf ( )
inline

stops solving for the current id, filling last value

◆ tad()

double databox::tad ( )

calculates time after dose

Calculates time after dose.

Returns
the calculated time after dose; if no dose has been given for the current individual, then -1 is returned.

Member Data Documentation

◆ amt

double databox::amt

current dosing amount value

◆ CFONSTOP

bool databox::CFONSTOP

carry forward on stop indicator

◆ cmt

short int databox::cmt

current compartment value

◆ envir

void* databox::envir

model environment

◆ EPS

std::vector<double> databox::EPS

vector of EPS values

◆ ETA

std::vector<double> databox::ETA

vector of ETA values

◆ evid

int databox::evid

event ID flag

◆ id

double databox::id

current ID

◆ idn

int databox::idn

current ID number

◆ mevector

std::vector<mrgsolve::evdata> databox::mevector

a collection of model events to pass back

◆ newind

unsigned int databox::newind

new individual flag

◆ nid

int databox::nid

number of IDs in the data set

◆ nrow

int databox::nrow

number of rows in output data set

◆ rown

int databox::rown

current output row number

◆ SYSTEMOFF

unsigned short int databox::SYSTEMOFF

flag to stop advancing system for current ID

◆ time

double databox::time

current simulation time


The documentation for this class was generated from the following files: