WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
ManagedItem Class Reference

Reference-counted item stored in a Manager. More...

#include <manager.h>

Inheritance diagram for ManagedItem:
[legend]

Public Member Functions

 ManagedItem (std::string n)
 
virtual ~ManagedItem ()
 
void addref ()
 
bool delref ()
 
void setItemName (std::string name)
 
const std::string & itemName () const
 
int refCount ()
 

Private Attributes

int m_refcount
 
std::string m_itemName
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ManagedItem()

ManagedItem::ManagedItem ( std::string  n)
inline

Definition at line 20 of file manager.h.

◆ ~ManagedItem()

virtual ManagedItem::~ManagedItem ( )
inlinevirtual

Definition at line 24 of file manager.h.

Member Function Documentation

◆ addref()

void ManagedItem::addref ( )
inline

Definition at line 28 of file manager.h.

Here is the caller graph for this function:

◆ delref()

bool ManagedItem::delref ( )
inline

Definition at line 33 of file manager.h.

◆ itemName()

const std::string & ManagedItem::itemName ( ) const
inline

Definition at line 39 of file manager.h.

Here is the caller graph for this function:

◆ refCount()

int ManagedItem::refCount ( )
inline

Definition at line 40 of file manager.h.

◆ setItemName()

void ManagedItem::setItemName ( std::string  name)
inline

Definition at line 38 of file manager.h.

Here is the caller graph for this function:

Member Data Documentation

◆ m_itemName

std::string ManagedItem::m_itemName
private

Definition at line 17 of file manager.h.

◆ m_refcount

int ManagedItem::m_refcount
private

Definition at line 16 of file manager.h.


The documentation for this class was generated from the following file: