ProteoWizard
|
#include <auto_vector.h>
Classes | |
class | auto_lvalue |
Public Types | |
typedef std::vector< T * > ::iterator | iterator |
typedef std::vector< T * > ::const_iterator | const_iterator |
typedef std::vector< T * > ::reverse_iterator | reverse_iterator |
typedef std::vector< T * > ::const_reverse_iterator | const_reverse_iterator |
Public Member Functions | |
auto_vector (size_t capacity=0) | |
~auto_vector () | |
size_t | size () const |
size_t | capacity () const |
void | reserve (size_t count) |
void | resize (unsigned int newSize) |
void | erase (size_t idx) |
void | clear () |
void | compact () |
void | swap (auto_vector< T > &other) |
T const * | operator[] (size_t i) const |
auto_lvalue | operator[] (size_t i) |
void | assign (size_t i, std::auto_ptr< T > p) |
void | assign_direct (size_t i, T *p) |
void | insert (size_t idx, std::auto_ptr< T > p) |
void | push_back (std::auto_ptr< T > p) |
std::auto_ptr< T > | pop_back () |
T * | back () |
T const * | back () const |
T * | front () |
T const * | front () const |
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 |
iterator | erase (iterator it) |
size_t | ToIndex (iterator const &it) |
size_t | ToIndex (reverse_iterator const &rit) |
iterator | ToIter (size_t idx) |
reverse_iterator | ToRIter (size_t idx) |
Private Member Functions | |
auto_vector (auto_vector< T > const &src) | |
auto_vector< T > & | operator= (auto_vector< T > const &src) |
Private Attributes | |
std::vector< T * > | _arr |
Definition at line 23 of file auto_vector.h.
typedef std::vector<T*>::iterator auto_vector< T >::iterator |
Definition at line 75 of file auto_vector.h.
typedef std::vector<T*>::const_iterator auto_vector< T >::const_iterator |
Definition at line 76 of file auto_vector.h.
typedef std::vector<T*>::reverse_iterator auto_vector< T >::reverse_iterator |
Definition at line 77 of file auto_vector.h.
typedef std::vector<T*>::const_reverse_iterator auto_vector< T >::const_reverse_iterator |
Definition at line 78 of file auto_vector.h.
|
explicit |
Definition at line 105 of file auto_vector.h.
auto_vector< T >::~auto_vector | ( | ) |
Definition at line 111 of file auto_vector.h.
|
private |
|
inline |
Definition at line 47 of file auto_vector.h.
References auto_vector< T >::_arr.
|
inline |
Definition at line 48 of file auto_vector.h.
References auto_vector< T >::_arr.
|
inline |
Definition at line 225 of file auto_vector.h.
References auto_vector< T >::reserve().
Referenced by auto_vector< T >::reserve().
|
inline |
Definition at line 231 of file auto_vector.h.
void auto_vector< T >::erase | ( | size_t | idx | ) |
void auto_vector< T >::clear | ( | ) |
Definition at line 143 of file auto_vector.h.
void auto_vector< T >::compact | ( | ) |
|
inline |
Definition at line 54 of file auto_vector.h.
References auto_vector< T >::_arr.
|
inline |
Definition at line 59 of file auto_vector.h.
References auto_vector< T >::_arr.
|
inline |
Definition at line 60 of file auto_vector.h.
References auto_vector< T >::_arr.
|
inline |
|
inline |
void auto_vector< T >::insert | ( | size_t | idx, |
std::auto_ptr< T > | p | ||
) |
Definition at line 239 of file auto_vector.h.
void auto_vector< T >::push_back | ( | std::auto_ptr< T > | p | ) |
Definition at line 117 of file auto_vector.h.
|
inline |
Definition at line 124 of file auto_vector.h.
|
inline |
Definition at line 70 of file auto_vector.h.
References auto_vector< T >::_arr.
|
inline |
Definition at line 71 of file auto_vector.h.
References auto_vector< T >::_arr.
|
inline |
Definition at line 72 of file auto_vector.h.
References auto_vector< T >::_arr.
|
inline |
Definition at line 73 of file auto_vector.h.
References auto_vector< T >::_arr.
|
inline |
Definition at line 81 of file auto_vector.h.
References auto_vector< T >::_arr.
|
inline |
Definition at line 82 of file auto_vector.h.
References auto_vector< T >::_arr.
|
inline |
Definition at line 83 of file auto_vector.h.
References auto_vector< T >::_arr.
|
inline |
Definition at line 84 of file auto_vector.h.
References auto_vector< T >::_arr.
|
inline |
Definition at line 85 of file auto_vector.h.
References auto_vector< T >::_arr.
|
inline |
Definition at line 86 of file auto_vector.h.
References auto_vector< T >::_arr.
|
inline |
Definition at line 87 of file auto_vector.h.
References auto_vector< T >::_arr.
|
inline |
Definition at line 88 of file auto_vector.h.
References auto_vector< T >::_arr.
iterator auto_vector< T >::erase | ( | iterator | it | ) |
size_t auto_vector< T >::ToIndex | ( | iterator const & | it | ) |
Definition at line 195 of file auto_vector.h.
size_t auto_vector< T >::ToIndex | ( | reverse_iterator const & | rit | ) |
Definition at line 202 of file auto_vector.h.
auto_vector< T >::iterator auto_vector< T >::ToIter | ( | size_t | idx | ) |
Definition at line 211 of file auto_vector.h.
auto_vector< T >::reverse_iterator auto_vector< T >::ToRIter | ( | size_t | idx | ) |
Definition at line 217 of file auto_vector.h.
|
private |
|
private |
Definition at line 101 of file auto_vector.h.
Referenced by auto_vector< T >::back(), auto_vector< T >::begin(), auto_vector< T >::capacity(), auto_vector< T >::end(), auto_vector< T >::front(), auto_vector< T >::operator[](), auto_vector< T >::rbegin(), auto_vector< T >::rend(), auto_vector< T >::size(), and auto_vector< T >::swap().