Main Page | Namespace List | Class Hierarchy | Compound List | File List | Compound Members | File Members

RCArray< T >::SharedData Class Reference

#include <RCArray.h>

Inheritance diagram for RCArray< T >::SharedData:

Inheritance graph
[legend]
Collaboration diagram for RCArray< T >::SharedData:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SharedData ()
 SharedData (const GrowableArray< T > &v)
 SharedData (size_t initialSize)
 SharedData (const SharedData &rhs)
 ~SharedData ()
size_t getRefCnt ()

Public Attributes

GrowableArray< T > data

Private Member Functions

void copy (const GrowableArray< T > &v)

template<class T>
class RCArray< T >::SharedData


Constructor & Destructor Documentation

template<class T>
RCArray< T >::SharedData::SharedData  )  [inline]
 

Definition at line 165 of file RCArray.h.

00165 {};

template<class T>
RCArray< T >::SharedData::SharedData const GrowableArray< T > &  v  )  [inline]
 

Definition at line 166 of file RCArray.h.

References RCArray< T >::SharedData::copy().

00166 { copy( v ); }

template<class T>
RCArray< T >::SharedData::SharedData size_t  initialSize  )  [inline]
 

Definition at line 167 of file RCArray.h.

References RCArray< T >::SharedData::data.

00167 : data( initialSize ) {}

template<class T>
RCArray< T >::SharedData::SharedData const SharedData rhs  )  [inline]
 

Definition at line 168 of file RCArray.h.

References RCArray< T >::SharedData::copy(), and RCArray< T >::SharedData::data.

00168 { copy( rhs.data ); }

template<class T>
RCArray< T >::SharedData::~SharedData  )  [inline]
 

Definition at line 169 of file RCArray.h.

00169 {}


Member Function Documentation

template<class T>
void RCArray< T >::SharedData::copy const GrowableArray< T > &  v  )  [inline, private]
 

Definition at line 173 of file RCArray.h.

References RCArray< T >::SharedData::data, and GrowableArray< T >::length().

Referenced by RCArray< T >::SharedData::SharedData().

00174     {
00175       size_t len = v.length();
00176       for (size_t i = 0; i < len; i++) {
00177         data.append( v[i] );
00178       }
00179     } // copy

template<class T>
size_t RCArray< T >::SharedData::getRefCnt  )  [inline]
 

Definition at line 170 of file RCArray.h.

References RCObject::refCnt().

00170 { return refCnt(); }


Member Data Documentation

template<class T>
GrowableArray<T> RCArray< T >::SharedData::data
 

Definition at line 163 of file RCArray.h.

Referenced by RCArray< T >::SharedData::copy(), and RCArray< T >::SharedData::SharedData().


The documentation for this class was generated from the following file:
Generated on Mon Sep 22 20:23:02 2003 by doxygen 1.3.3