Microsimulation API
Public Types | Public Member Functions | Private Attributes | List of all members
Table< I0, I1, I2, I3, Outcome > Class Template Reference

#include <rcpp_table.h>

Collaboration diagram for Table< I0, I1, I2, I3, Outcome >:
Collaboration graph
[legend]

Public Types

typedef std::tuple< I0, I1, I2, I3 > key_type
 
typedef Outcome mapped_type
 
typedef std::tuple< set< I0, greater< I0 > >, set< I1, greater< I1 > >, set< I2, greater< I2 > >, set< I3, greater< I3 > > > Axis
 

Public Member Functions

 Table ()
 
void insert (I0 key0, I1 key1, I2 key2, I3 key3, mapped_type outcome)
 
virtual Outcome operator() (I0 i0, I1 i1, I2 i2, I3 i3)
 
 Table (const DataFrame &df, string s0, string s1, string s2, string s3, string s4)
 

Private Attributes

Axis axis
 
map< key_type, mapped_typedata
 

Detailed Description

template<class I0, class I1, class I2, class I3, class Outcome>
class Table< I0, I1, I2, I3, Outcome >

Definition at line 192 of file rcpp_table.h.

Member Typedef Documentation

◆ Axis

template<class I0 , class I1 , class I2 , class I3 , class Outcome >
typedef std::tuple< set<I0, greater<I0> >, set<I1, greater<I1> >, set<I2, greater<I2> >, set<I3, greater<I3> > > Table< I0, I1, I2, I3, Outcome >::Axis

Definition at line 201 of file rcpp_table.h.

◆ key_type

template<class I0 , class I1 , class I2 , class I3 , class Outcome >
typedef std::tuple<I0,I1,I2,I3> Table< I0, I1, I2, I3, Outcome >::key_type

Definition at line 194 of file rcpp_table.h.

◆ mapped_type

template<class I0 , class I1 , class I2 , class I3 , class Outcome >
typedef Outcome Table< I0, I1, I2, I3, Outcome >::mapped_type

Definition at line 195 of file rcpp_table.h.

Constructor & Destructor Documentation

◆ Table() [1/2]

template<class I0 , class I1 , class I2 , class I3 , class Outcome >
Table< I0, I1, I2, I3, Outcome >::Table ( )
inline

Definition at line 202 of file rcpp_table.h.

◆ Table() [2/2]

template<class I0 , class I1 , class I2 , class I3 , class Outcome >
Table< I0, I1, I2, I3, Outcome >::Table ( const DataFrame &  df,
string  s0,
string  s1,
string  s2,
string  s3,
string  s4 
)
inline

Definition at line 217 of file rcpp_table.h.

Member Function Documentation

◆ insert()

template<class I0 , class I1 , class I2 , class I3 , class Outcome >
void Table< I0, I1, I2, I3, Outcome >::insert ( I0  key0,
I1  key1,
I2  key2,
I3  key3,
mapped_type  outcome 
)
inline

Definition at line 203 of file rcpp_table.h.

◆ operator()()

template<class I0 , class I1 , class I2 , class I3 , class Outcome >
virtual Outcome Table< I0, I1, I2, I3, Outcome >::operator() ( I0  i0,
I1  i1,
I2  i2,
I3  i3 
)
inlinevirtual

Definition at line 211 of file rcpp_table.h.

Member Data Documentation

◆ axis

template<class I0 , class I1 , class I2 , class I3 , class Outcome >
Axis Table< I0, I1, I2, I3, Outcome >::axis
private

Definition at line 228 of file rcpp_table.h.

◆ data

template<class I0 , class I1 , class I2 , class I3 , class Outcome >
map<key_type,mapped_type> Table< I0, I1, I2, I3, Outcome >::data
private

Definition at line 229 of file rcpp_table.h.


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