Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

mcObjectRefData Class Reference

#include <Object.h>

Inheritance diagram for mcObjectRefData:

Inheritance graph
[legend]
List of all members.

Detailed Description

Reference counted data meant to be stored in mcObject.

This class has an important difference with wxObjectRefData: it provides the #IncRefCount() and #DecRefCount() as public methods, thus allowing mcElement-derived class to implement their wrapper constructors.

Definition at line 100 of file Object.h.

Public Member Functions

 mcObjectRefData ()
virtual ~mcObjectRefData ()
int data_GetRefCount () const
void data_SetRefCount (int n)
void data_IncRefCount ()
void data_DecRefCount ()

Private Attributes

int mdata_count


Constructor & Destructor Documentation

mcObjectRefData::mcObjectRefData  )  [inline]
 

Definition at line 103 of file Object.h.

References mdata_count.

virtual mcObjectRefData::~mcObjectRefData  )  [inline, virtual]
 

Definition at line 104 of file Object.h.


Member Function Documentation

void mcObjectRefData::data_DecRefCount  )  [inline]
 

Definition at line 110 of file Object.h.

References mdata_count.

Referenced by mcObject::data_UnRef().

int mcObjectRefData::data_GetRefCount  )  const [inline]
 

Definition at line 106 of file Object.h.

References mdata_count.

Referenced by mcElement::data_MakePrivateCopy(), mcObject::data_UnRef(), and mcElementHelpers::math_Replace().

void mcObjectRefData::data_IncRefCount  )  [inline]
 

Definition at line 109 of file Object.h.

References mdata_count.

Referenced by mcObject::data_Ref(), and mcElement::mcElement().

void mcObjectRefData::data_SetRefCount int  n  )  [inline]
 

Definition at line 107 of file Object.h.

References mdata_count.


Member Data Documentation

int mcObjectRefData::mdata_count [private]
 

Definition at line 113 of file Object.h.

Referenced by data_DecRefCount(), data_GetRefCount(), data_IncRefCount(), data_SetRefCount(), and mcObjectRefData().


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

Documentation generated with Doxygen on Sun Feb 6 17:13:00 2005
Visit MathStudio home page for more info

[ Top ]