Rcpp Version 1.0.9
Rcpp::ConstMatrixRow< RTYPE > Class Template Reference

#include <MatrixRow.h>

Inheritance diagram for Rcpp::ConstMatrixRow< RTYPE >:
Collaboration diagram for Rcpp::ConstMatrixRow< RTYPE >:

Classes

class  const_iterator
 

Public Types

typedef Matrix< RTYPE > MATRIX
 
typedef MATRIX::const_Proxy const_reference
 
typedef MATRIX::value_type value_type
 
typedef const_iterator iterator
 
- Public Types inherited from Rcpp::VectorBase< RTYPE, true, ConstMatrixRow< RTYPE > >
typedef traits::storage_type< RTYPE >::type stored_type
 
typedef traits::storage_type< RTYPE >::type elem_type
 
typedef iter_base< iter_traits > iterator
 
typedef iter_base< const_iter_traits > const_iterator
 

Public Member Functions

 ConstMatrixRow (const MATRIX &object, int i)
 
 ConstMatrixRow (const ConstMatrixRow &other)
 
const_reference operator[] (int i) const
 
const_iterator begin () const
 
const_iterator end () const
 
int size () const
 
- Public Member Functions inherited from Rcpp::VectorBase< RTYPE, true, ConstMatrixRow< RTYPE > >
ConstMatrixRow< RTYPE > & get_ref ()
 
const ConstMatrixRow< RTYPE > & get_ref () const
 
stored_type operator[] (R_xlen_t i) const
 
R_xlen_t size () const
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 

Private Member Functions

int get_parent_index (int i) const
 

Private Attributes

const MATRIXparent
 
MATRIX::const_iterator start
 
int parent_nrow
 
int row
 

Detailed Description

template<int RTYPE>
class Rcpp::ConstMatrixRow< RTYPE >

Definition at line 216 of file MatrixRow.h.

Member Typedef Documentation

◆ const_reference

template<int RTYPE>
typedef MATRIX::const_Proxy Rcpp::ConstMatrixRow< RTYPE >::const_reference

Definition at line 219 of file MatrixRow.h.

◆ iterator

template<int RTYPE>
typedef const_iterator Rcpp::ConstMatrixRow< RTYPE >::iterator

Definition at line 290 of file MatrixRow.h.

◆ MATRIX

template<int RTYPE>
typedef Matrix<RTYPE> Rcpp::ConstMatrixRow< RTYPE >::MATRIX

Definition at line 218 of file MatrixRow.h.

◆ value_type

template<int RTYPE>
typedef MATRIX::value_type Rcpp::ConstMatrixRow< RTYPE >::value_type

Definition at line 220 of file MatrixRow.h.

Constructor & Destructor Documentation

◆ ConstMatrixRow() [1/2]

template<int RTYPE>
Rcpp::ConstMatrixRow< RTYPE >::ConstMatrixRow ( const MATRIX object,
int  i 
)
inline

Definition at line 292 of file MatrixRow.h.

References Rcpp::Matrix< RTYPE, StoragePolicy >::nrow(), and Rcpp::ConstMatrixRow< RTYPE >::parent.

Here is the call graph for this function:

◆ ConstMatrixRow() [2/2]

template<int RTYPE>
Rcpp::ConstMatrixRow< RTYPE >::ConstMatrixRow ( const ConstMatrixRow< RTYPE > &  other)
inline

Definition at line 305 of file MatrixRow.h.

Member Function Documentation

◆ begin()

template<int RTYPE>
const_iterator Rcpp::ConstMatrixRow< RTYPE >::begin ( ) const
inline

Definition at line 316 of file MatrixRow.h.

◆ end()

template<int RTYPE>
const_iterator Rcpp::ConstMatrixRow< RTYPE >::end ( ) const
inline

Definition at line 320 of file MatrixRow.h.

References Rcpp::ConstMatrixRow< RTYPE >::size().

Here is the call graph for this function:

◆ get_parent_index()

template<int RTYPE>
int Rcpp::ConstMatrixRow< RTYPE >::get_parent_index ( int  i) const
inlineprivate

Definition at line 334 of file MatrixRow.h.

References Rcpp::ConstMatrixRow< RTYPE >::parent_nrow, and RCPP_DEBUG_4.

◆ operator[]()

template<int RTYPE>
const_reference Rcpp::ConstMatrixRow< RTYPE >::operator[] ( int  i) const
inline

◆ size()

template<int RTYPE>
int Rcpp::ConstMatrixRow< RTYPE >::size ( ) const
inline

Definition at line 324 of file MatrixRow.h.

References Rcpp::Matrix< RTYPE, StoragePolicy >::ncol(), and Rcpp::ConstMatrixRow< RTYPE >::parent.

Referenced by Rcpp::ConstMatrixRow< RTYPE >::end().

Here is the call graph for this function:

Member Data Documentation

◆ parent

◆ parent_nrow

template<int RTYPE>
int Rcpp::ConstMatrixRow< RTYPE >::parent_nrow
private

◆ row

template<int RTYPE>
int Rcpp::ConstMatrixRow< RTYPE >::row
private

Definition at line 332 of file MatrixRow.h.

Referenced by Rcpp::ConstMatrixRow< RTYPE >::operator[]().

◆ start

template<int RTYPE>
MATRIX::const_iterator Rcpp::ConstMatrixRow< RTYPE >::start
private

Definition at line 330 of file MatrixRow.h.


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