UCommon
Public Member Functions | Protected Attributes
ucommon::array_pointer< T > Class Template Reference

Generic smart array class. More...

#include <generics.h>

Public Member Functions

 array_pointer (T *ptr=NULL)
 array_pointer (const array_pointer< T > &ref)
 operator bool () const
bool operator! () const
T * operator() (size_t offset) const
T * operator* () const
array_pointeroperator= (T *ptr)
array_pointeroperator= (const array_pointer< T > &ref)
T & operator[] (size_t offset) const
void release (void)
void retain (void)
void set (const array_pointer< T > &ref)
void set (T *ptr)

Protected Attributes

T * array
unsigned * counter

Detailed Description

template<typename T>
class ucommon::array_pointer< T >

Generic smart array class.

This is the original Common C++ "Pointer" class with a few additions for arrays.

Author:
David Sugar <dyfet@gnutelephony.org>

Definition at line 153 of file generics.h.


The documentation for this class was generated from the following file: