mbo::TStaticArrayEx< __ValueType, __MaxSize, __Allocator > Class Template Reference

static sized array of __ValueType More...

#include <TStaticArray.h>

Inheritance diagram for mbo::TStaticArrayEx< __ValueType, __MaxSize, __Allocator >:

Inheritance graph
{mbo::TStaticArray\< __ValueType, __MaxSize, __Allocator \>\n|# m_alloc\l# m_nSize\l# m_acValues\l- m_acData\l|+ TStaticArray()\l+ TStaticArray()\l+ TStaticArray()\l+ ~TStaticArray()\l+ capacity()\l+ size()\l+ resize()\l+ resize()\l+ limit_size()\l+ reserve()\l+ empty()\l+ full()\l+ at()\l+ at()\l+ operator[]()\l+ operator[]()\l+ front()\l+ front()\l+ back()\l+ back()\l+ push_back()\l+ pop_back()\l+ append()\l+ append_element()\l+ clear()\l+ begin()\l+ begin()\l+ end()\l+ end()\l+ final()\l+ final()\l}
[legend]
Collaboration diagram for mbo::TStaticArrayEx< __ValueType, __MaxSize, __Allocator >:

Collaboration graph
{mbo::TStaticArray\< __ValueType, __MaxSize, __Allocator \>\n|# m_alloc\l# m_nSize\l# m_acValues\l- m_acData\l|+ TStaticArray()\l+ TStaticArray()\l+ TStaticArray()\l+ ~TStaticArray()\l+ capacity()\l+ size()\l+ resize()\l+ resize()\l+ limit_size()\l+ reserve()\l+ empty()\l+ full()\l+ at()\l+ at()\l+ operator[]()\l+ operator[]()\l+ front()\l+ front()\l+ back()\l+ back()\l+ push_back()\l+ pop_back()\l+ append()\l+ append_element()\l+ clear()\l+ begin()\l+ begin()\l+ end()\l+ end()\l+ final()\l+ final()\l}{mbo::allocator\< __ValueType, __ReferenceType \>\n||+ address()\l+ address()\l+ allocate()\l+ deallocate()\l+ construct()\l+ max_size()\l}
[legend]

List of all members.

Public Member Functions

const_reference operator[] (size_type index) const throw (out_of_range)
reference operator[] (size_type index) throw (out_of_range)


Detailed Description

template<class __ValueType, size_t __MaxSize, class __Allocator = std::allocator<__ValueType>>
class mbo::TStaticArrayEx< __ValueType, __MaxSize, __Allocator >

static sized array of __ValueType

Template base for static arrays granting access beyond the last used element using overloaded array access. It will create empty elements as needed using element default constructor.

Definition at line 1071 of file TStaticArray.h.


Member Function Documentation

template<class __ValueType, size_t __MaxSize, class __Allocator = std::allocator<__ValueType>>
const_reference mbo::TStaticArrayEx< __ValueType, __MaxSize, __Allocator >::operator[] ( size_type  index  )  const throw (out_of_range) [inline]

Parameters:
index of element to access
Returns:
const reference to value at specified index
Exceptions:
out_of_range if size() == 0

Definition at line 1079 of file TStaticArray.h.

References mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::append_element(), mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::m_acValues, mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::m_nSize, and mbo_tsa_throw_if_not.

01079 {
01080 public:
01085     inline const_reference operator[] (_IN size_type index) const throw(out_of_range)
01086     {
01087         mbo_tsa_throw_if_not(out_of_range, index < __MaxSize);

Here is the call graph for this function:

mbo::TStaticArray::append_element

template<class __ValueType, size_t __MaxSize, class __Allocator = std::allocator<__ValueType>>
reference mbo::TStaticArrayEx< __ValueType, __MaxSize, __Allocator >::operator[] ( size_type  index  )  throw (out_of_range) [inline]

Parameters:
index of element to access
Returns:
reference to value at specified index
Exceptions:
out_of_range if index is invalid

Definition at line 1093 of file TStaticArray.h.

01100     {
01101         mbo_tsa_throw_if_not(out_of_range, index < __MaxSize);


The documentation for this class was generated from the following file:
  Hosted on code.google.com  
© Marcus Börger
Generated on Fri Jan 18 21:21:15 2008 for MBO-lib by doxygen 1.5.4