Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

Shareable< D > Class Template Reference

#include <VirtualBoxBase.h>

List of all members.


Detailed Description

template<class D>
class Shareable< D >

Simple template that manages data structure allocation/deallocation and supports data pointer sharing (the instance that shares the pointer is not responsible for memory deallocation as opposed to the instance that owns it).

Todo:
(dmik) remove after we switch to VirtualBoxBaseNEXT completely
Simple template that manages data structure allocation/deallocation and supports data pointer sharing (the instance that shares the pointer is not responsible for memory deallocation as opposed to the instance that owns it).

Definition at line 558 of file VirtualBoxBase.h.


Public Member Functions

void allocate ()
void allocate ()
void attach (Shareable &data)
void attach (D *data)
void attach (Shareable &data)
void attach (D *data)
void attachCopy (const Shareable &data)
void attachCopy (const D *data)
void attachCopy (const Shareable &data)
void attachCopy (const D *data)
D * data () const
D * data () const
virtual D * detach ()
virtual D * detach ()
virtual void free ()
virtual void free ()
bool isNull () const
bool isNull () const
bool isShared () const
bool isShared () const
bool operator! () const
bool operator! () const
D * operator-> () const
D * operator-> () const
void share (const Shareable &data)
void share (D *data)
void share (const Shareable &data)
void share (D *data)

Protected Attributes

D * mData
bool mIsShared

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

Generated by  Doxygen 1.6.0   Back to index