mirror of
https://github.com/anope/anope.git
synced 2026-06-25 23:46:37 +02:00
25 lines
393 B
C++
25 lines
393 B
C++
#include "services.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);
|
|
}
|
|
|