RcppFunction Class Reference

#include <Rcpp.h>

Inheritance diagram for RcppFunction:

Inheritance graph
[legend]

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 524 of file Rcpp.h.


Constructor & Destructor Documentation

RcppFunction::RcppFunction ( SEXP  fn  )  [inline]

Definition at line 526 of file Rcpp.h.

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

RcppFunction::~RcppFunction (  )  [inline]

Definition at line 534 of file Rcpp.h.

References numProtected.


Member Function Documentation

SEXP RcppFunction::listCall (  ) 

Definition at line 877 of file Rcpp.cpp.

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

Referenced by MyRListFunc::addOne().

SEXP RcppFunction::vectorCall (  ) 

Definition at line 897 of file Rcpp.cpp.

References fn, numProtected, and vectorArg.

Referenced by MyRVectorFunc::getSum().

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

Definition at line 909 of file Rcpp.cpp.

References numProtected, and vectorArg.

Referenced by MyRVectorFunc::getSum().

void RcppFunction::setRListSize ( int  size  ) 

Definition at line 916 of file Rcpp.cpp.

References listArg, listSize, and numProtected.

Referenced by MyRListFunc::addOne().

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

Definition at line 922 of file Rcpp.cpp.

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

Referenced by MyRListFunc::addOne().

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

Definition at line 932 of file Rcpp.cpp.

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

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

Definition at line 942 of file Rcpp.cpp.

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

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

Definition at line 952 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,
RcppDatetime datetime 
)

Definition at line 966 of file Rcpp.cpp.

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

Here is the call graph for this function:

void RcppFunction::clearProtectionStack (  )  [inline]

Definition at line 546 of file Rcpp.h.

References numProtected.

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


Member Data Documentation

SEXP RcppFunction::fn [private]

Definition at line 552 of file Rcpp.h.

Referenced by listCall(), and vectorCall().

SEXP RcppFunction::listArg [private]

Definition at line 552 of file Rcpp.h.

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

SEXP RcppFunction::vectorArg [private]

Definition at line 552 of file Rcpp.h.

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

int RcppFunction::listSize [private]

Definition at line 553 of file Rcpp.h.

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

Definition at line 553 of file Rcpp.h.

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

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

Definition at line 554 of file Rcpp.h.

Referenced by appendToRList(), and listCall().


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

Generated on Tue Feb 24 20:27:01 2009 for Rcpp by  doxygen 1.5.6