![]() |
Rosetta Utilities
2014.16.56682
|
Base class for reference counted polymorphic classes. More...
#include <ReferenceCountMI_.hh>
Public Member Functions | |
| virtual | ~ReferenceCountMI_ () |
| Destructor. More... | |
| Size | ref_count () const |
| Reference count. More... | |
Public Member Functions inherited from utility::pointer::ReferenceCountMI | |
| virtual | ~ReferenceCountMI () |
| Destructor. More... | |
Protected Member Functions | |
| ReferenceCountMI_ () | |
| Default constructor. More... | |
| ReferenceCountMI_ (ReferenceCountMI_ const &) | |
| Copy constructor. More... | |
| ReferenceCountMI_ & | operator= (ReferenceCountMI_ const &) |
| Copy assignment. More... | |
Protected Member Functions inherited from utility::pointer::ReferenceCountMI | |
| ReferenceCountMI () | |
| Default constructor. More... | |
| ReferenceCountMI (ReferenceCountMI const &) | |
| Copy constructor. More... | |
| ReferenceCountMI & | operator= (ReferenceCountMI const &) |
| Copy assignment. More... | |
Private Types | |
| typedef ReferenceCountMI | Super |
Private Member Functions | |
| void | add_ref () const |
| Add a reference: Increment the count. More... | |
| void | remove_ref () const |
| Remove a reference: Decrement the count: Self-destruct if count hits zero. More... | |
Private Attributes | |
| Size | count_ |
| Reference count. More... | |
Static Private Attributes | |
| static Size const | max_count_ = static_cast< ReferenceCountMI_::Size >( -1 ) |
| Max count. More... | |
Friends | |
| template<typename T > | |
| void | owning_ptr_acquire (T *) |
| Add a reference to the object acquired by an owning_ptr. More... | |
| template<typename T > | |
| void | owning_ptr_release (T *) |
| Remove a reference from the object released by an owning_ptr. More... | |
Additional Inherited Members | |
Public Types inherited from utility::pointer::ReferenceCountMI | |
| typedef platform::Size | Size |
| typedef platform::Size | size_type |
Base class for reference counted polymorphic classes.
|
inlineprotected |
Default constructor.
|
inlineprotected |
Copy constructor.
|
inlinevirtual |
Destructor.
References count_.
|
inlineprivatevirtual |
Add a reference: Increment the count.
Implements utility::pointer::ReferenceCountMI.
References count_, and max_count_.
|
inlineprotected |
Copy assignment.
|
inlinevirtual |
|
inlineprivatevirtual |
Remove a reference: Decrement the count: Self-destruct if count hits zero.
Implements utility::pointer::ReferenceCountMI.
References count_.
|
friend |
Add a reference to the object acquired by an owning_ptr.
|
friend |
Remove a reference from the object released by an owning_ptr.
|
mutableprivate |
Reference count.
Referenced by add_ref(), ref_count(), remove_ref(), and ~ReferenceCountMI_().
|
staticprivate |
1.8.7