#include <rwsf/core/BodyBase.h>
rwsf::BodyBase is the base class for body classes. Each time an instance of rwsf::HandleBase is bound to an 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.
BodyBase(void);
Default constructor. Constructs a default body instance. Reference count starts at 0.
BodyBase(StaticCtor);
Constructs a static body instance. Reference count starts at one, to prevent deletion by handles.
BodyBase(const BodyBase& second);
Copy constructor.
virtual ~BodyBase(void);
Virtual destructor. Throws no exceptions.
BodyBase& operator=(const BodyBase& second);
Assignment operator. Throws no exceptions.
©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.