aimstil  5.0.5
til::detail::numeric_array_impl< T, D > Class Template Reference

An implementation of a numeric array. More...

#include <til/numeric_array.h>

Inheritance diagram for til::detail::numeric_array_impl< T, D >:
Collaboration diagram for til::detail::numeric_array_impl< T, D >:

Classes

class  const_iterator
 
class  const_range
 
class  iterator
 
class  range
 

Public Types

typedef numeric_array_impl< T, D > Self
 
typedef boost::array< T, D > Base
 
typedef Base::reverse_iterator reverse_iterator
 
typedef Base::const_reverse_iterator const_reverse_iterator
 

Public Member Functions

 numeric_array_impl ()
 Default constructor. More...
 
std::size_t size () const
 Standard constructors. More...
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
reverse_iterator rend ()
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
range whole_range ()
 
const_range whole_range () const
 
const T & operator[] (std::size_t n) const
 Read access to n-th value. More...
 
T & operator[] (std::size_t n)
 Read-write access to n-th value. More...
 
void operator+= (const T &x)
 
void operator-= (const T &x)
 
void operator*= (const T &x)
 
void operator/= (const T &x)
 

Detailed Description

template<typename T, std::size_t D>
class til::detail::numeric_array_impl< T, D >

An implementation of a numeric array.

Definition at line 57 of file numeric_array.h.

Member Typedef Documentation

◆ Base

template<typename T, std::size_t D>
typedef boost::array<T,D> til::detail::numeric_array_impl< T, D >::Base

Definition at line 64 of file numeric_array.h.

◆ const_reverse_iterator

template<typename T, std::size_t D>
typedef Base::const_reverse_iterator til::detail::numeric_array_impl< T, D >::const_reverse_iterator

Definition at line 66 of file numeric_array.h.

◆ reverse_iterator

template<typename T, std::size_t D>
typedef Base::reverse_iterator til::detail::numeric_array_impl< T, D >::reverse_iterator

Definition at line 65 of file numeric_array.h.

◆ Self

template<typename T, std::size_t D>
typedef numeric_array_impl<T,D> til::detail::numeric_array_impl< T, D >::Self

Definition at line 63 of file numeric_array.h.

Constructor & Destructor Documentation

◆ numeric_array_impl()

template<typename T, std::size_t D>
til::detail::numeric_array_impl< T, D >::numeric_array_impl ( )

Default constructor.

Member Function Documentation

◆ begin() [1/2]

◆ begin() [2/2]

template<typename T, std::size_t D>
const_iterator til::detail::numeric_array_impl< T, D >::begin ( ) const
inline

Definition at line 111 of file numeric_array.h.

◆ end() [1/2]

◆ end() [2/2]

template<typename T, std::size_t D>
const_iterator til::detail::numeric_array_impl< T, D >::end ( ) const
inline

Definition at line 112 of file numeric_array.h.

◆ operator*=()

template<typename T, std::size_t D>
void til::detail::numeric_array_impl< T, D >::operator*= ( const T &  x)
inline

◆ operator+=()

template<typename T, std::size_t D>
void til::detail::numeric_array_impl< T, D >::operator+= ( const T &  x)
inline

Definition at line 156 of file numeric_array.h.

◆ operator-=()

template<typename T, std::size_t D>
void til::detail::numeric_array_impl< T, D >::operator-= ( const T &  x)
inline

Definition at line 158 of file numeric_array.h.

◆ operator/=()

template<typename T, std::size_t D>
void til::detail::numeric_array_impl< T, D >::operator/= ( const T &  x)
inline

Definition at line 163 of file numeric_array.h.

◆ operator[]() [1/2]

template<typename T, std::size_t D>
const T& til::detail::numeric_array_impl< T, D >::operator[] ( std::size_t  n) const
inline

Read access to n-th value.

Definition at line 127 of file numeric_array.h.

◆ operator[]() [2/2]

template<typename T, std::size_t D>
T& til::detail::numeric_array_impl< T, D >::operator[] ( std::size_t  n)
inline

Read-write access to n-th value.

Definition at line 133 of file numeric_array.h.

◆ rbegin() [1/2]

◆ rbegin() [2/2]

template<typename T, std::size_t D>
const_reverse_iterator til::detail::numeric_array_impl< T, D >::rbegin ( ) const
inline

Definition at line 116 of file numeric_array.h.

◆ rend() [1/2]

◆ rend() [2/2]

template<typename T, std::size_t D>
const_reverse_iterator til::detail::numeric_array_impl< T, D >::rend ( ) const
inline

Definition at line 117 of file numeric_array.h.

◆ size()

template<typename T, std::size_t D>
std::size_t til::detail::numeric_array_impl< T, D >::size ( ) const
inline

Standard constructors.

NB: obviously, the size is irrelevant here; however, we need these for genericity Return container size.

Definition at line 105 of file numeric_array.h.

◆ whole_range() [1/2]

template<typename T, std::size_t D>
range til::detail::numeric_array_impl< T, D >::whole_range ( )
inline

Definition at line 121 of file numeric_array.h.

◆ whole_range() [2/2]

template<typename T, std::size_t D>
const_range til::detail::numeric_array_impl< T, D >::whole_range ( ) const
inline

Definition at line 122 of file numeric_array.h.


The documentation for this class was generated from the following file: