| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
ReferenceCounter Class Reference#include <ReferenceCounter.h>
Inheritance diagram for ReferenceCounter: ![]() Detailed DescriptionPerforms simple reference counting, will delete the object when removing the last reference.Remember to call SetAutoDelete(false) if you instantiate a subclass on the stack instead of the heap -- don't want to try to free memory on the stack if/when last reference is removed! (The stack limits the allocation of the behavior to the current scope, so reference counting is moot.)
Definition at line 16 of file ReferenceCounter.h.
Member Function Documentation
returns the number of references
Definition at line 48 of file ReferenceCounter.h.
subtracts one from references AND DELETES the object IF ZERO (and RC_autodelete is set)
Definition at line 35 of file ReferenceCounter.h. Referenced by BehaviorSwitchControl< B, Al >::behaviorStopped(), BehaviorSwitchControl< B, Al >::BehaviorSwitchControl(), BehaviorBase::DoStop(), Transition::fire(), RandomTrans::fire(), ToggleControl::setRadioGroup(), BehaviorActivatorControl::~BehaviorActivatorControl(), BehaviorSwitchControl< B, Al >::~BehaviorSwitchControl(), and BehaviorSwitchControlBase::~BehaviorSwitchControlBase().
The documentation for this class was generated from the following file: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tekkotsu v3.0 |
Generated Fri May 11 20:08:38 2007 by Doxygen 1.4.7 |