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

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

#include <tvmet/xpr/MatrixCol.h>

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

Inheritance graph
[legend]
Collaboration diagram for tvmet::XprMatrixCol< 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::XprMatrixCol< E, Rows, Cols >

Expression on matrix used for access on the column vector.


Public Types

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

Public Member Functions

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

Private Member Functions

 XprMatrixCol ()
XprMatrixColoperator= (const XprMatrixCol &)

Private Attributes

const E m_expr
const std::size_t m_col


Member Typedef Documentation

template<class E, std::size_t Rows, std::size_t Cols>
typedef E::value_type tvmet::XprMatrixCol< 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::XprMatrixCol< E, Rows, Cols >::XprMatrixCol (  )  [private]

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

Constructor.


Member Function Documentation

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

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

Copy Constructor.

Not explicit!

template<class E, std::size_t Rows, std::size_t Cols>
void tvmet::XprMatrixCol< 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::XprMatrixCol< E, Rows, Cols >::m_expr [private]

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


Author: