#include <GRRefCountedObj.h>
grRefCountedObj is the base class for various objects that require reference counting to control their lifetimes. Objects of this kind should typically be created on the heap using new, rather than on the stack.
- See Also
- IPlatformOffscreen
- IFontGroup
- IFontGroupId
- IFontInstance
- IHypenatedWord
- IkfStyle
- IPMFont
| grRefCountedObj::grRefCountedObj | ( | | ) | |
| inline |
Simple constructor. Creates object with ref count of 1.
| virtual grRefCountedObj::~grRefCountedObj | ( | | ) | |
| pure virtual |
| virtual void grRefCountedObj::AddRef | ( | | ) | const |
| virtual |
Increases ref count by 1.
| virtual void grRefCountedObj::Release | ( | | ) | const |
| virtual |
Decreases ref count by 1. If ref count becomes zero, deletes the object.