pinapa::resizeable_array< T > Class Template Reference

#include <pinapa-utils.h>

List of all members.

Public Member Functions

T & operator[] (size_t __n)
const T & operator[] (size_t __n) const


Detailed Description

template<typename T>
class pinapa::resizeable_array< T >

Resizeable array. It's just an extension of the class vector. Calling x[n] will (if necessary) resize the vector so that `n' can fit in it.


Member Function Documentation

template<typename T>
T& pinapa::resizeable_array< T >::operator[] ( size_t  __n  )  [inline]

Access the nth element, and resize the vector if necessary

template<typename T>
const T& pinapa::resizeable_array< T >::operator[] ( size_t  __n  )  const [inline]

Access the nth element read-only. Raises an error if the n-th element doesn't exist.


The documentation for this class was generated from the following file:
Generated by
Matthieu Moy <Matthieu.Moy@st.com>
Back to Pinapa Home Page