Rcpp Version 1.0.9
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

◆ const_reference

Definition at line 30 of file Dimension.h.

◆ reference

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

Definition at line 29 of file Dimension.h.

Constructor & Destructor Documentation

◆ Dimension() [1/6]

Rcpp::Dimension::Dimension ( )
inline

Definition at line 32 of file Dimension.h.

◆ Dimension() [2/6]

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

Definition at line 23 of file Dimension.h.

◆ Dimension() [3/6]

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

Definition at line 36 of file Dimension.h.

◆ Dimension() [4/6]

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

Definition at line 42 of file Dimension.h.

References dims.

◆ Dimension() [5/6]

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

Definition at line 45 of file Dimension.h.

References dims.

◆ Dimension() [6/6]

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

Definition at line 49 of file Dimension.h.

References dims.

Member Function Documentation

◆ operator SEXP()

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

Definition at line 25 of file Dimension.h.

References Rcpp::wrap().

Here is the call graph for this function:

◆ operator=()

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

Definition at line 37 of file Dimension.h.

References dims.

◆ operator[]() [1/2]

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

Definition at line 63 of file Dimension.h.

References dims.

◆ operator[]() [2/2]

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

Definition at line 67 of file Dimension.h.

References dims.

◆ prod()

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

Definition at line 59 of file Dimension.h.

References dims.

◆ size()

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

Definition at line 56 of file Dimension.h.

References dims.

Member Data Documentation

◆ dims

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

Definition at line 73 of file Dimension.h.

Referenced by Dimension(), operator=(), operator[](), prod(), and size().


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