#include <COWIntrusiveCountableBase.hpp>
Inheritance diagram for BLOCXX_NAMESPACE::COWIntrusiveCountableBase:


Protected Member Functions | |
| COWIntrusiveCountableBase (COWIntrusiveCountableBase const &) | |
| Copy constructor. | |
| COWIntrusiveCountableBase () | |
| Default constructor. | |
| COWIntrusiveCountableBase & | operator= (COWIntrusiveCountableBase const &x) |
| Assignment operator. | |
| virtual | ~COWIntrusiveCountableBase () |
| Destroy this COWIntrusiveCountableBase object. | |
| RefCount | getRefCount () const |
Private Attributes | |
| RefCount | m_usecount |
Friends | |
| void | COWIntrusiveReferenceAddRef (COWIntrusiveCountableBase *p) |
| Increment the reference count for a COWIntrusiveCountableBase object. | |
| void | COWIntrusiveReferenceRelease (COWIntrusiveCountableBase *p) |
| Release a reference on a COWIntrusiveCountableBase. | |
| bool | COWIntrusiveReferenceUnique (COWIntrusiveCountableBase *p) |
| Determine of a COWIntrusiveCountableBase only has one reference. | |
| template<typename T> | |
| T * | COWIntrusiveReferenceClone (T *p) |
| Have a COWIntrusiveCountableBase object create a clone of itself. | |
You MUST derive from this class if you want to pass COWIntrusiveReference objects around for instances of your class. NOTE: If you are using multiple inheritance when you dirive from this class, derive virtually. Example: class Foo : public virtual COWIntrusiveCountableBase, public virtual SomeOtherBaseClass { ... };
Derived classes MUST implement: Derived* clone()
Definition at line 70 of file COWIntrusiveCountableBase.hpp.
|
|
Copy constructor.
Definition at line 79 of file COWIntrusiveCountableBase.hpp. |
|
|
Default constructor.
Definition at line 87 of file COWIntrusiveCountableBase.hpp. |
|
|
Destroy this COWIntrusiveCountableBase object.
Definition at line 43 of file COWIntrusiveCountableBase.cpp. |
|
|
Definition at line 110 of file COWIntrusiveCountableBase.hpp. |
|
|
Assignment operator. This method does NOTHING.
Definition at line 96 of file COWIntrusiveCountableBase.hpp. |
|
|
Increment the reference count for a COWIntrusiveCountableBase object.
Definition at line 122 of file COWIntrusiveCountableBase.hpp. |
|
||||||||||
|
Have a COWIntrusiveCountableBase object create a clone of itself.
Definition at line 157 of file COWIntrusiveCountableBase.hpp. |
|
|
Release a reference on a COWIntrusiveCountableBase. If the reference count is zero after the release, the COWIntrusiveCountableBase object will be deleted.
Definition at line 134 of file COWIntrusiveCountableBase.hpp. |
|
|
Determine of a COWIntrusiveCountableBase only has one reference.
Definition at line 146 of file COWIntrusiveCountableBase.hpp. |
|
|
Definition at line 73 of file COWIntrusiveCountableBase.hpp. |
1.4.4