65 #include "./../KDefines.h"
87 if( m_pRef )++( *m_piCount );
100 if( *m_piCount == 0 )
128 m_piCount( p.m_piCount )
167 if( m_piCount )
return *m_piCount;
177 if( m_pRef == p.m_pRef )
return *
this;
180 m_piCount = p.m_piCount;
190 template<
class Other>
195 m_piCount = p.m_piCount;
207 if( m_pRef == p )
return *
this;
221 template<
class Other>
239 return m_pRef == p.m_pRef;
249 template<
class Other>
252 return m_pRef == p.m_pRef;
289 template<
class Other>
302 return m_pRef != p.m_pRef;
310 template<
class Other>
313 return m_pRef != p.m_pRef;
KBOOL operator!=(const Type *p) const
Description: Comparison does not equals. Compares the referenced pointer to an unsafe pointer...
Definition: KRef_Ptr.h:278
Type * GetPtr() const
Definition: KRef_Ptr.h:155
KRef_Ptr< Type > & operator=(const KRef_Ptr< Other > &p)
Description: Assignment of an other KRef_Ptr of a different type.
Definition: KRef_Ptr.h:191
RefCounter GetCount() const
Definition: KRef_Ptr.h:165
unsigned short int KUINT16
Definition: KDefines.h:101
KRef_Ptr< Type > & operator=(Type *p)
Description: Assignment of a new reference.
Definition: KRef_Ptr.h:205
KRef_Ptr< Type > & operator=(Other *p)
Description: Assignment of a new reference of a different type.
Definition: KRef_Ptr.h:222
virtual ~KRef_Ptr()
Definition: KRef_Ptr.h:133
KRef_Ptr< Type > & operator=(const KRef_Ptr< Type > &p)
Description: Assignment of an other KRef_Ptr.
Definition: KRef_Ptr.h:175
bool KBOOL
Definition: KDefines.h:119
Type & operator*() const
Description: When referencing the KRef_Ptr return our referenced object.
Definition: KRef_Ptr.h:259
KDIS::KUINT16 RefCounter
Definition: KRef_Ptr.h:70
KBOOL operator==(const KRef_Ptr< Type > &p) const
Description: Comparison equals. Checks if both references are the same.
Definition: KRef_Ptr.h:237
Type * operator->() const
Description: Returns the referenced pointer.
Definition: KRef_Ptr.h:268
KRef_Ptr(Type *p)
Definition: KRef_Ptr.h:118
KBOOL operator==(const KRef_Ptr< Other > &p) const
Definition: KRef_Ptr.h:250
KRef_Ptr()
Definition: KRef_Ptr.h:112
void Clear()
Description: Removes the current reference held.
Definition: KRef_Ptr.h:142
Definition: KRef_Ptr.h:73
KRef_Ptr(const KRef_Ptr< Type > &p)
Definition: KRef_Ptr.h:126