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

tvmet::VectorConstReference< T, Sz > Class Template Reference

#include <tvmet/Vector.h>

Inheritance diagram for tvmet::VectorConstReference< T, Sz >:

Inheritance graph
[legend]
Collaboration diagram for tvmet::VectorConstReference< T, Sz >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T, std::size_t Sz>
class tvmet::VectorConstReference< T, Sz >

Const value iterator for ET.


Public Types

enum  { Size = Sz }
 Dimensions. More...
enum  { ops = Size }
 Complexity counter. More...
typedef T value_type
typedef T * pointer
typedef const T * const_pointer

Public Member Functions

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

Private Member Functions

 VectorConstReference ()
VectorConstReferenceoperator= (const VectorConstReference &)

Private Attributes

const_pointer __restrict m_data


Member Typedef Documentation

template<class T, std::size_t Sz>
typedef T tvmet::VectorConstReference< T, Sz >::value_type

template<class T, std::size_t Sz>
typedef T* tvmet::VectorConstReference< T, Sz >::pointer

template<class T, std::size_t Sz>
typedef const T* tvmet::VectorConstReference< T, Sz >::const_pointer


Member Enumeration Documentation

template<class T, std::size_t Sz>
anonymous enum

Dimensions.

Enumerator:
Size  The size of the vector.

template<class T, std::size_t Sz>
anonymous enum

Complexity counter.

Enumerator:
ops 


Constructor & Destructor Documentation

template<class T, std::size_t Sz>
tvmet::VectorConstReference< T, Sz >::VectorConstReference (  )  [private]

template<class T, std::size_t Sz>
tvmet::VectorConstReference< T, Sz >::VectorConstReference ( const Vector< T, Size > &  rhs  )  [inline, explicit]

Constructor.

template<class T, std::size_t Sz>
tvmet::VectorConstReference< T, Sz >::VectorConstReference ( const_pointer  data  )  [inline, explicit]

Constructor by a given memory pointer.


Member Function Documentation

template<class T, std::size_t Sz>
VectorConstReference& tvmet::VectorConstReference< T, Sz >::operator= ( const VectorConstReference< T, Sz > &   )  [private]

template<class T, std::size_t Sz>
value_type tvmet::VectorConstReference< T, Sz >::operator() ( std::size_t  i  )  const [inline]

access by index.

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


Member Data Documentation

template<class T, std::size_t Sz>
const_pointer __restrict tvmet::VectorConstReference< T, Sz >::m_data [private]


Author: