Rcpp Version 0.12.12
Rcpp::Dimension Class Reference

#include <Dimension.h>

Public Types

typedef std::vector< int >::reference reference
 
typedef std::vector< int >::const_reference const_reference
 

Public Member Functions

 Dimension ()
 
 Dimension (SEXP dims)
 
 Dimension (const Dimension &other)
 
Dimensionoperator= (const Dimension &other)
 
 Dimension (const size_t &n1)
 
 Dimension (const size_t &n1, const size_t &n2)
 
 Dimension (const size_t &n1, const size_t &n2, const size_t &n3)
 
 operator SEXP () const
 
int size () const
 
R_xlen_t prod () const
 
reference operator[] (int i)
 
const_reference operator[] (int i) const
 

Private Attributes

std::vector< int > dims
 

Detailed Description

Definition at line 27 of file Dimension.h.

Member Typedef Documentation

Definition at line 30 of file Dimension.h.

typedef std::vector<int>::reference Rcpp::Dimension::reference

Definition at line 29 of file Dimension.h.

Constructor & Destructor Documentation

Rcpp::Dimension::Dimension ( )
inline

Definition at line 32 of file Dimension.h.

References dims.

Rcpp::Dimension::Dimension ( SEXP  dims)
inline

Definition at line 23 of file Dimension.h.

Rcpp::Dimension::Dimension ( const Dimension other)
inline

Definition at line 36 of file Dimension.h.

Rcpp::Dimension::Dimension ( const size_t &  n1)
inline

Definition at line 42 of file Dimension.h.

Rcpp::Dimension::Dimension ( const size_t &  n1,
const size_t &  n2 
)
inline

Definition at line 45 of file Dimension.h.

Rcpp::Dimension::Dimension ( const size_t &  n1,
const size_t &  n2,
const size_t &  n3 
)
inline

Definition at line 49 of file Dimension.h.

Member Function Documentation

Rcpp::Dimension::operator SEXP ( ) const
inline

Definition at line 25 of file Dimension.h.

References dims, and Rcpp::wrap().

Here is the call graph for this function:

Dimension& Rcpp::Dimension::operator= ( const Dimension other)
inline

Definition at line 37 of file Dimension.h.

References dims.

reference Rcpp::Dimension::operator[] ( int  i)
inline

Definition at line 63 of file Dimension.h.

const_reference Rcpp::Dimension::operator[] ( int  i) const
inline

Definition at line 67 of file Dimension.h.

R_xlen_t Rcpp::Dimension::prod ( ) const
inline

Definition at line 59 of file Dimension.h.

Referenced by Rcpp::Vector< INTSXP >::Vector().

int Rcpp::Dimension::size ( ) const
inline

Member Data Documentation

std::vector<int> Rcpp::Dimension::dims
private

Definition at line 73 of file Dimension.h.

Referenced by Dimension(), operator SEXP(), and operator=().


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