00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef RcppResultSet_h
00024 #define RcppResultSet_h
00025
00026 #include <RcppCommon.h>
00027
00028 #include <RcppDate.h>
00029 #include <RcppDateVector.h>
00030 #include <RcppDatetime.h>
00031 #include <RcppDatetimeVector.h>
00032 #include <RcppStringVector.h>
00033 #include <RcppFrame.h>
00034 #include <RcppList.h>
00035 #include <RcppMatrix.h>
00036 #include <RcppNumList.h>
00037 #include <RcppStringVector.h>
00038 #include <RcppVector.h>
00039
00040 class RcppResultSet {
00041 public:
00042 RcppResultSet();
00043 void add(std::string, double);
00044 void add(std::string, int);
00045 void add(std::string, std::string);
00046 void add(std::string, double *, int);
00047 void add(std::string, int *, int);
00048 void add(std::string, double **, int, int);
00049 void add(std::string, int **, int, int);
00050 void add(std::string, RcppDate&);
00051 void add(std::string, RcppDateVector&);
00052 void add(std::string, RcppDatetime&);
00053 void add(std::string, RcppDatetimeVector&);
00054 void add(std::string, RcppStringVector&);
00055 void add(std::string, std::vector<double>&);
00056 void add(std::string, std::vector<int>&);
00057 void add(std::string, std::vector<std::vector<double> >&);
00058 void add(std::string, std::vector<std::vector<int> >&);
00059 void add(std::string, std::vector<std::string>&);
00060 void add(std::string, RcppVector<int>&);
00061 void add(std::string, RcppVector<double>&);
00062 void add(std::string, RcppMatrix<int>&);
00063 void add(std::string, RcppMatrix<double>&);
00064 void add(std::string, RcppFrame&);
00065 void add(std::string, RcppList&);
00066 void add(std::string, SEXP, bool isProtected);
00067 SEXP getReturnList();
00068 SEXP getSEXP();
00069 protected:
00070 int numProtected;
00071 std::list<std::pair<std::string,SEXP> > values;
00072 };
00073
00074 #endif