Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::MatrixRow< RTYPE > Class Template Reference

#include <MatrixRow.h>

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

Classes

struct  iter_traits
struct  const_iter_traits
class  iter_base

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 ()
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

R_xlen_t 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 begin(), parent, parent_nrow, row, and start.

Referenced by begin(), cbegin(), cend(), end(), Rcpp::MatrixRow< RTYPE >::iter_base< iter_traits >::iter_base(), MatrixRow(), operator=(), and operator=().

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.

References MatrixRow(), parent, parent_nrow, row, and start.

Here is the call graph for this function:

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 MatrixRow().

◆ begin() [2/2]

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

Definition at line 183 of file MatrixRow.h.

References MatrixRow().

Here is the call graph for this function:

◆ cbegin()

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

Definition at line 191 of file MatrixRow.h.

References MatrixRow().

Here is the call graph for this function:

◆ cend()

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

Definition at line 195 of file MatrixRow.h.

References MatrixRow(), and 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 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 MatrixRow(), and size().

Here is the call graph for this function:

◆ get_parent_index()

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

Definition at line 209 of file MatrixRow.h.

References parent_nrow, and RCPP_DEBUG_4.

Referenced by operator=(), operator=(), and operator[]().

◆ operator=() [1/2]

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

Definition at line 161 of file MatrixRow.h.

References get_parent_index(), MatrixRow(), RCPP_LOOP_UNROLL_LHSFUN, size(), and start.

Here is the call graph for this function:

◆ operator=() [2/2]

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

Definition at line 154 of file MatrixRow.h.

References get_parent_index(), Rcpp::VectorBase< RTYPE, na, VECTOR >::get_ref(), MatrixRow(), RCPP_LOOP_UNROLL_LHSFUN, size(), and 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 get_parent_index(), and start.

Here is the call graph for this function:

◆ operator[]() [2/2]

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

Definition at line 171 of file MatrixRow.h.

References parent, parent_nrow, and row.

◆ size()

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

Definition at line 199 of file MatrixRow.h.

References parent.

Referenced by cend(), end(), end(), operator=(), and operator=().

Member Data Documentation

◆ parent

template<int RTYPE>
MATRIX& Rcpp::MatrixRow< RTYPE >::parent
private

Definition at line 204 of file MatrixRow.h.

Referenced by MatrixRow(), MatrixRow(), operator[](), and size().

◆ parent_nrow

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

Definition at line 206 of file MatrixRow.h.

Referenced by get_parent_index(), MatrixRow(), MatrixRow(), and operator[]().

◆ row

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

Definition at line 207 of file MatrixRow.h.

Referenced by MatrixRow(), MatrixRow(), and operator[]().

◆ start

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

Definition at line 205 of file MatrixRow.h.

Referenced by MatrixRow(), MatrixRow(), operator=(), operator=(), and operator[]().


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