marian::DataEntryClerk Class Reference

Class used to provide data to julian::DataFrame. More...

#include <dataFrame.hpp>

Public Member Functions

 DataEntryClerk ()
 Default constructor.
 
void add (std::string, std::string)
 adds a string input
 
void add (std::string, double)
 adds a double input
 
void add (std::string, int)
 adds a int input
 
template<typename T >
void add (const std::map< std::string, T > &input)
 add a map to data More...
 

Private Attributes

std::map< std::string, std::string > data_
 Maps that stores inputs provided using method DataEntryClerk::add.
 

Friends

class DataFrame
 

Detailed Description

Class saves input provided by user. Data Clark passed as argument to julian::DataFrame::append adds a new data row to DataFrame. Keys of the map are interpreted as column names and values as observation inputs.

Examples:
convergenceExample.cpp, and EuroOptExample.cpp.

Member Function Documentation

template<typename T >
void marian::DataEntryClerk::add ( const std::map< std::string, T > &  input)
inline

Method adds map to the . The values of the map provided must be one of the type accepted by julian::DataFrame::add methods


The documentation for this class was generated from the following files:
  • C:/Unix/home/OEM/fdm/src/utils/dataFrame.hpp
  • C:/Unix/home/OEM/fdm/src/utils/dataFrame.cpp