Main Page   Namespace List   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

RazorBack::Refstorage_::Storage_ Struct Template Reference

Storage_: this nested class holds one copy of the actual data object plus a reference count. More...

List of all members.

Public Methods

 Storage_ ()
 Default ctor, inits to empty.

 Storage_ (const T_ *Dptr)
 Init with an already available data object. More...

 Storage_ (const Storage_ &S)
 Copy ctor, implements deep copy.

 ~Storage_ ()
 destructor: deletes stored object, too.


Public Attributes

T_* Dataptr
int Refcount


Detailed Description

template<class T_> struct RazorBack::Refstorage_::Storage_

Storage_: this nested class holds one copy of the actual data object plus a reference count.

Implements deep and shallow copy

Definition at line 41 of file Refstorage.hh.


Constructor & Destructor Documentation

RazorBack::Refstorage_::Storage_::Storage_ ( ) [inline]
 

Default ctor, inits to empty.

Definition at line 48 of file Refstorage.hh.

RazorBack::Refstorage_::Storage_::Storage_ ( const T_ * Dptr ) [inline, explicit]
 

Init with an already available data object.

Ideally, this data object has to be allocated dynamically like 'Storage_(new T_(params...))' and ownership is taken by Refstorage_<T_>::Storage_ so that de-allocation will be performed by it.

Definition at line 57 of file Refstorage.hh.

RazorBack::Refstorage_::Storage_::Storage_ ( const Storage_ & S ) [inline]
 

Copy ctor, implements deep copy.

Definition at line 60 of file Refstorage.hh.

RazorBack::Refstorage_::Storage_::~Storage_ ( ) [inline]
 

destructor: deletes stored object, too.

Definition at line 65 of file Refstorage.hh.


Member Data Documentation

T_* RazorBack::Refstorage_::Storage_::Dataptr
 

Definition at line 44 of file Refstorage.hh.

int RazorBack::Refstorage_::Storage_::Refcount
 

Definition at line 45 of file Refstorage.hh.


The documentation for this struct was generated from the following file:
Generated at Wed Aug 21 09:33:41 2002 for The Razorback C++ Library: Miscellaneous by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001