RcppVectorView< T > Class Template Reference

#include <Rcpp.h>

Collaboration diagram for RcppVectorView< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 RcppVectorView (SEXP vec)
int size () const
operator() (int i) const

Private Attributes

int len
T * v


Detailed Description

template<typename T>
class RcppVectorView< T >

Definition at line 470 of file Rcpp.h.


Constructor & Destructor Documentation

template<typename T>
RcppVectorView< T >::RcppVectorView ( SEXP  vec  )  [inline]

Definition at line 415 of file Rcpp.cpp.

References RcppVectorView< T >::len, and RcppVectorView< T >::v.


Member Function Documentation

template<typename T>
int RcppVectorView< T >::size (  )  const [inline]

Definition at line 473 of file Rcpp.h.

References RcppVectorView< T >::len.

template<typename T>
T RcppVectorView< T >::operator() ( int  i  )  const [inline]

Definition at line 474 of file Rcpp.h.

References RcppVectorView< T >::len, and RcppVectorView< T >::v.


Member Data Documentation

template<typename T>
int RcppVectorView< T >::len [private]

template<typename T>
T* RcppVectorView< T >::v [private]

Definition at line 484 of file Rcpp.h.

Referenced by RcppVectorView< T >::operator()(), and RcppVectorView< T >::RcppVectorView().


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

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