#include <StdVectorPtr.h>
Public Member Functions | |
| StdVectorPtr (size_t capacity=0) | |
| ~StdVectorPtr () | |
| void | resize (size_t newsize) |
| size_t | size () const |
| size_t | capacity () const |
| void | clear () |
| void | push_back (std::auto_ptr< T > ptr) |
| T *const & | operator[] (size_t n) const |
| T *const & | at (size_t n) const |
| void | reset (size_t n, T *ptr) |
| bool | empty () const |
Protected Attributes | |
| std::vector< T * > | data |
Private Member Functions | |
| StdVectorPtr (const StdVectorPtr &) | |
| StdVectorPtr & | operator= (const StdVectorPtr &) |
Definition at line 29 of file StdVectorPtr.h.
| StdVectorPtr< T >::StdVectorPtr | ( | size_t | capacity = 0 |
) | [inline] |
Definition at line 32 of file StdVectorPtr.h.
| StdVectorPtr< T >::~StdVectorPtr | ( | ) | [inline] |
| StdVectorPtr< T >::StdVectorPtr | ( | const StdVectorPtr< T > & | ) | [private] |
| void StdVectorPtr< T >::resize | ( | size_t | newsize | ) | [inline] |
Definition at line 35 of file StdVectorPtr.h.
References StdVectorPtr< T >::data, and StdVectorPtr< T >::size().
| size_t StdVectorPtr< T >::size | ( | ) | const [inline] |
Definition at line 49 of file StdVectorPtr.h.
References StdVectorPtr< T >::data.
Referenced by StdVectorPtr< T >::clear(), and StdVectorPtr< T >::resize().
| size_t StdVectorPtr< T >::capacity | ( | ) | const [inline] |
| void StdVectorPtr< T >::clear | ( | ) | [inline] |
Definition at line 51 of file StdVectorPtr.h.
References StdVectorPtr< T >::data, and StdVectorPtr< T >::size().
Referenced by StdVectorPtr< T >::~StdVectorPtr().
| void StdVectorPtr< T >::push_back | ( | std::auto_ptr< T > | ptr | ) | [inline] |
| T* const& StdVectorPtr< T >::operator[] | ( | size_t | n | ) | const [inline] |
| T* const& StdVectorPtr< T >::at | ( | size_t | n | ) | const [inline] |
| void StdVectorPtr< T >::reset | ( | size_t | n, | |
| T * | ptr | |||
| ) | [inline] |
| bool StdVectorPtr< T >::empty | ( | ) | const [inline] |
| StdVectorPtr& StdVectorPtr< T >::operator= | ( | const StdVectorPtr< T > & | ) | [private] |
std::vector<T*> StdVectorPtr< T >::data [protected] |
Definition at line 77 of file StdVectorPtr.h.
Referenced by StdVectorPtr< T >::at(), StdVectorPtr< T >::capacity(), StdVectorPtr< T >::clear(), StdVectorPtr< T >::empty(), StdVectorPtr< T >::operator[](), StdVectorPtr< T >::push_back(), StdVectorPtr< T >::reset(), StdVectorPtr< T >::resize(), and StdVectorPtr< T >::size().
1.5.3