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)
 
T * operator * () const
 
 operator bool () const
 
bool operator! () const
 
T * operator() (size_t offset) const
 
array_pointeroperator= (const array_pointer< T > &ref)
 
array_pointeroperator= (T *ptr)
 
T & operator[] (size_t offset) const
 
void release (void)
 
void retain (void)
 
void set (T *ptr)
 
void set (const 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.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org

Definition at line 156 of file generics.h.


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