![]() ![]() ![]() ![]() wxobjectrefdatathis class is used to store reference-counted data. derive classes from this to store your own data. when retrieving information from a wxobject's reference data, you will need to cast to your own derived class. friends see also members
wxobjectrefdata::wxobjectrefdata
wxobjectrefdata::wxobjectrefdatawxobjectrefdata() default constructor. initialises the m_count member to 1.
wxobjectrefdata::~wxobjectrefdatawxobjectrefdata() destructor.
wxobjectrefdata::getrefcountint getrefcount() const returns the reference count associated with this shared data. when this goes to zero during a wxobject::unref, an object can delete this wxobjectrefdata object.
|