DataSmart< ReferenceCountedObject > Class Template Reference

#include <data-reference-count.h>

Inherits Smart< ReferenceCountedObject >.

Collaboration diagram for DataSmart< ReferenceCountedObject >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 DataSmart (ReferenceCountedObject *p=0)
bool operator< (const DataSmart< ReferenceCountedObject > &other) const


Detailed Description

template<class ReferenceCountedObject>
class DataSmart< ReferenceCountedObject >

This class uses an ugly trick in which we wrongly align the last bit of the pointer as an indication of the fact that we should clone the pointer to a writable one. As soon as this pointer is copied, we check whether we really need to clone the original or not

Definition at line 131 of file data-reference-count.h.


Constructor & Destructor Documentation

template<class ReferenceCountedObject >
DataSmart< ReferenceCountedObject >::DataSmart ( ReferenceCountedObject *  p = 0  )  [inline, explicit]

Definition at line 134 of file data-reference-count.h.


Member Function Documentation

template<class ReferenceCountedObject >
bool DataSmart< ReferenceCountedObject >::operator< ( const DataSmart< ReferenceCountedObject > &  other  )  const [inline]

Definition at line 173 of file data-reference-count.h.


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

Generated on Sat Feb 20 19:04:27 2010 for Data Objects by  doxygen 1.5.9