Rcpp Version 0.10.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
MatrixRow< RTYPE > Class Template Reference

#include <MatrixRow.h>

Inheritance diagram for MatrixRow< RTYPE >:
Collaboration diagram for 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 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

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 MatrixRow< RTYPE >

Definition at line 26 of file MatrixRow.h.

Member Typedef Documentation

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

Definition at line 31 of file MatrixRow.h.

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

Definition at line 28 of file MatrixRow.h.

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

Definition at line 29 of file MatrixRow.h.

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

Definition at line 30 of file MatrixRow.h.

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

Definition at line 32 of file MatrixRow.h.

Constructor & Destructor Documentation

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

Definition at line 102 of file MatrixRow.h.

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

Here is the call graph for this function:

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

Definition at line 111 of file MatrixRow.h.

Member Function Documentation

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

Definition at line 140 of file MatrixRow.h.

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

Definition at line 148 of file MatrixRow.h.

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

Definition at line 144 of file MatrixRow.h.

References MatrixRow< RTYPE >::size().

Here is the call graph for this function:

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

Definition at line 152 of file MatrixRow.h.

References MatrixRow< RTYPE >::size().

Here is the call graph for this function:

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

Definition at line 126 of file MatrixRow.h.

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

Here is the call graph for this function:

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

Definition at line 132 of file MatrixRow.h.

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

Here is the call graph for this function:

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

Definition at line 156 of file MatrixRow.h.

References Matrix< RTYPE >::ncol(), and MatrixRow< RTYPE >::parent.

Referenced by MatrixRow< RTYPE >::end(), and MatrixRow< RTYPE >::operator=().

Here is the call graph for this function:

Member Data Documentation

template<int RTYPE>
MATRIX& MatrixRow< RTYPE >::parent
private
template<int RTYPE>
int MatrixRow< RTYPE >::parent_nrow
private
template<int RTYPE>
int MatrixRow< RTYPE >::row
private

Definition at line 164 of file MatrixRow.h.

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

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

Definition at line 162 of file MatrixRow.h.

Referenced by MatrixRow< RTYPE >::operator=(), and MatrixRow< RTYPE >::operator[]().


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