Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ion::base::Shareable Class Reference

Shareable is an abstract base class for any object that can be shared via the SharedPtr class. More...

#include "shareable.h"

Inheritance diagram for ion::base::Shareable:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

ion::base::Shareable::Shareable ( )
inlineprotected

Definition at line 37 of file shareable.h.

virtual ion::base::Shareable::~Shareable ( )
inlineprotectedvirtual

The destructor is protected because all instances should be managed through SharedPtr.

Definition at line 41 of file shareable.h.

References DCHECK_EQ.

Member Function Documentation

int ion::base::Shareable::GetRefCount ( ) const
inline

GetRefCount() is part of the interface necessary for SharedPtr.

Definition at line 34 of file shareable.h.

Referenced by ion::base::Notifier::RemoveReceiver().

Friends And Related Function Documentation

template<typename T >
friend class SharedPtr
friend

Allow SharedPtr to modify the reference count.

Definition at line 62 of file shareable.h.

friend class WeakReferent
friend

Definition at line 63 of file shareable.h.


The documentation for this class was generated from the following file: