Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWBodyBase


RWBodyBase RWTCountingBody<RWMutexLock>

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Member Functions

Package

Smart Pointer

Header File

#include <rw/pointer/RWBodyBase.h>

Description

Base class for body classes. Each time an RWHandleBase instance is bound to an instance of this class, the handle instance increments the reference count inherited by the body instance. Each time a handle instance detaches from an instance of this class, the handle decrements the reference count. If the reference count reaches zero, the handle deletes the body instance. The reference counting relieves clients of the burden of having to keep track of when it is safe to delete a body instance.

Example

See HandlebodyEx1.cpp and HandlebodyEx2.cpp, located in the Examples directory.

Protected Constructors

RWBodyBase(void);
RWBodyBase(RWStaticCtor);
RWBodyBase(const RWBodyBase& second);

Protected Destructor

virtual
~RWBodyBase(void);

Protected Member Operator

RWBodyBase&
operator=(const RWBodyBase& second);


Previous fileTop of DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.