1 \section{\class{wxSharedPtr<T>
}}\label{wxsharedptr
}
3 A smart pointer with non-intrusive reference counting.
5 \wxheading{Derived from
}
9 \wxheading{Include files
}
13 \wxheading{Data structures
}
15 {\small \begin{verbatim
}
16 typedef T element
\_type
19 \latexignore{\rtfignore{\wxheading{Members
}}}
22 \membersection{wxSharedPtr<T>::wxSharedPtr<T>
}\label{wxsharedptrwxsharedptr
}
24 \func{wxEXPLICIT
}{wxSharedPtr<T>
}{\param{T*
}{ptr = NULL
}}
26 \func{}{wxSharedPtr<T>
}{\param{const wxSharedPtr<T>\&
}{tocopy
}}
30 \membersection{wxSharedPtr<T>::
\destruct{wxSharedPtr<T>
}}\label{wxsharedptrdtor
}
32 \func{}{\destruct{wxSharedPtr<T>
}}{\void}
36 \membersection{wxSharedPtr<T>::get
}\label{wxsharedptrget
}
38 \constfunc{T*
}{get
}{\void}
40 Returns pointer to its object or NULL.
42 \membersection{wxSharedPtr<T>::operator*
}\label{wxsharedptroperatorptrt
}
44 \constfunc{T\&
}{operator*
}{\void}
46 Returns pointer to its object or NULL.
48 \membersection{wxSharedPtr<T>::operator->
}\label{wxsharedptroperatorderef
}
50 \constfunc{T*
}{operator->
}{\void}
52 Returns pointer to its object or NULL.
54 \membersection{wxSharedPtr<T>::operator=
}\label{wxsharedptroperatorassign
}
56 \func{wxSharedPtr<T>\& operator
}{operator=
}{\param{const wxSharedPtr<T>\&
}{tocopy
}}
60 \membersection{wxSharedPtr<T>::unique
}\label{wxsharedptrunique
}
62 \constfunc{bool
}{unique
}{\void}
64 Returns true if this is the only pointer pointing to its object.
66 \membersection{wxSharedPtr<T>::use
\_count}\label{wxsharedptruse
\_count}
68 \constfunc{long
}{use
\_count}{\void}
70 Returns the number of pointers pointing to its object.