Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions
icl::utils::SmartArray< T > Struct Template Reference

Specialization of the SmartPtrBase class for Arrays. More...

#include <SmartArray.h>

Inheritance diagram for icl::utils::SmartArray< T >:
icl::utils::SmartPtrBase< T, ArrayDelOp >

List of all members.

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)

Detailed Description

template<class T>
struct icl::utils::SmartArray< T >

Specialization of the SmartPtrBase class for Arrays.

If the internal reference counter becomes 0, the contained data pointer is release using delete []


Member Typedef Documentation

template<class T>
typedef SmartPtrBase<T,ArrayDelOp> icl::utils::SmartArray< T >::super

Constructor & Destructor Documentation

template<class T>
icl::utils::SmartArray< T >::SmartArray ( ) [inline]

creates a null pointer

template<class T>
template<class DerivedT >
icl::utils::SmartArray< T >::SmartArray ( DerivedT *  ptData,
bool  bOwn = true 
) [inline]

gets pointer, ownership is passed optionally

template<class T>
icl::utils::SmartArray< T >::SmartArray ( T *  ptData,
bool  bOwn = true 
) [inline]

gets pointer, ownership is passed optionally

template<class T>
template<class DerivedT >
icl::utils::SmartArray< T >::SmartArray ( const SmartPtrBase< DerivedT, ArrayDelOp > &  r) [inline]

reference counting copy constructor

template<class T>
icl::utils::SmartArray< T >::SmartArray ( const SmartPtrBase< T, ArrayDelOp > &  r) [inline]

reference counting copy constructor


Member Function Documentation

template<class T>
T& icl::utils::SmartArray< T >::operator[] ( int  idx) [inline]

index access operator (no index checks)

template<class T>
const T& icl::utils::SmartArray< T >::operator[] ( int  idx) const [inline]

index access operator (const, no index checks)


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines