RcppFunction Class Reference

#include <Rcpp.h>

Inherited by MyRListFunc, and MyRVectorFunc.

List of all members.

Public Member Functions

 RcppFunction (SEXP fn)
 ~RcppFunction ()
SEXP listCall ()
SEXP vectorCall ()
void setRVector (std::vector< double > &v)
void setRListSize (int size)
void appendToRList (std::string name, double value)
void appendToRList (std::string name, int value)
void appendToRList (std::string name, std::string value)
void appendToRList (std::string name, RcppDate &date)
void appendToRList (std::string name, RcppDatetime &datetime)
void clearProtectionStack ()

Private Attributes

SEXP fn
SEXP listArg
SEXP vectorArg
int listSize
int currListPosn
int numProtected
std::vector< std::string > names


Detailed Description

Definition at line 525 of file Rcpp.h.


Constructor & Destructor Documentation

RcppFunction::RcppFunction ( SEXP  fn  )  [inline]

Definition at line 527 of file Rcpp.h.

References currListPosn, listArg, listSize, numProtected, and vectorArg.

RcppFunction::~RcppFunction (  )  [inline]

Definition at line 535 of file Rcpp.h.

References numProtected.


Member Function Documentation

void RcppFunction::appendToRList ( std::string  name,
RcppDatetime datetime 
)

Definition at line 975 of file Rcpp.cpp.

References currListPosn, RcppDatetime::getFractionalTimestamp(), listArg, listSize, names, and numProtected.

Here is the call graph for this function:

void RcppFunction::appendToRList ( std::string  name,
RcppDate date 
)

Definition at line 961 of file Rcpp.cpp.

References currListPosn, RcppDate::getJDN(), RcppDate::Jan1970Offset, listArg, listSize, names, and numProtected.

Here is the call graph for this function:

void RcppFunction::appendToRList ( std::string  name,
std::string  value 
)

Definition at line 951 of file Rcpp.cpp.

References currListPosn, listArg, listSize, names, and numProtected.

void RcppFunction::appendToRList ( std::string  name,
int  value 
)

Definition at line 941 of file Rcpp.cpp.

References currListPosn, listArg, listSize, names, and numProtected.

void RcppFunction::appendToRList ( std::string  name,
double  value 
)

Definition at line 931 of file Rcpp.cpp.

References currListPosn, listArg, listSize, names, and numProtected.

Referenced by MyRListFunc::addOne().

void RcppFunction::clearProtectionStack (  )  [inline]

Definition at line 547 of file Rcpp.h.

References numProtected.

Referenced by MyRListFunc::addOne(), and MyRVectorFunc::getSum().

SEXP RcppFunction::listCall (  ) 

Definition at line 886 of file Rcpp.cpp.

References currListPosn, fn, listArg, listSize, names, and numProtected.

Referenced by MyRListFunc::addOne().

void RcppFunction::setRListSize ( int  size  ) 

Definition at line 925 of file Rcpp.cpp.

References listArg, listSize, and numProtected.

Referenced by MyRListFunc::addOne().

void RcppFunction::setRVector ( std::vector< double > &  v  ) 

Definition at line 918 of file Rcpp.cpp.

References numProtected, and vectorArg.

Referenced by MyRVectorFunc::getSum().

SEXP RcppFunction::vectorCall (  ) 

Definition at line 906 of file Rcpp.cpp.

References fn, numProtected, and vectorArg.

Referenced by MyRVectorFunc::getSum().


Member Data Documentation

Definition at line 554 of file Rcpp.h.

Referenced by appendToRList(), listCall(), and RcppFunction().

SEXP RcppFunction::fn [private]

Definition at line 553 of file Rcpp.h.

Referenced by listCall(), and vectorCall().

SEXP RcppFunction::listArg [private]

Definition at line 553 of file Rcpp.h.

Referenced by appendToRList(), listCall(), RcppFunction(), and setRListSize().

int RcppFunction::listSize [private]

Definition at line 554 of file Rcpp.h.

Referenced by appendToRList(), listCall(), RcppFunction(), and setRListSize().

std::vector<std::string> RcppFunction::names [private]

Definition at line 555 of file Rcpp.h.

Referenced by appendToRList(), and listCall().

SEXP RcppFunction::vectorArg [private]

Definition at line 553 of file Rcpp.h.

Referenced by RcppFunction(), setRVector(), and vectorCall().


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

Generated on Mon Aug 3 14:41:33 2009 for Rcpp by  doxygen 1.5.9