boost::numeric::ublas::readonly_array_adaptor< T > Class Template Reference

gives read only access to a chunk of memory. More...

#include <storage_adaptors.hpp>

List of all members.

Public Types

typedef std::size_t size_type
typedef std::ptrdiff_t difference_type
typedef T value_type
typedef const T & const_reference
typedef const T * const_pointer
typedef const_pointer const_iterator
typedef const_pointer iterator
typedef std::reverse_iterator
< const_iterator
const_reverse_iterator
typedef std::reverse_iterator
< iterator
reverse_iterator

Public Member Functions

BOOST_UBLAS_INLINE readonly_array_adaptor ()
BOOST_UBLAS_INLINE readonly_array_adaptor (size_type size, const_pointer data)
BOOST_UBLAS_INLINE ~readonly_array_adaptor ()
 readonly_array_adaptor (const readonly_array_adaptor &rhs)
BOOST_UBLAS_INLINE void resize (size_type size)
BOOST_UBLAS_INLINE void resize (size_type size, const_pointer data)
BOOST_UBLAS_INLINE size_type max_size () const
BOOST_UBLAS_INLINE bool empty () const
BOOST_UBLAS_INLINE size_type size () const
BOOST_UBLAS_INLINE const_reference operator[] (size_type i) const
BOOST_UBLAS_INLINE const_iterator begin () const
BOOST_UBLAS_INLINE const_iterator end () const
BOOST_UBLAS_INLINE
const_reverse_iterator 
rbegin () const
BOOST_UBLAS_INLINE
const_reverse_iterator 
rend () const

Private Types

typedef readonly_array_adaptor< T > self_type

Private Attributes

size_type size_
const_pointer data_

Detailed Description

template<class T>
class boost::numeric::ublas::readonly_array_adaptor< T >

gives read only access to a chunk of memory.

This class partially models the storage concept. Only the immutable interface is provided.

example: T data[dim]; // ... fill data ... typedef readonly_array_adaptor<T> a_t; typedef vector<const T, a_t> v_t; a_t pa(dim, &(data[0])); v_t v(dim, pa);

Definition at line 54 of file storage_adaptors.hpp.


Member Typedef Documentation

Definition at line 128 of file storage_adaptors.hpp.

template<class T >
typedef const T* boost::numeric::ublas::readonly_array_adaptor< T >::const_pointer

Definition at line 64 of file storage_adaptors.hpp.

template<class T >
typedef const T& boost::numeric::ublas::readonly_array_adaptor< T >::const_reference

Definition at line 63 of file storage_adaptors.hpp.

template<class T >
typedef std::reverse_iterator<const_iterator> boost::numeric::ublas::readonly_array_adaptor< T >::const_reverse_iterator

Definition at line 145 of file storage_adaptors.hpp.

template<class T >
typedef std::ptrdiff_t boost::numeric::ublas::readonly_array_adaptor< T >::difference_type

Definition at line 61 of file storage_adaptors.hpp.

Definition at line 142 of file storage_adaptors.hpp.

template<class T >
typedef std::reverse_iterator<iterator> boost::numeric::ublas::readonly_array_adaptor< T >::reverse_iterator

Definition at line 146 of file storage_adaptors.hpp.

Definition at line 58 of file storage_adaptors.hpp.

template<class T >
typedef std::size_t boost::numeric::ublas::readonly_array_adaptor< T >::size_type

Definition at line 60 of file storage_adaptors.hpp.

template<class T >
typedef T boost::numeric::ublas::readonly_array_adaptor< T >::value_type

Definition at line 62 of file storage_adaptors.hpp.


Constructor & Destructor Documentation

template<class T >
BOOST_UBLAS_INLINE boost::numeric::ublas::readonly_array_adaptor< T >::readonly_array_adaptor (  )  [inline]

Definition at line 69 of file storage_adaptors.hpp.

template<class T >
BOOST_UBLAS_INLINE boost::numeric::ublas::readonly_array_adaptor< T >::readonly_array_adaptor ( size_type  size,
const_pointer  data 
) [inline]

Definition at line 74 of file storage_adaptors.hpp.

template<class T >
BOOST_UBLAS_INLINE boost::numeric::ublas::readonly_array_adaptor< T >::~readonly_array_adaptor (  )  [inline]

Definition at line 79 of file storage_adaptors.hpp.

template<class T >
boost::numeric::ublas::readonly_array_adaptor< T >::readonly_array_adaptor ( const readonly_array_adaptor< T > &  rhs  )  [inline]

Definition at line 83 of file storage_adaptors.hpp.


Member Function Documentation

template<class T >
BOOST_UBLAS_INLINE const_iterator boost::numeric::ublas::readonly_array_adaptor< T >::begin (  )  const [inline]

Definition at line 131 of file storage_adaptors.hpp.

Here is the caller graph for this function:

template<class T >
BOOST_UBLAS_INLINE bool boost::numeric::ublas::readonly_array_adaptor< T >::empty (  )  const [inline]

Definition at line 108 of file storage_adaptors.hpp.

template<class T >
BOOST_UBLAS_INLINE const_iterator boost::numeric::ublas::readonly_array_adaptor< T >::end (  )  const [inline]

Definition at line 136 of file storage_adaptors.hpp.

Here is the caller graph for this function:

template<class T >
BOOST_UBLAS_INLINE size_type boost::numeric::ublas::readonly_array_adaptor< T >::max_size (  )  const [inline]

Definition at line 102 of file storage_adaptors.hpp.

Here is the call graph for this function:

template<class T >
BOOST_UBLAS_INLINE const_reference boost::numeric::ublas::readonly_array_adaptor< T >::operator[] ( size_type  i  )  const [inline]

Definition at line 121 of file storage_adaptors.hpp.

template<class T >
BOOST_UBLAS_INLINE const_reverse_iterator boost::numeric::ublas::readonly_array_adaptor< T >::rbegin (  )  const [inline]

Definition at line 149 of file storage_adaptors.hpp.

Here is the call graph for this function:

template<class T >
BOOST_UBLAS_INLINE const_reverse_iterator boost::numeric::ublas::readonly_array_adaptor< T >::rend (  )  const [inline]

Definition at line 154 of file storage_adaptors.hpp.

Here is the call graph for this function:

template<class T >
BOOST_UBLAS_INLINE void boost::numeric::ublas::readonly_array_adaptor< T >::resize ( size_type  size,
const_pointer  data 
) [inline]

Definition at line 94 of file storage_adaptors.hpp.

template<class T >
BOOST_UBLAS_INLINE void boost::numeric::ublas::readonly_array_adaptor< T >::resize ( size_type  size  )  [inline]

Definition at line 89 of file storage_adaptors.hpp.

template<class T >
BOOST_UBLAS_INLINE size_type boost::numeric::ublas::readonly_array_adaptor< T >::size (  )  const [inline]

Definition at line 114 of file storage_adaptors.hpp.


Member Data Documentation

Definition at line 161 of file storage_adaptors.hpp.

Definition at line 160 of file storage_adaptors.hpp.


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

Generated on Mon Nov 9 12:56:56 2009 for uvsim by  doxygen 1.6.1