Ion
|
Shareable is an abstract base class for any object that can be shared via the SharedPtr class. More...
#include "shareable.h"
Public Member Functions | |
int | GetRefCount () const |
GetRefCount() is part of the interface necessary for SharedPtr. More... | |
Protected Member Functions | |
Shareable () | |
virtual | ~Shareable () |
The destructor is protected because all instances should be managed through SharedPtr. More... | |
Friends | |
template<typename T > | |
class | SharedPtr |
Allow SharedPtr to modify the reference count. More... | |
class | WeakReferent |
Shareable is an abstract base class for any object that can be shared via the SharedPtr class.
It supports the reference counting interface required by SharedPtr.
Definition at line 31 of file shareable.h.
|
inlineprotected |
Definition at line 37 of file shareable.h.
|
inlineprotectedvirtual |
The destructor is protected because all instances should be managed through SharedPtr.
Definition at line 41 of file shareable.h.
References DCHECK_EQ.
|
inline |
GetRefCount() is part of the interface necessary for SharedPtr.
Definition at line 34 of file shareable.h.
Referenced by ion::base::Notifier::RemoveReceiver().
|
friend |
Allow SharedPtr to modify the reference count.
Definition at line 62 of file shareable.h.
|
friend |
Definition at line 63 of file shareable.h.