Image Component Library (ICL)
|
Specialization of the SmartPtrBase class for Arrays. More...
#include <SmartArray.h>
Public Types | |
typedef SmartPtrBase< T, ArrayDelOp > | super |
Public Member Functions | |
SmartArray () | |
creates a null pointer | |
template<class DerivedT > | |
SmartArray (DerivedT *ptData, bool bOwn=true) | |
gets pointer, ownership is passed optionally | |
SmartArray (T *ptData, bool bOwn=true) | |
gets pointer, ownership is passed optionally | |
template<class DerivedT > | |
SmartArray (const SmartPtrBase< DerivedT, ArrayDelOp > &r) | |
reference counting copy constructor | |
SmartArray (const SmartPtrBase< T, ArrayDelOp > &r) | |
reference counting copy constructor | |
T & | operator[] (int idx) |
index access operator (no index checks) | |
const T & | operator[] (int idx) const |
index access operator (const, no index checks) |
Specialization of the SmartPtrBase class for Arrays.
If the internal reference counter becomes 0, the contained data pointer is release using delete []
typedef SmartPtrBase<T,ArrayDelOp> icl::utils::SmartArray< T >::super |
icl::utils::SmartArray< T >::SmartArray | ( | ) | [inline] |
creates a null pointer
icl::utils::SmartArray< T >::SmartArray | ( | DerivedT * | ptData, |
bool | bOwn = true |
||
) | [inline] |
gets pointer, ownership is passed optionally
icl::utils::SmartArray< T >::SmartArray | ( | T * | ptData, |
bool | bOwn = true |
||
) | [inline] |
gets pointer, ownership is passed optionally
icl::utils::SmartArray< T >::SmartArray | ( | const SmartPtrBase< DerivedT, ArrayDelOp > & | r | ) | [inline] |
reference counting copy constructor
icl::utils::SmartArray< T >::SmartArray | ( | const SmartPtrBase< T, ArrayDelOp > & | r | ) | [inline] |
reference counting copy constructor
T& icl::utils::SmartArray< T >::operator[] | ( | int | idx | ) | [inline] |
index access operator (no index checks)
const T& icl::utils::SmartArray< T >::operator[] | ( | int | idx | ) | const [inline] |
index access operator (const, no index checks)