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

#include <MatrixRow.h>

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

Classes

class  iterator
 

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
 
- 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 iterator 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 ()
 
iterator begin () const
 
iterator end () 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
 
iterator begin () const
 
iterator end () 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

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

Definition at line 33 of file MatrixRow.h.

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

Definition at line 30 of file MatrixRow.h.

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

Definition at line 31 of file MatrixRow.h.

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

Definition at line 32 of file MatrixRow.h.

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

Definition at line 34 of file MatrixRow.h.

Constructor & Destructor Documentation

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

Definition at line 104 of file MatrixRow.h.

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

Here is the call graph for this function:

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

Definition at line 117 of file MatrixRow.h.

Member Function Documentation

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

Definition at line 146 of file MatrixRow.h.

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

Referenced by Rcpp::operator<<().

Here is the call graph for this function:

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

Definition at line 154 of file MatrixRow.h.

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

Here is the call graph for this function:

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

Definition at line 150 of file MatrixRow.h.

References Rcpp::MatrixRow< RTYPE >::iterator::iterator(), and Rcpp::MatrixRow< RTYPE >::size().

Here is the call graph for this function:

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

Definition at line 158 of file MatrixRow.h.

References Rcpp::MatrixRow< RTYPE >::iterator::iterator(), and Rcpp::MatrixRow< RTYPE >::size().

Here is the call graph for this function:

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

Definition at line 132 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:

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

Definition at line 138 of file MatrixRow.h.

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

Here is the call graph for this function:

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

Member Data Documentation

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

Definition at line 170 of file MatrixRow.h.

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

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