52 #if !defined _MSC_VER // public -> protected changes mangled names there
62 template <
class reference_type>
67 reference_type * m_pBody;
91 : m_pBody (handle.m_pBody)
110 SAL_CALL
set (reference_type * pBody)
114 reference_type *
const pOld = m_pBody;
128 return set( handle.m_pBody );
150 reference_type *
const pOld = m_pBody;
162 inline reference_type * SAL_CALL
get()
const
172 OSL_PRECOND(m_pBody,
"Reference::operator->() : null body");
181 OSL_PRECOND(m_pBody,
"Reference::operator*() : null body");
190 return (m_pBody != 0);
198 return (m_pBody == pBody);
207 return (m_pBody == handle.m_pBody);
216 return (m_pBody != handle.m_pBody);
223 SAL_CALL operator< (const Reference<reference_type> & handle)
const
225 return (m_pBody < handle.m_pBody);
234 return (m_pBody > handle.m_pBody);
241 template <
typename T>
242 inline T * get_pointer( Reference<T>
const& r )