Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Hydra Core Library Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

rwsf::HandleBase

Group:  General

Local Index

Members

Header File

#include <rwsf/core/HandleBase.h>

Description

rwsf::HandleBase is the base class for handle Classes. Each time an instance of this class is bound to an instance of rwsf::BodyBase class, it increments the reference count maintained by that body. Each time an instance of this class detaches from a body instance, it decrements the body's reference count, until the last handle detaches, reaching zero, whereupon it deletes the body instance.

The reference counting relieves clients of the burden of keeping track of when it is safe to delete a body instance.

When a handle is copy-constructed, the new handle attaches to the same body as the original. When one handle is assigned to another handle, the handle on the left side detaches from its current body and attaches to the body pointed to by the handle on the right side.

Public Member Functions

bool
isValid(void) const;

Public Operators

bool 
operator==(const HandleBase& second) const;
bool
operator!=(const HandleBase& second) const;

Protected Constructors

HandleBase(void);
HandleBase(StaticCtor);
HandleBase(BodyBase* body);
HandleBase(const HandleBase& second);

Protected Destructor

virtual 
~HandleBase(void);

Protected Operators

BodyBase&
body(void) const;
HandleBase&
operator=(const HandleBase& second);


Previous fileTop of DocumentContentsIndex pageNext file

©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks and HydraSDO is a trademark of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.