#include <Wrappers.h>
Collaboration diagram for WRAPPERS::auto_ary< T >:

Public Member Functions | |
| auto_ary (T *ptr=0) | |
| An auto_ary is usually constructed from a raw pointer. | |
| auto_ary (auto_ary< T > &o) | |
| An auto_ary can be constructed from another auto_ary. | |
| ~auto_ary () | |
| When the auto_ary goes out of scope, the object it owns is deleted. | |
| auto_ary< T > & | operator= (auto_ary< T > &rhs) |
| auto_ary assignment operator. | |
| const T & | operator[] (int i) const |
| array subscript read-only access. | |
| T & | operator[] (int i) |
| array subscript write access. | |
| T * | get () const |
| Bypassing the smart pointer. | |
Private Attributes | |
| T * | m_ptr |
An auto_ary owns the object it holds a pointer to. Copying an auto_ary copies the pointer and transfers ownership to the destination. If more than one auto_ary owns the same object at the same time the behavior of the program is undefined.
| WRAPPERS::auto_ary< T >::auto_ary | ( | T * | ptr = 0 |
) | [inline, explicit] |
An auto_ary is usually constructed from a raw pointer.
| ptr | A pointer (defaults to NULL). |
| WRAPPERS::auto_ary< T >::auto_ary | ( | auto_ary< T > & | o | ) | [inline] |
| WRAPPERS::auto_ary< T >::~auto_ary | ( | ) | [inline] |
| T* WRAPPERS::auto_ary< T >::get | ( | ) | const [inline] |
Bypassing the smart pointer.
| auto_ary<T>& WRAPPERS::auto_ary< T >::operator= | ( | auto_ary< T > & | rhs | ) | [inline] |
| T& WRAPPERS::auto_ary< T >::operator[] | ( | int | i | ) | [inline] |
array subscript write access.
| i | the array subscript index. |
| const T& WRAPPERS::auto_ary< T >::operator[] | ( | int | i | ) | const [inline] |
array subscript read-only access.
| i | the array subscript index. |
T* WRAPPERS::auto_ary< T >::m_ptr [private] |
1.4.7