#include <RcppList.h>
Public Member Functions | |
RcppList (void) | |
~RcppList () | |
void | setSize (int size) |
void | append (std::string name, double value) |
void | append (std::string name, int value) |
void | append (std::string name, std::string value) |
void | append (std::string name, SEXP sexp) |
void | clearProtectionStack () |
SEXP | getList (void) const |
Private Attributes | |
SEXP | listArg |
int | listSize |
int | currListPosn |
int | numProtected |
std::vector< std::string > | names |
Friends | |
class | RcppResultSet |
Definition at line 40 of file RcppList.h.
RcppList::RcppList | ( | void | ) | [inline] |
Definition at line 42 of file RcppList.h.
RcppList::~RcppList | ( | ) | [inline] |
Definition at line 44 of file RcppList.h.
References numProtected.
void RcppList::append | ( | std::string | name, | |
SEXP | sexp | |||
) |
Definition at line 59 of file RcppList.cpp.
References currListPosn, listArg, listSize, and names.
void RcppList::append | ( | std::string | name, | |
std::string | value | |||
) |
Definition at line 49 of file RcppList.cpp.
References currListPosn, listArg, listSize, names, and numProtected.
void RcppList::append | ( | std::string | name, | |
int | value | |||
) |
Definition at line 39 of file RcppList.cpp.
References currListPosn, listArg, listSize, names, and numProtected.
void RcppList::append | ( | std::string | name, | |
double | value | |||
) |
Definition at line 29 of file RcppList.cpp.
References currListPosn, listArg, listSize, names, and numProtected.
void RcppList::clearProtectionStack | ( | ) |
Definition at line 66 of file RcppList.cpp.
References numProtected.
SEXP RcppList::getList | ( | void | ) | const |
Definition at line 71 of file RcppList.cpp.
References listArg, listSize, and names.
Referenced by RcppResultSet::add().
void RcppList::setSize | ( | int | size | ) |
Definition at line 23 of file RcppList.cpp.
References listArg, listSize, and numProtected.
friend class RcppResultSet [friend] |
Definition at line 58 of file RcppList.h.
int RcppList::currListPosn [private] |
Definition at line 62 of file RcppList.h.
Referenced by append().
SEXP RcppList::listArg [private] |
Definition at line 61 of file RcppList.h.
int RcppList::listSize [private] |
Definition at line 62 of file RcppList.h.
std::vector<std::string> RcppList::names [private] |
Definition at line 63 of file RcppList.h.
int RcppList::numProtected [private] |
Definition at line 62 of file RcppList.h.
Referenced by append(), clearProtectionStack(), setSize(), and ~RcppList().