Rcpp Version 0.12.14
Rcpp::MatrixRow< RTYPE > Class Template Reference

#include <MatrixRow.h>

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

Classes

struct  const_iter_traits
 
class  iter_base
 
struct  iter_traits
 

Public Types

typedef Matrix< RTYPE > MATRIX
 
typedef MATRIX::Proxy Proxy
 
typedef MATRIX::Proxy reference
 
typedef MATRIX::const_Proxy const_reference
 
typedef MATRIX::value_type value_type
 
typedef iter_base< iter_traitsiterator
 
typedef iter_base< const_iter_traitsconst_iterator
 
- Public Types inherited from Rcpp::VectorBase< RTYPE, true, MatrixRow< 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

 MatrixRow (MATRIX &object, int i)
 
 MatrixRow (const MatrixRow &other)
 
template<int RT, bool NA, typename T >
MatrixRowoperator= (const Rcpp::VectorBase< RT, NA, T > &rhs)
 
MatrixRowoperator= (const MatrixRow &rhs)
 
reference operator[] (int i)
 
reference operator[] (int i) const
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
int size () const
 
- Public Member Functions inherited from Rcpp::VectorBase< RTYPE, true, MatrixRow< RTYPE > >
MatrixRow< RTYPE > & get_ref ()
 
const MatrixRow< 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

MATRIXparent
 
MATRIX::iterator start
 
int parent_nrow
 
int row
 

Detailed Description

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

Definition at line 28 of file MatrixRow.h.

Member Typedef Documentation

◆ const_iterator

template<int RTYPE>
typedef iter_base< const_iter_traits > Rcpp::MatrixRow< RTYPE >::const_iterator

Definition at line 131 of file MatrixRow.h.

◆ const_reference

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

Definition at line 33 of file MatrixRow.h.

◆ iterator

template<int RTYPE>
typedef iter_base< iter_traits > Rcpp::MatrixRow< RTYPE >::iterator

Definition at line 130 of file MatrixRow.h.

◆ MATRIX

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

Definition at line 30 of file MatrixRow.h.

◆ Proxy

template<int RTYPE>
typedef MATRIX::Proxy Rcpp::MatrixRow< RTYPE >::Proxy

Definition at line 31 of file MatrixRow.h.

◆ reference

template<int RTYPE>
typedef MATRIX::Proxy Rcpp::MatrixRow< RTYPE >::reference

Definition at line 32 of file MatrixRow.h.

◆ value_type

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

Definition at line 34 of file MatrixRow.h.

Constructor & Destructor Documentation

◆ MatrixRow() [1/2]

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

Definition at line 133 of file MatrixRow.h.

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

Here is the call graph for this function:

◆ MatrixRow() [2/2]

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

Definition at line 146 of file MatrixRow.h.

Member Function Documentation

◆ begin() [1/2]

template<int RTYPE>
iterator Rcpp::MatrixRow< RTYPE >::begin ( )
inline

Definition at line 175 of file MatrixRow.h.

Referenced by Rcpp::operator<<().

◆ begin() [2/2]

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

Definition at line 183 of file MatrixRow.h.

◆ cbegin()

template<int RTYPE>
const_iterator Rcpp::MatrixRow< RTYPE >::cbegin ( ) const
inline

Definition at line 191 of file MatrixRow.h.

◆ cend()

template<int RTYPE>
const_iterator Rcpp::MatrixRow< RTYPE >::cend ( ) const
inline

Definition at line 195 of file MatrixRow.h.

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

Here is the call graph for this function:

◆ end() [1/2]

template<int RTYPE>
iterator Rcpp::MatrixRow< RTYPE >::end ( )
inline

Definition at line 179 of file MatrixRow.h.

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

Here is the call graph for this function:

◆ end() [2/2]

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

Definition at line 187 of file MatrixRow.h.

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

Here is the call graph for this function:

◆ get_parent_index()

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

◆ operator=() [1/2]

template<int RTYPE>
template<int RT, bool NA, typename T >
MatrixRow& Rcpp::MatrixRow< RTYPE >::operator= ( const Rcpp::VectorBase< RT, NA, T > &  rhs)
inline

◆ operator=() [2/2]

template<int RTYPE>
MatrixRow& Rcpp::MatrixRow< RTYPE >::operator= ( const MatrixRow< RTYPE > &  rhs)
inline

Definition at line 161 of file MatrixRow.h.

References Rcpp::MatrixRow< RTYPE >::get_parent_index(), RCPP_LOOP_UNROLL_LHSFUN, Rcpp::MatrixRow< RTYPE >::size(), and Rcpp::MatrixRow< RTYPE >::start.

Here is the call graph for this function:

◆ operator[]() [1/2]

template<int RTYPE>
reference Rcpp::MatrixRow< RTYPE >::operator[] ( int  i)
inline

Definition at line 167 of file MatrixRow.h.

References Rcpp::MatrixRow< RTYPE >::get_parent_index(), and Rcpp::MatrixRow< RTYPE >::start.

Here is the call graph for this function:

◆ operator[]() [2/2]

template<int RTYPE>
reference Rcpp::MatrixRow< RTYPE >::operator[] ( int  i) const
inline

◆ size()

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

Member Data Documentation

◆ parent

◆ parent_nrow

◆ row

◆ start

template<int RTYPE>
MATRIX::iterator Rcpp::MatrixRow< RTYPE >::start
private

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