InspIRCd  2.0
 All Classes Namespaces Functions Variables Typedefs Enumerations
typedefs.h
1 /*
2  * InspIRCd -- Internet Relay Chat Daemon
3  *
4  * Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org>
5  * Copyright (C) 2005, 2008 Craig Edwards <craigedwards@brainbox.cc>
6  * Copyright (C) 2007 Dennis Friis <peavey@inspircd.org>
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 #ifndef TYPEDEFS_H
23 #define TYPEDEFS_H
24 
25 class BanCacheManager;
26 class BanItem;
27 class BufferedSocket;
28 class Channel;
29 class Command;
30 class ConfigReader;
31 class ConfigTag;
32 class DNSHeader;
33 class DNSRequest;
34 class Extensible;
35 class FakeUser;
36 class InspIRCd;
37 class Invitation;
38 class InviteBase;
39 class LocalUser;
40 class Membership;
41 class Module;
42 class OperInfo;
43 class RemoteUser;
44 class ServerConfig;
45 class ServerLimits;
46 class Thread;
47 class User;
48 class UserResolver;
49 class XLine;
50 class XLineManager;
51 class XLineFactory;
52 struct ConnectClass;
53 struct ModResult;
54 struct ResourceRecord;
55 
56 #include "hashcomp.h"
57 #include "base.h"
58 
59 #ifdef HASHMAP_DEPRECATED
60  typedef nspace::hash_map<std::string, User*, nspace::insensitive, irc::StrHashComp> user_hash;
61  typedef nspace::hash_map<std::string, Channel*, nspace::insensitive, irc::StrHashComp> chan_hash;
62 #else
63  typedef nspace::hash_map<std::string, User*, nspace::hash<std::string>, irc::StrHashComp> user_hash;
64  typedef nspace::hash_map<std::string, Channel*, nspace::hash<std::string>, irc::StrHashComp> chan_hash;
65 #endif
66 
69 typedef std::list<LocalUser*> LocalUserList;
70 
72 typedef std::vector<std::pair<std::string, std::string> > FailedPortList;
73 
76 typedef std::vector<Invitation*> InviteList;
77 
80 typedef std::vector<reference<ConnectClass> > ClassVector;
81 
84 typedef std::set<Channel*> UserChanList;
85 
88 typedef UserChanList::iterator UCListIter;
89 
92 typedef std::vector<BanItem> BanList;
93 
96 typedef std::map<char,std::string> CustomModeList;
97 
100 typedef std::vector<std::string> file_cache;
101 
104 typedef std::pair<std::string, std::string> KeyVal;
105 
108 typedef std::multimap<std::string, reference<ConfigTag> > ConfigDataHash;
109 
111 typedef ConfigDataHash::const_iterator ConfigIter;
113 typedef std::pair<ConfigIter,ConfigIter> ConfigTagList;
114 
116 typedef std::map<std::string, reference<OperInfo> > OperIndex;
117 
119 typedef std::map<std::string, file_cache> ConfigFileCache;
120 
123 typedef nspace::hash_map<std::string,Command*> Commandtable;
124 
126 typedef std::map<User*, Membership*> UserMembList;
128 typedef UserMembList::iterator UserMembIter;
130 typedef UserMembList::const_iterator UserMembCIter;
131 
133 typedef std::set<User*> CUList;
134 
137 typedef std::vector<std::string> string_list;
138 
141 typedef std::pair<std::string, std::string> IdentHostPair;
142 
145 typedef std::map<std::string, XLineFactory*> XLineFactMap;
146 
149 typedef std::map<irc::string, XLine *> XLineLookup;
150 
153 typedef std::map<std::string, XLineLookup > XLineContainer;
154 
157 typedef XLineContainer::iterator ContainerIter;
158 
161 typedef XLineLookup::iterator LookupIter;
162 
163 
164 #endif
165 
Definition: channels.h:51
Definition: configreader.h:37
Definition: inspircd.h:280
Definition: dns.cpp:78
Definition: extensible.h:76
Definition: configreader.h:149
Definition: users.h:230
Definition: users.h:81
Definition: ctables.h:102
Definition: users.h:742
Definition: dns.cpp:101
Definition: threadengine.h:36
Definition: membership.h:23
Definition: dns.cpp:88
Definition: users.h:890
Definition: bancache.h:72
Definition: configreader.h:75
Definition: membership.h:49
Definition: xline.h:370
Definition: modules.h:350
Definition: modules.h:75
Definition: users.h:899
Definition: modules.h:1318
Definition: hashcomp.h:106
Definition: xline.h:409
Definition: xline.h:33
Definition: membership.h:38
Definition: inspsocket.h:169
Definition: configreader.h:185
Definition: users.h:936
Definition: channels.h:59