Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

vbl_array_1d< T > Struct Template Reference

#include <vbl_array_1d.h>

List of all members.


Detailed Description

template<class T>
struct vbl_array_1d< T >

A simple container.

This container stores its elements in contiguous storage and whose iterator types are raw pointers. There is no requirement that the element type have a default constructor.

Definition at line 28 of file vbl_array_1d.h.

Public Types

typedef T element_type
typedef T * iterator
typedef T const * const_iterator
typedef T & reference
typedef T const & const_reference

Public Member Functions

 vbl_array_1d ()
 vbl_array_1d (const_iterator b, const_iterator e)
 vbl_array_1d (vbl_array_1d< T > const &that)
 vbl_array_1d (unsigned long n, const T &v)
 Construct an array with n elements, all equal to v.
vbl_array_1d< T > & operator= (vbl_array_1d< T > const &that)
bool operator== (vbl_array_1d< T > const &that) const
 ~vbl_array_1d ()
void reserve (vcl_ptrdiff_t new_n)
void push_back (T const &x)
void pop_back ()
reference back ()
const_reference back () const
reference front ()
const_reference front () const
void clear ()
iterator begin ()
iterator end ()
const_iterator begin () const
const_iterator end () const
bool empty () const
vcl_size_t size () const
vcl_size_t capacity () const
reference operator[] (vcl_ptrdiff_t i)
 Get the ith element.
const_reference operator[] (vcl_ptrdiff_t i) const
 Get the ith element.

Private Attributes

T * begin_
T * end_
T * alloc_


Member Typedef Documentation

template<class T>
typedef T const* vbl_array_1d< T >::const_iterator
 

Definition at line 33 of file vbl_array_1d.h.

template<class T>
typedef T const& vbl_array_1d< T >::const_reference
 

Definition at line 36 of file vbl_array_1d.h.

template<class T>
typedef T vbl_array_1d< T >::element_type
 

Definition at line 30 of file vbl_array_1d.h.

template<class T>
typedef T* vbl_array_1d< T >::iterator
 

Definition at line 32 of file vbl_array_1d.h.

template<class T>
typedef T& vbl_array_1d< T >::reference
 

Definition at line 35 of file vbl_array_1d.h.


Constructor & Destructor Documentation

template<class T>
vbl_array_1d< T >::vbl_array_1d  )  [inline]
 

Definition at line 38 of file vbl_array_1d.h.

template<class T>
vbl_array_1d< T >::vbl_array_1d const_iterator  b,
const_iterator  e
[inline]
 

Definition at line 40 of file vbl_array_1d.h.

template<class T>
vbl_array_1d< T >::vbl_array_1d vbl_array_1d< T > const &  that  )  [inline]
 

Definition at line 51 of file vbl_array_1d.h.

template<class T>
vbl_array_1d< T >::vbl_array_1d unsigned long  n,
const T &  v
[inline]
 

Construct an array with n elements, all equal to v.

Definition at line 56 of file vbl_array_1d.h.

template<class T>
vbl_array_1d< T >::~vbl_array_1d  )  [inline]
 

Definition at line 80 of file vbl_array_1d.h.


Member Function Documentation

template<class T>
const_reference vbl_array_1d< T >::back  )  const [inline]
 

Definition at line 123 of file vbl_array_1d.h.

template<class T>
reference vbl_array_1d< T >::back  )  [inline]
 

Definition at line 122 of file vbl_array_1d.h.

template<class T>
const_iterator vbl_array_1d< T >::begin  )  const [inline]
 

Definition at line 137 of file vbl_array_1d.h.

template<class T>
iterator vbl_array_1d< T >::begin  )  [inline]
 

Definition at line 134 of file vbl_array_1d.h.

template<class T>
vcl_size_t vbl_array_1d< T >::capacity  )  const [inline]
 

Definition at line 142 of file vbl_array_1d.h.

template<class T>
void vbl_array_1d< T >::clear  )  [inline]
 

Definition at line 128 of file vbl_array_1d.h.

template<class T>
bool vbl_array_1d< T >::empty  )  const [inline]
 

Definition at line 140 of file vbl_array_1d.h.

template<class T>
const_iterator vbl_array_1d< T >::end  )  const [inline]
 

Definition at line 138 of file vbl_array_1d.h.

template<class T>
iterator vbl_array_1d< T >::end  )  [inline]
 

Definition at line 135 of file vbl_array_1d.h.

template<class T>
const_reference vbl_array_1d< T >::front  )  const [inline]
 

Definition at line 126 of file vbl_array_1d.h.

template<class T>
reference vbl_array_1d< T >::front  )  [inline]
 

Definition at line 125 of file vbl_array_1d.h.

template<class T>
vbl_array_1d<T>& vbl_array_1d< T >::operator= vbl_array_1d< T > const &  that  )  [inline]
 

Definition at line 66 of file vbl_array_1d.h.

template<class T>
bool vbl_array_1d< T >::operator== vbl_array_1d< T > const &  that  )  const [inline]
 

Definition at line 72 of file vbl_array_1d.h.

template<class T>
const_reference vbl_array_1d< T >::operator[] vcl_ptrdiff_t  i  )  const [inline]
 

Get the ith element.

define NDEBUG to turn bounds checking off.

Definition at line 154 of file vbl_array_1d.h.

template<class T>
reference vbl_array_1d< T >::operator[] vcl_ptrdiff_t  i  )  [inline]
 

Get the ith element.

define NDEBUG to turn bounds checking off.

Definition at line 146 of file vbl_array_1d.h.

template<class T>
void vbl_array_1d< T >::pop_back  )  [inline]
 

Definition at line 117 of file vbl_array_1d.h.

template<class T>
void vbl_array_1d< T >::push_back T const &  x  )  [inline]
 

Definition at line 110 of file vbl_array_1d.h.

template<class T>
void vbl_array_1d< T >::reserve vcl_ptrdiff_t  new_n  )  [inline]
 

Definition at line 87 of file vbl_array_1d.h.

template<class T>
vcl_size_t vbl_array_1d< T >::size  )  const [inline]
 

Definition at line 141 of file vbl_array_1d.h.


Member Data Documentation

template<class T>
T * vbl_array_1d< T >::alloc_ [private]
 

Definition at line 162 of file vbl_array_1d.h.

template<class T>
T* vbl_array_1d< T >::begin_ [private]
 

Definition at line 162 of file vbl_array_1d.h.

template<class T>
T * vbl_array_1d< T >::end_ [private]
 

Definition at line 162 of file vbl_array_1d.h.


The documentation for this struct was generated from the following file:
Generated on Thu Jan 10 14:39:08 2008 for core/vbl by  doxygen 1.4.4