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

tvmet::MatrixConstReference< T, NRows, NCols > Class Template Reference

#include <tvmet/Matrix.h>

Inheritance diagram for tvmet::MatrixConstReference< T, NRows, NCols >:

Inheritance graph
[legend]
Collaboration diagram for tvmet::MatrixConstReference< T, NRows, NCols >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T, std::size_t NRows, std::size_t NCols>
class tvmet::MatrixConstReference< T, NRows, NCols >

value iterator for ET


Public Types

enum  { Rows = NRows, Cols = NCols, Size = Rows * Cols }
 Dimensions. More...
enum  { ops = Rows * Cols }
 Complexity counter. More...
typedef T value_type
typedef T * pointer
typedef const T * const_pointer

Public Member Functions

 MatrixConstReference (const Matrix< T, Rows, Cols > &rhs)
 Constructor.
 MatrixConstReference (const_pointer data)
 Constructor by a given memory pointer.
value_type operator() (std::size_t i, std::size_t j) const
 access by index.
void print_xpr (std::ostream &os, std::size_t l=0) const

Private Member Functions

 MatrixConstReference ()
MatrixConstReferenceoperator= (const MatrixConstReference &)

Private Attributes

const_pointer __restrict m_data


Member Typedef Documentation

template<class T, std::size_t NRows, std::size_t NCols>
typedef T tvmet::MatrixConstReference< T, NRows, NCols >::value_type

template<class T, std::size_t NRows, std::size_t NCols>
typedef T* tvmet::MatrixConstReference< T, NRows, NCols >::pointer

template<class T, std::size_t NRows, std::size_t NCols>
typedef const T* tvmet::MatrixConstReference< T, NRows, NCols >::const_pointer


Member Enumeration Documentation

template<class T, std::size_t NRows, std::size_t NCols>
anonymous enum

Dimensions.

Enumerator:
Rows  Number of rows.

Cols  Number of cols.

Size  Complete Size of Matrix.

template<class T, std::size_t NRows, std::size_t NCols>
anonymous enum

Complexity counter.

Enumerator:
ops 


Constructor & Destructor Documentation

template<class T, std::size_t NRows, std::size_t NCols>
tvmet::MatrixConstReference< T, NRows, NCols >::MatrixConstReference (  )  [private]

template<class T, std::size_t NRows, std::size_t NCols>
tvmet::MatrixConstReference< T, NRows, NCols >::MatrixConstReference ( const Matrix< T, Rows, Cols > &  rhs  )  [inline, explicit]

Constructor.

template<class T, std::size_t NRows, std::size_t NCols>
tvmet::MatrixConstReference< T, NRows, NCols >::MatrixConstReference ( const_pointer  data  )  [inline, explicit]

Constructor by a given memory pointer.


Member Function Documentation

template<class T, std::size_t NRows, std::size_t NCols>
MatrixConstReference& tvmet::MatrixConstReference< T, NRows, NCols >::operator= ( const MatrixConstReference< T, NRows, NCols > &   )  [private]

template<class T, std::size_t NRows, std::size_t NCols>
value_type tvmet::MatrixConstReference< T, NRows, NCols >::operator() ( std::size_t  i,
std::size_t  j 
) const [inline]

access by index.

template<class T, std::size_t NRows, std::size_t NCols>
void tvmet::MatrixConstReference< T, NRows, NCols >::print_xpr ( std::ostream &  os,
std::size_t  l = 0 
) const [inline]


Member Data Documentation

template<class T, std::size_t NRows, std::size_t NCols>
const_pointer __restrict tvmet::MatrixConstReference< T, NRows, NCols >::m_data [private]


Author: