/* * * (C) 2003-2012 Anope Team * Contact us at team@anope.org * * Please read COPYING and README for further details. * */ #include "services.h" #include "anope.h" #include "service.h" std::map > Service::Services; std::map > Service::Aliases; Base::Base() { } Base::~Base() { for (std::set::iterator it = this->references.begin(), it_end = this->references.end(); it != it_end; ++it) { (*it)->Invalidate(); } } void Base::AddReference(ReferenceBase *r) { this->references.insert(r); } void Base::DelReference(ReferenceBase *r) { this->references.erase(r); }