File: wx159.htm

package info (click to toggle)
wxwin2-doc 2.01-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,540 kB
  • ctags: 5,968
  • sloc: cpp: 15,157; makefile: 434; sh: 6
file content (46 lines) | stat: -rw-r--r-- 1,741 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<HTML>
<head><title>wxObjectRefData</title></head>

<BODY BGCOLOR=#FFFFFF>
<A NAME="wxobjectrefdata"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx158.htm#wxobject"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx160.htm#wxoutputstream"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>

<H2>wxObjectRefData</H2>
<P>
This class is used to store reference-counted data. Derive classes from this to
store your own data. When retrieving information from a <B>wxObject</B>'s reference data,
you will need to cast to your own derived class.<P>
<B><FONT COLOR="#FF0000">Friends</FONT></B><P>
<A HREF="wx158.htm#wxobject">wxObject</A><P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx158.htm#wxobject">wxObject</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#topic618">wxObjectRefData::m_count</A><BR>
<A HREF="#wxobjectrefdataconstr">wxObjectRefData::wxObjectRefData</A><BR>
<A HREF="#topic619">wxObjectRefData::~wxObjectRefData</A><BR>
<P>

<HR>
<A NAME="topic618"></A>
<H3>wxObjectRefData::m_count</H3>
<P>
int m_count<P>
Reference count. When this goes to zero during a <A HREF="wx158.htm#wxobjectunref">wxObject::UnRef</A>, an object
can delete the <B>wxObjectRefData</B> object.<P>

<HR>
<A NAME="wxobjectrefdataconstr"></A>
<H3>wxObjectRefData::wxObjectRefData</H3>
<P>
<B></B> <B>wxObjectRefData</B>()<P>
Default constructor. Initialises the <B>m_count</B> member to 1.<P>

<HR>
<A NAME="topic619"></A>
<H3>wxObjectRefData::~wxObjectRefData</H3>
<P>
<B></B> <B>wxObjectRefData</B>()<P>
Destructor.<P>


</BODY></HTML>