library of assembled shared sources

http://lass.cocamware.com

lass::util::FixedArray< T, size_ > Struct Template Reference

compile time fixed array that also supports zero length More...

#include <fixed_array.h>


Public Types

typedef T value_type
typedef value_typereference
typedef const value_typeconst_reference
typedef value_typepointer
typedef const value_typeconst_pointer
typedef size_t size_type
typedef ptrdiff_t difference_type
typedef value_typeiterator
typedef const value_typeconst_iterator
typedef std::reverse_iterator
< iterator
reverse_iterator
typedef std::reverse_iterator
< const_iterator
const_reverse_iterator

Public Member Functions

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
reference operator[] (size_type iIndex)
const_reference operator[] (size_type iIndex) const
reference at (size_type iIndex)
const_reference at (size_type iIndex) const
reference front ()
reference back ()
const_reference front () const
const_reference back () const
size_type size () const
size_type max_size () const
bool empty () const

Private Attributes

value_type array_ [size_]


Detailed Description

template<typename T, size_t size_>
struct lass::util::FixedArray< T, size_ >

compile time fixed array that also supports zero length

Author:
Bram de Greve [Bramz]
Date:
2002-2003
FixedArray is an array of compile-time-fixed length. The unique property of this implementation is that this length can also be zero. As a surplus, this class is given an STL container interface with iterators etc.

Definition at line 76 of file fixed_array.h.


Member Typedef Documentation

template<typename T , size_t size_>
typedef T lass::util::FixedArray< T, size_ >::value_type

Definition at line 82 of file fixed_array.h.

template<typename T , size_t size_>
typedef value_type& lass::util::FixedArray< T, size_ >::reference

Definition at line 83 of file fixed_array.h.

template<typename T , size_t size_>
typedef const value_type& lass::util::FixedArray< T, size_ >::const_reference

Definition at line 84 of file fixed_array.h.

template<typename T , size_t size_>
typedef value_type* lass::util::FixedArray< T, size_ >::pointer

Definition at line 85 of file fixed_array.h.

template<typename T , size_t size_>
typedef const value_type* lass::util::FixedArray< T, size_ >::const_pointer

Definition at line 86 of file fixed_array.h.

template<typename T , size_t size_>
typedef size_t lass::util::FixedArray< T, size_ >::size_type

Definition at line 87 of file fixed_array.h.

template<typename T , size_t size_>
typedef ptrdiff_t lass::util::FixedArray< T, size_ >::difference_type

Definition at line 88 of file fixed_array.h.

template<typename T , size_t size_>
typedef value_type* lass::util::FixedArray< T, size_ >::iterator

Definition at line 89 of file fixed_array.h.

template<typename T , size_t size_>
typedef const value_type* lass::util::FixedArray< T, size_ >::const_iterator

Definition at line 90 of file fixed_array.h.

template<typename T , size_t size_>
typedef std::reverse_iterator<iterator> lass::util::FixedArray< T, size_ >::reverse_iterator

Definition at line 91 of file fixed_array.h.

template<typename T , size_t size_>
typedef std::reverse_iterator<const_iterator> lass::util::FixedArray< T, size_ >::const_reverse_iterator

Definition at line 92 of file fixed_array.h.


Member Function Documentation

template<typename T , size_t size_>
iterator lass::util::FixedArray< T, size_ >::begin (  )  [inline]

template<typename T , size_t size_>
iterator lass::util::FixedArray< T, size_ >::end (  )  [inline]

template<typename T , size_t size_>
const_iterator lass::util::FixedArray< T, size_ >::begin (  )  const [inline]

Definition at line 100 of file fixed_array.h.

References lass::util::FixedArray< T, size_ >::array_.

template<typename T , size_t size_>
const_iterator lass::util::FixedArray< T, size_ >::end (  )  const [inline]

Definition at line 101 of file fixed_array.h.

References lass::util::FixedArray< T, size_ >::array_.

template<typename T , size_t size_>
reverse_iterator lass::util::FixedArray< T, size_ >::rbegin (  )  [inline]

Definition at line 103 of file fixed_array.h.

References lass::util::FixedArray< T, size_ >::end().

template<typename T , size_t size_>
reverse_iterator lass::util::FixedArray< T, size_ >::rend (  )  [inline]

Definition at line 104 of file fixed_array.h.

References lass::util::FixedArray< T, size_ >::begin().

template<typename T , size_t size_>
const_reverse_iterator lass::util::FixedArray< T, size_ >::rbegin (  )  const [inline]

Definition at line 106 of file fixed_array.h.

References lass::util::FixedArray< T, size_ >::end().

template<typename T , size_t size_>
const_reverse_iterator lass::util::FixedArray< T, size_ >::rend (  )  const [inline]

Definition at line 107 of file fixed_array.h.

References lass::util::FixedArray< T, size_ >::begin().

template<typename T , size_t size_>
reference lass::util::FixedArray< T, size_ >::operator[] ( size_type  iIndex  )  [inline]

Definition at line 112 of file fixed_array.h.

References lass::util::FixedArray< T, size_ >::array_, and LASS_ASSERT.

template<typename T , size_t size_>
const_reference lass::util::FixedArray< T, size_ >::operator[] ( size_type  iIndex  )  const [inline]

Definition at line 118 of file fixed_array.h.

References lass::util::FixedArray< T, size_ >::array_, and LASS_ASSERT.

template<typename T , size_t size_>
reference lass::util::FixedArray< T, size_ >::at ( size_type  iIndex  )  [inline]

Definition at line 124 of file fixed_array.h.

References lass::util::FixedArray< T, size_ >::array_.

template<typename T , size_t size_>
const_reference lass::util::FixedArray< T, size_ >::at ( size_type  iIndex  )  const [inline]

Definition at line 133 of file fixed_array.h.

References lass::util::FixedArray< T, size_ >::array_.

template<typename T , size_t size_>
reference lass::util::FixedArray< T, size_ >::front (  )  [inline]

Definition at line 142 of file fixed_array.h.

References lass::util::FixedArray< T, size_ >::array_.

template<typename T , size_t size_>
reference lass::util::FixedArray< T, size_ >::back (  )  [inline]

Definition at line 143 of file fixed_array.h.

References lass::util::FixedArray< T, size_ >::array_.

template<typename T , size_t size_>
const_reference lass::util::FixedArray< T, size_ >::front (  )  const [inline]

Definition at line 145 of file fixed_array.h.

References lass::util::FixedArray< T, size_ >::array_.

template<typename T , size_t size_>
const_reference lass::util::FixedArray< T, size_ >::back (  )  const [inline]

Definition at line 146 of file fixed_array.h.

References lass::util::FixedArray< T, size_ >::array_.

template<typename T , size_t size_>
size_type lass::util::FixedArray< T, size_ >::size (  )  const [inline]

Definition at line 151 of file fixed_array.h.

template<typename T , size_t size_>
size_type lass::util::FixedArray< T, size_ >::max_size (  )  const [inline]

Definition at line 152 of file fixed_array.h.

template<typename T , size_t size_>
bool lass::util::FixedArray< T, size_ >::empty (  )  const [inline]

Definition at line 153 of file fixed_array.h.


Field Documentation

template<typename T , size_t size_>
value_type lass::util::FixedArray< T, size_ >::array_[size_] [private]


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

Generated on Mon Nov 10 14:22:17 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo