1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 05:36:38 +02:00
Files
anope/src/base.cpp
T
Adam ada65a3baf Added a classbase for the major classes, makes dynamic_reference invalidation really work.
This also cleans up a bit of the code in the modestacker.
2010-08-22 00:34:02 -04:00

26 lines
414 B
C++

#include "services.h"
#include "modules.h"
Base::Base()
{
}
Base::~Base()
{
for (std::set<dynamic_reference_base *>::iterator it = this->References.begin(), it_end = this->References.end(); it != it_end; ++it)
{
(*it)->Invalidate();
}
}
void Base::AddReference(dynamic_reference_base *r)
{
this->References.insert(r);
}
void Base::DelReference(dynamic_reference_base *r)
{
this->References.erase(r);
}