Reference-counted item stored in a Manager.
More...
#include <manager.h>
Reference-counted item stored in a Manager.
Tracks its own name and reference count; the owning Manager deletes the item when its count drops to zero.
Definition at line 14 of file manager.h.
◆ ManagedItem()
| ManagedItem::ManagedItem |
( |
std::string |
n | ) |
|
|
inline |
◆ ~ManagedItem()
| virtual ManagedItem::~ManagedItem |
( |
| ) |
|
|
inlinevirtual |
◆ addref()
| void ManagedItem::addref |
( |
| ) |
|
|
inline |
◆ delref()
| bool ManagedItem::delref |
( |
| ) |
|
|
inline |
◆ itemName()
| const std::string & ManagedItem::itemName |
( |
| ) |
const |
|
inline |
◆ refCount()
| int ManagedItem::refCount |
( |
| ) |
|
|
inline |
◆ setItemName()
| void ManagedItem::setItemName |
( |
std::string |
name | ) |
|
|
inline |
◆ m_itemName
| std::string ManagedItem::m_itemName |
|
private |
◆ m_refcount
| int ManagedItem::m_refcount |
|
private |
The documentation for this class was generated from the following file: