#include <RcppVector.h>
Public Member Functions | |
RcppVector (SEXP vec) | |
RcppVector (int len) | |
int | size () const |
T & | operator() (int i) const |
T * | cVector () const |
std::vector< T > | stlVector () const |
Private Attributes | |
int | len |
T * | v |
Definition at line 29 of file RcppVector.h.
RcppVector< T >::RcppVector | ( | SEXP | vec | ) | [inline] |
Definition at line 26 of file RcppVector.cpp.
References RcppVector< T >::len, and RcppVector< T >::v.
RcppVector< T >::RcppVector | ( | int | len | ) | [inline] |
Definition at line 50 of file RcppVector.cpp.
References RcppVector< T >::len, and RcppVector< T >::v.
T * RcppVector< T >::cVector | ( | ) | const [inline] |
Definition at line 73 of file RcppVector.cpp.
References RcppVector< T >::len, and RcppVector< T >::v.
Referenced by RcppResultSet::add(), and Rcpp_Example().
T & RcppVector< T >::operator() | ( | int | i | ) | const [inline] |
Definition at line 63 of file RcppVector.cpp.
References RcppVector< T >::len, and RcppVector< T >::v.
int RcppVector< T >::size | ( | ) | const [inline] |
Definition at line 58 of file RcppVector.cpp.
References RcppVector< T >::len.
Referenced by RcppResultSet::add(), Rcpp_Example(), and RcppVectorExample().
std::vector< T > RcppVector< T >::stlVector | ( | ) | const [inline] |
Definition at line 81 of file RcppVector.cpp.
References RcppVector< T >::len, and RcppVector< T >::v.
Referenced by Rcpp_Example().
int RcppVector< T >::len [private] |
Definition at line 38 of file RcppVector.h.
Referenced by RcppVector< T >::cVector(), RcppVector< T >::operator()(), RcppVector< T >::RcppVector(), RcppVector< T >::size(), and RcppVector< T >::stlVector().
T* RcppVector< T >::v [private] |
Definition at line 39 of file RcppVector.h.
Referenced by RcppVector< T >::cVector(), RcppVector< T >::operator()(), RcppVector< T >::RcppVector(), and RcppVector< T >::stlVector().