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=((void *) 0))
 array_pointer (array_pointer< T > &ref)
 operator bool ()
bool operator! ()
T * operator() (size_t offset)
T * operator* ()
array_pointeroperator= (array_pointer< T > &ref)
array_pointeroperator= (T *ptr)
T & operator[] (size_t offset)
void release (void)
void retain (void)
void set (T *ptr)
void set (array_pointer< T > &ref)

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: