Rcpp Version 0.9.10
MatrixRow< RTYPE > Class Template Reference

#include <MatrixRow.h>

Collaboration diagram for MatrixRow< RTYPE >:

List of all members.

Classes

class  iterator

Public Types

typedef Matrix< RTYPE > MATRIX
typedef MATRIX::Proxy Proxy
typedef MATRIX::Proxy 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

Detailed Description

template<int RTYPE>
class MatrixRow< RTYPE >

Definition at line 26 of file MatrixRow.h.


Member Typedef Documentation

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 31 of file MatrixRow.h.


Constructor & Destructor Documentation

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

Definition at line 98 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 106 of file MatrixRow.h.


Member Function Documentation

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

Definition at line 134 of file MatrixRow.h.

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

Definition at line 142 of file MatrixRow.h.

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

Definition at line 146 of file MatrixRow.h.

References MatrixRow< RTYPE >::size().

Here is the call graph for this function:

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

Definition at line 138 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 [inline, private]
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 120 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) const [inline]

Definition at line 130 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) [inline]

Definition at line 126 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>
int MatrixRow< RTYPE >::size ( ) const [inline]

Definition at line 150 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]

Definition at line 155 of file MatrixRow.h.

Referenced by MatrixRow< RTYPE >::MatrixRow(), and MatrixRow< RTYPE >::size().

template<int RTYPE>
int MatrixRow< RTYPE >::parent_nrow [private]

Definition at line 157 of file MatrixRow.h.

Referenced by MatrixRow< RTYPE >::get_parent_index().

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

Definition at line 156 of file MatrixRow.h.

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


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines