InspIRCd  3.0
typedefs.h
1 /*
2  * InspIRCd -- Internet Relay Chat Daemon
3  *
4  * Copyright (C) 2009 Daniel De Graaf <[email protected]>
5  * Copyright (C) 2005, 2008 Craig Edwards <[email protected]>
6  * Copyright (C) 2007 Dennis Friis <[email protected]>
7  *
8  * This file is part of InspIRCd. InspIRCd is free software: you can
9  * redistribute it and/or modify it under the terms of the GNU General Public
10  * License as published by the Free Software Foundation, version 2.
11  *
12  * This program is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
15  * details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 
22 #pragma once
23 
24 class BanCacheManager;
25 class BufferedSocket;
26 class Channel;
27 class Command;
28 class ConfigStatus;
29 class ConfigTag;
30 class Extensible;
31 class FakeUser;
32 class InspIRCd;
33 class Invitation;
34 class IOHookProvider;
35 class LocalUser;
36 class Membership;
37 class Module;
38 class OperInfo;
39 class ProtocolServer;
40 class RemoteUser;
41 class Server;
42 class ServerConfig;
43 class ServerLimits;
44 class Thread;
45 class User;
46 class XLine;
47 class XLineManager;
48 class XLineFactory;
49 struct ConnectClass;
50 struct ModResult;
51 
52 #include "hashcomp.h"
53 #include "base.h"
54 
55 typedef TR1NS::unordered_map<std::string, User*, irc::insensitive, irc::StrHashComp> user_hash;
56 typedef TR1NS::unordered_map<std::string, Channel*, irc::insensitive, irc::StrHashComp> chan_hash;
57 
60 typedef std::vector<Membership*> IncludeChanList;
61 
64 typedef std::vector<std::string> file_cache;
65 
69 
72 typedef std::multimap<std::string, reference<ConfigTag>, irc::insensitive_swo> ConfigDataHash;
73 
75 typedef ConfigDataHash::const_iterator ConfigIter;
77 typedef std::pair<ConfigIter,ConfigIter> ConfigTagList;
78 
80 typedef std::map<std::string, file_cache> ConfigFileCache;
81 
83 typedef std::set<User*> CUList;
84 
87 typedef std::vector<std::string> string_list;
88 
91 typedef std::pair<std::string, std::string> IdentHostPair;
92 
95 typedef std::map<std::string, XLineFactory*> XLineFactMap;
96 
99 typedef std::map<std::string, XLine*, irc::insensitive_swo> XLineLookup;
100 
103 typedef std::map<std::string, XLineLookup > XLineContainer;
104 
107 typedef XLineContainer::iterator ContainerIter;
108 
111 typedef XLineLookup::iterator LookupIter;
112 
113 namespace Stats
114 {
115  class Context;
116 }
Definition: iohook.h:24
Definition: server.h:22
Definition: configreader.h:36
Definition: inspircd.h:179
Definition: hashcomp.h:99
Definition: extensible.h:90
Definition: configreader.h:165
Definition: users.h:224
Definition: typedefs.h:113
Definition: users.h:66
Definition: ctables.h:204
Definition: users.h:742
Definition: threadengine.h:33
Definition: membership.h:32
Definition: users.h:886
Definition: bancache.h:50
Definition: configreader.h:94
Definition: xline.h:359
Definition: modules.h:245
Definition: modules.h:72
Definition: users.h:894
Definition: xline.h:398
Definition: xline.h:32
Definition: configreader.h:525
Definition: inspsocket.h:331
Definition: protocol.h:29
Definition: configreader.h:197
Definition: channels.h:37