47 #ifndef BLOCXX_COW_INTRUSIVE_COUNTABLE_BASE_HPP_INCLUDE_GUARD_ 48 #define BLOCXX_COW_INTRUSIVE_COUNTABLE_BASE_HPP_INCLUDE_GUARD_ 50 #include "blocxx/BLOCXX_config.h" 72 class COWIntrusiveCountableBase;
162 template <
typename T>
166 template <
typename T>
172 if (p->m_usecount.decAndTest())
void COWIntrusiveReferenceAddRef(COWIntrusiveCountableBase *p)
T * COWIntrusiveReferenceClone(T *p)
COWIntrusiveCountableBase(COWIntrusiveCountableBase const &)
Copy constructor.
RefCount getRefCount() const
COWIntrusiveCountableBase()
Default constructor.
bool COWIntrusiveReferenceUnique(COWIntrusiveCountableBase *p)
void COWIntrusiveReferenceRelease(COWIntrusiveCountableBase *p)
COWIntrusiveCountableBase & operator=(COWIntrusiveCountableBase const &x)
Assignment operator.