Mako 7.2.0 API
Loading...
Searching...
No Matches
IRCObject Class Referenceabstract

Base class Interface for all Reference Counted objects. More...

#include <ircobject.h>

Inheritance diagram for IRCObject:

Public Member Functions

virtual void addRef () const =0
 Increases the reference count of the actual object pointed to. This would take place during an assignment or copying.
 
virtual bool decRef () const =0
 Decreases the reference count of the actual object pointed to. When the reference count falls to Zero, it deletes the actual object pointed to.
 
virtual int32 getRefCount () const =0
 Retrieve the current reference count of the actual object pointed to.
 

Protected Member Functions

virtual ~IRCObject ()
 Virtual destructor.
 

Detailed Description

Base class Interface for all Reference Counted objects.

Member Function Documentation

◆ decRef()

virtual bool IRCObject::decRef ( ) const
pure virtual

Decreases the reference count of the actual object pointed to. When the reference count falls to Zero, it deletes the actual object pointed to.

Returns
bool Returns true on success

◆ getRefCount()

virtual int32 IRCObject::getRefCount ( ) const
pure virtual

Retrieve the current reference count of the actual object pointed to.

Returns
int32 The current reference count

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