]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - src/cull_list.cpp
Create StreamSocket for IO hooking implementation
[user/henk/code/inspircd.git] / src / cull_list.cpp
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
6  * See: http://wiki.inspircd.org/Credits
7  *
8  * This program is free but copyrighted software; see
9  *            the file COPYING for details.
10  *
11  * ---------------------------------------------------
12  */
13
14 /* $Core */
15
16 #include "inspircd.h"
17 #include "cull_list.h"
18
19 void CullList::Apply()
20 {
21         for(std::set<classbase*>::iterator i = list.begin(); i != list.end(); i++)
22         {
23                 classbase* c = *i;
24                 c->cull();
25                 delete c;
26         }
27         list.clear();
28 }
29