Anope IRC Services  Version 2.0
Public Member Functions | Private Attributes
Base Class Reference

#include <base.h>

Inheritance diagram for Base:
Inheritance graph
[legend]

Public Member Functions

 Base ()
 
virtual ~Base ()
 
void AddReference (ReferenceBase *r)
 
void DelReference (ReferenceBase *r)
 

Private Attributes

std::set< ReferenceBase * > * references
 

Detailed Description

The base class that most classes in Anope inherit from

Definition at line 17 of file base.h.

Constructor & Destructor Documentation

Base::Base ( )

Definition at line 17 of file base.cpp.

Base::~Base ( )
virtual

Definition at line 21 of file base.cpp.

References references.

Member Function Documentation

void Base::AddReference ( ReferenceBase r)

Adds a reference to this object. Eg, when a Reference is created referring to this object this is called. It is used to cleanup references when this object is destructed.

Definition at line 31 of file base.cpp.

References references.

void Base::DelReference ( ReferenceBase r)

Definition at line 38 of file base.cpp.

References references.

Referenced by Serialize::Reference< BotInfo >::operator=().

Field Documentation

std::set<ReferenceBase *>* Base::references
private

Definition at line 20 of file base.h.

Referenced by AddReference(), DelReference(), and ~Base().


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