A simple container. More...
#include <vbl_array_1d.h>
Public Types | |
| typedef vcl_size_t | size_type |
| 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 (size_type 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 |
| size_type | size () const |
| size_type | 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 | |
| element_type * | begin_ |
| element_type * | end_ |
| element_type * | alloc_ |
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.
| typedef T const* vbl_array_1d< T >::const_iterator |
Definition at line 39 of file vbl_array_1d.h.
| typedef T const& vbl_array_1d< T >::const_reference |
Definition at line 42 of file vbl_array_1d.h.
| typedef T vbl_array_1d< T >::element_type |
Definition at line 32 of file vbl_array_1d.h.
| typedef T* vbl_array_1d< T >::iterator |
Definition at line 38 of file vbl_array_1d.h.
| typedef T& vbl_array_1d< T >::reference |
Definition at line 41 of file vbl_array_1d.h.
| typedef vcl_size_t vbl_array_1d< T >::size_type |
Definition at line 31 of file vbl_array_1d.h.
| vbl_array_1d< T >::vbl_array_1d | ( | ) | [inline] |
Definition at line 45 of file vbl_array_1d.h.
| vbl_array_1d< T >::vbl_array_1d | ( | const_iterator | b, |
| const_iterator | e | ||
| ) | [inline] |
Definition at line 47 of file vbl_array_1d.h.
| vbl_array_1d< T >::vbl_array_1d | ( | vbl_array_1d< T > const & | that | ) | [inline] |
Definition at line 58 of file vbl_array_1d.h.
| vbl_array_1d< T >::vbl_array_1d | ( | size_type | n, |
| const T & | v | ||
| ) | [inline] |
Construct an array with n elements, all equal to v.
Definition at line 63 of file vbl_array_1d.h.
| vbl_array_1d< T >::~vbl_array_1d | ( | ) | [inline] |
Definition at line 87 of file vbl_array_1d.h.
| reference vbl_array_1d< T >::back | ( | ) | [inline] |
Definition at line 129 of file vbl_array_1d.h.
| const_reference vbl_array_1d< T >::back | ( | ) | const [inline] |
Definition at line 130 of file vbl_array_1d.h.
| iterator vbl_array_1d< T >::begin | ( | ) | [inline] |
Definition at line 141 of file vbl_array_1d.h.
| const_iterator vbl_array_1d< T >::begin | ( | ) | const [inline] |
Definition at line 144 of file vbl_array_1d.h.
| size_type vbl_array_1d< T >::capacity | ( | ) | const [inline] |
Definition at line 149 of file vbl_array_1d.h.
| void vbl_array_1d< T >::clear | ( | ) | [inline] |
Definition at line 135 of file vbl_array_1d.h.
| bool vbl_array_1d< T >::empty | ( | ) | const [inline] |
Definition at line 147 of file vbl_array_1d.h.
| iterator vbl_array_1d< T >::end | ( | ) | [inline] |
Definition at line 142 of file vbl_array_1d.h.
| const_iterator vbl_array_1d< T >::end | ( | ) | const [inline] |
Definition at line 145 of file vbl_array_1d.h.
| reference vbl_array_1d< T >::front | ( | ) | [inline] |
Definition at line 132 of file vbl_array_1d.h.
| const_reference vbl_array_1d< T >::front | ( | ) | const [inline] |
Definition at line 133 of file vbl_array_1d.h.
| vbl_array_1d<T>& vbl_array_1d< T >::operator= | ( | vbl_array_1d< T > const & | that | ) | [inline] |
Definition at line 73 of file vbl_array_1d.h.
| bool vbl_array_1d< T >::operator== | ( | vbl_array_1d< T > const & | that | ) | const [inline] |
Definition at line 79 of file vbl_array_1d.h.
| 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 153 of file vbl_array_1d.h.
| 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 161 of file vbl_array_1d.h.
| void vbl_array_1d< T >::pop_back | ( | ) | [inline] |
Definition at line 124 of file vbl_array_1d.h.
| void vbl_array_1d< T >::push_back | ( | T const & | x | ) | [inline] |
Definition at line 117 of file vbl_array_1d.h.
| void vbl_array_1d< T >::reserve | ( | vcl_ptrdiff_t | new_n | ) | [inline] |
Definition at line 94 of file vbl_array_1d.h.
| size_type vbl_array_1d< T >::size | ( | ) | const [inline] |
Definition at line 148 of file vbl_array_1d.h.
element_type * vbl_array_1d< T >::alloc_ [private] |
Definition at line 35 of file vbl_array_1d.h.
element_type* vbl_array_1d< T >::begin_ [private] |
Definition at line 35 of file vbl_array_1d.h.
element_type * vbl_array_1d< T >::end_ [private] |
Definition at line 35 of file vbl_array_1d.h.
1.7.5.1