Public Types | Public Member Functions | Protected Attributes

mln::metal::array2d< T, r, c > Struct Template Reference

#include <array2d.hh>

Inheritance diagram for mln::metal::array2d< T, r, c >:
Inheritance graph

List of all members.

Public Types

enum  { length = r * c }
typedef Object< void > category
typedef array2d< T, r, c > exact_t

Public Member Functions

 array2d ()
 array2d (T *ptr)
 array2d (const array2d< T, r, c > &rhs)
template<unsigned row, unsigned col>
get () const
template<unsigned row, unsigned col>
T & get ()
template<unsigned row, unsigned col>
T & get_at ()
template<unsigned row, unsigned col>
get_at () const
operator() (unsigned row, unsigned col) const
T & operator() (unsigned row, unsigned col)
template<class U >
array2d< T, r, c > operator* (U w)
template<typename U >
array2d< typename
mln::trait::op::plus< T, U >
::ret, r, c > 
operator+ (const array2d< U, r, c > &rhs) const
array2d< T, r, c > & operator+= (const array2d< T, r, c > &rhs)
template<typename U >
array2d< typename
mln::trait::op::minus< T, U >
::ret, r, c > 
operator- (const array2d< U, r, c > &rhs) const
array2d< T, r, c > & operator-= (const array2d< T, r, c > &rhs)
template<class U >
array2d< typename
mln::trait::op::div< T, U >
::ret, r, c > 
operator/ (U w)
array2d< T, r, c > & operator= (const array2d< T, r, c > &rhs)

Protected Attributes

buffer_ [r *c]

template<typename T, unsigned r, unsigned c>
struct mln::metal::array2d< T, r, c >


Member Typedef Documentation

typedef Object<void> mln::Object< array2d< T, r, c > >::category [inherited]
typedef array2d< T, r, c > mln::Object< array2d< T, r, c > >::exact_t [inherited]

Member Enumeration Documentation

template<typename T, unsigned r, unsigned c>
anonymous enum
Enumerator:
length 

Constructor & Destructor Documentation

template<typename T , unsigned r, unsigned c>
mln::metal::array2d< T, r, c >::array2d (  ) 
template<typename T , unsigned r, unsigned c>
mln::metal::array2d< T, r, c >::array2d ( T *  ptr  ) 
template<typename T , unsigned r, unsigned c>
mln::metal::array2d< T, r, c >::array2d ( const array2d< T, r, c > &  rhs  ) 

Member Function Documentation

template<typename T, unsigned r, unsigned c>
template<unsigned row, unsigned col>
T mln::metal::array2d< T, r, c >::get (  )  const [inline]
template<typename T, unsigned r, unsigned c>
template<unsigned row, unsigned col>
T& mln::metal::array2d< T, r, c >::get (  )  [inline]
template<typename T, unsigned r, unsigned c>
template<unsigned row, unsigned col>
T mln::metal::array2d< T, r, c >::get_at (  )  const [inline]
template<typename T, unsigned r, unsigned c>
template<unsigned row, unsigned col>
T& mln::metal::array2d< T, r, c >::get_at (  )  [inline]
template<typename T, unsigned r, unsigned c>
T mln::metal::array2d< T, r, c >::operator() ( unsigned  row,
unsigned  col 
) const [inline]
template<typename T, unsigned r, unsigned c>
T& mln::metal::array2d< T, r, c >::operator() ( unsigned  row,
unsigned  col 
) [inline]
template<typename T , unsigned r, unsigned c>
template<class U >
array2d< T, r, c > mln::metal::array2d< T, r, c >::operator* ( w  ) 
template<typename T , unsigned r, unsigned c>
template<typename U >
array2d< typename mln::trait::op::plus< T, U >::ret, r, c > mln::metal::array2d< T, r, c >::operator+ ( const array2d< U, r, c > &  rhs  )  const
template<typename T , unsigned r, unsigned c>
array2d< T, r, c > & mln::metal::array2d< T, r, c >::operator+= ( const array2d< T, r, c > &  rhs  ) 
template<typename T , unsigned r, unsigned c>
template<typename U >
array2d< typename mln::trait::op::minus< T, U >::ret, r, c > mln::metal::array2d< T, r, c >::operator- ( const array2d< U, r, c > &  rhs  )  const
template<typename T , unsigned r, unsigned c>
array2d< T, r, c > & mln::metal::array2d< T, r, c >::operator-= ( const array2d< T, r, c > &  rhs  ) 
template<typename T , unsigned r, unsigned c>
template<class U >
array2d< typename mln::trait::op::div< T, U >::ret, r, c > mln::metal::array2d< T, r, c >::operator/ ( w  ) 
template<typename T , unsigned r, unsigned c>
array2d< T, r, c > & mln::metal::array2d< T, r, c >::operator= ( const array2d< T, r, c > &  rhs  ) 

Member Data Documentation

template<typename T, unsigned r, unsigned c>
T mln::metal::array2d< T, r, c >::buffer_[r *c] [protected]