SourceForge Logo Tiny Vector Matrix library using Expression Templates Sourceforge Project Page

tvmet::XprMatrixRow< E, Rows, Cols > Class Template Reference

#include <tvmet/xpr/MatrixRow.h>

Inheritance diagram for tvmet::XprMatrixRow< E, Rows, Cols >:

Inheritance graph
[legend]
Collaboration diagram for tvmet::XprMatrixRow< E, Rows, Cols >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class E, std::size_t Rows, std::size_t Cols>
class tvmet::XprMatrixRow< E, Rows, Cols >

Expression on matrix used for access on the row vector.


Public Types

enum  { ops_expr = E::ops, ops = ops_expr/Rows }
 Complexity counter. More...
typedef E::value_type value_type

Public Member Functions

 XprMatrixRow (const E &e, std::size_t no)
 Constructor.
value_type operator() (std::size_t j) const
 Copy Constructor.
void print_xpr (std::ostream &os, std::size_t l=0) const

Private Member Functions

 XprMatrixRow ()
XprMatrixRowoperator= (const XprMatrixRow &)

Private Attributes

const E m_expr
const std::size_t m_row


Member Typedef Documentation

template<class E, std::size_t Rows, std::size_t Cols>
typedef E::value_type tvmet::XprMatrixRow< E, Rows, Cols >::value_type


Member Enumeration Documentation

template<class E, std::size_t Rows, std::size_t Cols>
anonymous enum

Complexity counter.

Enumerator:
ops_expr 
ops 


Constructor & Destructor Documentation

template<class E, std::size_t Rows, std::size_t Cols>
tvmet::XprMatrixRow< E, Rows, Cols >::XprMatrixRow (  )  [private]

template<class E, std::size_t Rows, std::size_t Cols>
tvmet::XprMatrixRow< E, Rows, Cols >::XprMatrixRow ( const E &  e,
std::size_t  no 
) [inline, explicit]

Constructor.


Member Function Documentation

template<class E, std::size_t Rows, std::size_t Cols>
XprMatrixRow& tvmet::XprMatrixRow< E, Rows, Cols >::operator= ( const XprMatrixRow< E, Rows, Cols > &   )  [private]

template<class E, std::size_t Rows, std::size_t Cols>
value_type tvmet::XprMatrixRow< E, Rows, Cols >::operator() ( std::size_t  j  )  const [inline]

Copy Constructor.

Not explicit!

template<class E, std::size_t Rows, std::size_t Cols>
void tvmet::XprMatrixRow< E, Rows, Cols >::print_xpr ( std::ostream &  os,
std::size_t  l = 0 
) const [inline]


Member Data Documentation

template<class E, std::size_t Rows, std::size_t Cols>
const E tvmet::XprMatrixRow< E, Rows, Cols >::m_expr [private]

template<class E, std::size_t Rows, std::size_t Cols>
const std::size_t tvmet::XprMatrixRow< E, Rows, Cols >::m_row [private]


Author: