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]

Detailed Description

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

Definition at line 69 of file array2d.hh.


Member Typedef Documentation

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

Definition at line 174 of file object.hh.

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

Definition at line 173 of file object.hh.


Member Enumeration Documentation

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

Definition at line 138 of file array2d.hh.


Constructor & Destructor Documentation

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

Definition at line 211 of file array2d.hh.

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

Definition at line 216 of file array2d.hh.

References mln::metal::array2d< T, r, c >::buffer_.

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

Definition at line 225 of file array2d.hh.

References mln::metal::array2d< T, r, c >::buffer_.


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]

Definition at line 119 of file array2d.hh.

template<typename T, unsigned r, unsigned c>
template<unsigned row, unsigned col>
T& mln::metal::array2d< T, r, c >::get (  )  [inline]

Definition at line 123 of file array2d.hh.

template<typename T, unsigned r, unsigned c>
template<unsigned row, unsigned col>
T mln::metal::array2d< T, r, c >::get_at (  )  const [inline]

Definition at line 128 of file array2d.hh.

template<typename T, unsigned r, unsigned c>
template<unsigned row, unsigned col>
T& mln::metal::array2d< T, r, c >::get_at (  )  [inline]

Definition at line 133 of file array2d.hh.

template<typename T, unsigned r, unsigned c>
T mln::metal::array2d< T, r, c >::operator() ( unsigned  row,
unsigned  col 
) const [inline]

Definition at line 107 of file array2d.hh.

template<typename T, unsigned r, unsigned c>
T& mln::metal::array2d< T, r, c >::operator() ( unsigned  row,
unsigned  col 
) [inline]

Definition at line 111 of file array2d.hh.

template<typename T , unsigned r, unsigned c>
template<class U >
array2d< T, r, c > mln::metal::array2d< T, r, c >::operator* ( w  ) 

Definition at line 244 of file array2d.hh.

References mln::metal::array2d< T, r, c >::buffer_.

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

Definition at line 267 of file array2d.hh.

References mln::metal::array2d< T, r, c >::buffer_.

template<typename T , unsigned r, unsigned c>
array2d< T, r, c > & mln::metal::array2d< T, r, c >::operator+= ( const array2d< T, r, c > &  rhs  ) 

Definition at line 276 of file array2d.hh.

References mln::metal::array2d< T, r, c >::buffer_.

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

Definition at line 286 of file array2d.hh.

References mln::metal::array2d< T, r, c >::buffer_.

template<typename T , unsigned r, unsigned c>
array2d< T, r, c > & mln::metal::array2d< T, r, c >::operator-= ( const array2d< T, r, c > &  rhs  ) 

Definition at line 295 of file array2d.hh.

References mln::metal::array2d< T, r, c >::buffer_.

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  ) 

Definition at line 256 of file array2d.hh.

References mln::metal::array2d< T, r, c >::buffer_.

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

Definition at line 232 of file array2d.hh.

References mln::metal::array2d< T, r, c >::buffer_.


Member Data Documentation

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