Rcpp Version 0.9.10
Rcpp::sugar::Head< RTYPE, NA, T > Class Template Reference

#include <head.h>

Inheritance diagram for Rcpp::sugar::Head< RTYPE, NA, T >:
Collaboration diagram for Rcpp::sugar::Head< RTYPE, NA, T >:

List of all members.

Public Types

typedef Rcpp::VectorBase
< RTYPE, NA, T > 
VEC_TYPE
typedef
Rcpp::traits::storage_type
< RTYPE >::type 
STORAGE

Public Member Functions

 Head (const VEC_TYPE &object_, int n_)
STORAGE operator[] (int i) const
int size () const

Private Attributes

const VEC_TYPEobject
int n

Detailed Description

template<int RTYPE, bool NA, typename T>
class Rcpp::sugar::Head< RTYPE, NA, T >

Definition at line 29 of file head.h.


Member Typedef Documentation

template<int RTYPE, bool NA, typename T>
typedef Rcpp::traits::storage_type<RTYPE>::type Rcpp::sugar::Head< RTYPE, NA, T >::STORAGE

Definition at line 32 of file head.h.

template<int RTYPE, bool NA, typename T>
typedef Rcpp::VectorBase<RTYPE,NA,T> Rcpp::sugar::Head< RTYPE, NA, T >::VEC_TYPE

Definition at line 31 of file head.h.


Constructor & Destructor Documentation

template<int RTYPE, bool NA, typename T>
Rcpp::sugar::Head< RTYPE, NA, T >::Head ( const VEC_TYPE object_,
int  n_ 
) [inline]

Definition at line 34 of file head.h.

References Rcpp::sugar::Head< RTYPE, NA, T >::n.


Member Function Documentation

template<int RTYPE, bool NA, typename T>
STORAGE Rcpp::sugar::Head< RTYPE, NA, T >::operator[] ( int  i) const [inline]

Reimplemented from Rcpp::VectorBase< RTYPE, na, VECTOR >.

Definition at line 40 of file head.h.

References i.

template<int RTYPE, bool NA, typename T>
int Rcpp::sugar::Head< RTYPE, NA, T >::size ( ) const [inline]

Reimplemented from Rcpp::VectorBase< RTYPE, na, VECTOR >.

Definition at line 43 of file head.h.

References Rcpp::sugar::Head< RTYPE, NA, T >::n.


Member Data Documentation

template<int RTYPE, bool NA, typename T>
int Rcpp::sugar::Head< RTYPE, NA, T >::n [private]
template<int RTYPE, bool NA, typename T>
const VEC_TYPE& Rcpp::sugar::Head< RTYPE, NA, T >::object [private]

Definition at line 46 of file head.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines