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
}
17 typedef T element_type
21 \latexignore{\rtfignore{\wxheading{Members
}}}
24 \membersection{wxSharedPtr<T>::wxSharedPtr<T>
}\label{wxsharedptrwxsharedptr
}
26 \func{wxEXPLICIT
}{wxSharedPtr<T>
}{\param{T*
}{ptr = NULL
}}
28 \func{}{wxSharedPtr<T>
}{\param{const wxSharedPtr<T>\&
}{tocopy
}}
32 \membersection{wxSharedPtr<T>::
\destruct{wxSharedPtr<T>
}}\label{wxsharedptrdtor
}
34 \func{}{\destruct{wxSharedPtr<T>
}}{\void}
38 \membersection{wxSharedPtr<T>::get
}\label{wxsharedptrget
}
40 \constfunc{T*
}{get
}{\void}
42 Returns pointer to its object or NULL.
44 \membersection{wxSharedPtr<T>::operator*
}\label{wxsharedptroperatorptrt
}
46 \constfunc{T\&
}{operator*
}{\void}
48 Returns pointer to its object or NULL.
50 \membersection{wxSharedPtr<T>::operator->
}\label{wxsharedptroperatorderef
}
52 \constfunc{T*
}{operator->
}{\void}
54 Returns pointer to its object or NULL.
56 \membersection{wxSharedPtr<T>::operator=
}\label{wxsharedptroperatorassign
}
58 \func{wxSharedPtr<T>\& operator
}{operator=
}{\param{const wxSharedPtr<T>\&
}{tocopy
}}
62 \membersection{wxSharedPtr<T>::unique
}\label{wxsharedptrunique
}
64 \constfunc{bool
}{unique
}{\void}
66 Returns true if this is the only pointer pointing to its object.
68 \membersection{wxSharedPtr<T>::use
\_count}\label{wxsharedptruse
\_count}
70 \constfunc{long
}{use
\_count}{\void}
72 Returns the number of pointers pointing to its object.