Public Types | Public Member Functions | Protected Attributes

mln::metal::array1d< T, Size > Struct Template Reference

#include <array1d.hh>

Inheritance diagram for mln::metal::array1d< T, Size >:
Inheritance graph

List of all members.

Public Types

enum  { length = Size }
typedef Object< void > category
typedef array1d< T, Size > exact_t

Public Member Functions

 array1d ()
 array1d (T *ptr)
 array1d (const array1d< T, Size > &rhs)
template<unsigned i>
get () const
template<unsigned i>
T & get ()
template<class U >
array1d< T, Size > operator* (U w)
template<typename U >
array1d< typename
mln::trait::op::plus< T, U >
::ret, Size > 
operator+ (const array1d< U, Size > &rhs) const
array1d< T, Size > & operator+= (const array1d< T, Size > &rhs)
template<typename U >
array1d< typename
mln::trait::op::minus< T, U >
::ret, Size > 
operator- (const array1d< U, Size > &rhs) const
array1d< T, Size > & operator-= (const array1d< T, Size > &rhs)
template<class U >
array1d< typename
mln::trait::op::div< T, U >
::ret, Size > 
operator/ (U w)
array1d< T, Size > & operator= (const array1d< T, Size > &rhs)
T & operator[] (unsigned i)
operator[] (unsigned i) const

Protected Attributes

buffer_ [Size]

Detailed Description

template<typename T, unsigned Size>
struct mln::metal::array1d< T, Size >

Definition at line 69 of file array1d.hh.


Member Typedef Documentation

typedef Object<void> mln::Object< array1d< T, Size > >::category [inherited]

Definition at line 174 of file object.hh.

typedef array1d< T, Size > mln::Object< array1d< T, Size > >::exact_t [inherited]

Definition at line 173 of file object.hh.


Member Enumeration Documentation

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

Definition at line 127 of file array1d.hh.


Constructor & Destructor Documentation

template<typename T , unsigned Size>
mln::metal::array1d< T, Size >::array1d (  ) 

Definition at line 200 of file array1d.hh.

template<typename T , unsigned Size>
mln::metal::array1d< T, Size >::array1d ( T *  ptr  ) 

Definition at line 205 of file array1d.hh.

References mln::metal::array1d< T, Size >::buffer_.

template<typename T , unsigned Size>
mln::metal::array1d< T, Size >::array1d ( const array1d< T, Size > &  rhs  ) 

Definition at line 214 of file array1d.hh.

References mln::metal::array1d< T, Size >::buffer_.


Member Function Documentation

template<typename T, unsigned Size>
template<unsigned i>
T mln::metal::array1d< T, Size >::get (  )  const [inline]

Definition at line 119 of file array1d.hh.

template<typename T, unsigned Size>
template<unsigned i>
T& mln::metal::array1d< T, Size >::get (  )  [inline]

Definition at line 123 of file array1d.hh.

template<typename T , unsigned Size>
template<class U >
array1d< T, Size > mln::metal::array1d< T, Size >::operator* ( w  ) 

Definition at line 233 of file array1d.hh.

References mln::metal::array1d< T, Size >::buffer_.

template<typename T , unsigned Size>
template<typename U >
array1d< typename mln::trait::op::plus< T, U >::ret, Size > mln::metal::array1d< T, Size >::operator+ ( const array1d< U, Size > &  rhs  )  const

Definition at line 256 of file array1d.hh.

References mln::metal::array1d< T, Size >::buffer_.

template<typename T , unsigned Size>
array1d< T, Size > & mln::metal::array1d< T, Size >::operator+= ( const array1d< T, Size > &  rhs  ) 

Definition at line 265 of file array1d.hh.

References mln::metal::array1d< T, Size >::buffer_.

template<typename T , unsigned Size>
template<typename U >
array1d< typename mln::trait::op::minus< T, U >::ret, Size > mln::metal::array1d< T, Size >::operator- ( const array1d< U, Size > &  rhs  )  const

Definition at line 275 of file array1d.hh.

References mln::metal::array1d< T, Size >::buffer_.

template<typename T , unsigned Size>
array1d< T, Size > & mln::metal::array1d< T, Size >::operator-= ( const array1d< T, Size > &  rhs  ) 

Definition at line 284 of file array1d.hh.

References mln::metal::array1d< T, Size >::buffer_.

template<typename T , unsigned Size>
template<class U >
array1d< typename mln::trait::op::div< T, U >::ret, Size > mln::metal::array1d< T, Size >::operator/ ( w  ) 

Definition at line 245 of file array1d.hh.

References mln::metal::array1d< T, Size >::buffer_.

template<typename T , unsigned Size>
array1d< T, Size > & mln::metal::array1d< T, Size >::operator= ( const array1d< T, Size > &  rhs  ) 

Definition at line 221 of file array1d.hh.

References mln::metal::array1d< T, Size >::buffer_.

template<typename T, unsigned Size>
T& mln::metal::array1d< T, Size >::operator[] ( unsigned  i  )  [inline]

Definition at line 111 of file array1d.hh.

template<typename T, unsigned Size>
T mln::metal::array1d< T, Size >::operator[] ( unsigned  i  )  const [inline]

Definition at line 107 of file array1d.hh.


Member Data Documentation

template<typename T, unsigned Size>
T mln::metal::array1d< T, Size >::buffer_[Size] [protected]