InspIRCd  4.0
typedefs.h
1 /*
2  * InspIRCd -- Internet Relay Chat Daemon
3  *
4  * Copyright (C) 2013, 2016, 2018, 2020 Sadie Powell <[email protected]>
5  * Copyright (C) 2012-2014, 2016, 2018 Attila Molnar <[email protected]>
6  * Copyright (C) 2012 Robby <[email protected]>
7  * Copyright (C) 2009-2010 Daniel De Graaf <[email protected]>
8  * Copyright (C) 2007 Dennis Friis <[email protected]rcd.org>
9  * Copyright (C) 2005, 2010 Craig Edwards <[email protected]>
10  *
11  * This file is part of InspIRCd. InspIRCd is free software: you can
12  * redistribute it and/or modify it under the terms of the GNU General Public
13  * License as published by the Free Software Foundation, version 2.
14  *
15  * This program is distributed in the hope that it will be useful, but WITHOUT
16  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
18  * details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  */
23 
24 
25 #pragma once
26 
27 class BanCacheManager;
28 class BufferedSocket;
29 class Channel;
30 class Command;
31 class ConfigStatus;
32 class ConfigTag;
33 class Extensible;
34 class FakeUser;
35 class InspIRCd;
36 class Invitation;
37 class IOHookProvider;
38 class LocalUser;
39 class Membership;
40 class Module;
41 class OperInfo;
42 class ProtocolServer;
43 class RemoteUser;
44 class Server;
45 class ServerConfig;
46 class ServerLimits;
47 class Thread;
48 class User;
49 class XLine;
50 class XLineManager;
51 class XLineFactory;
52 struct ConnectClass;
53 class ModResult;
54 
55 namespace ClientProtocol
56 {
57  class Event;
58  class EventProvider;
59  class Message;
60  class MessageTagEvent;
61  class MessageTagProvider;
62  class Serializer;
63 
64  typedef std::vector<Message*> MessageList;
65  typedef std::vector<std::string> ParamList;
66  typedef std::string SerializedMessage;
67 
69  {
70  MessageTagProvider* tagprov;
71  std::string value;
72  void* provdata;
73 
74  MessageTagData(MessageTagProvider* prov, const std::string& val, void* data = NULL);
75  };
76 
82 }
83 
84 #include "hashcomp.h"
85 #include "base.h"
86 
87 typedef std::unordered_map<std::string, User*, irc::insensitive, irc::StrHashComp> user_hash;
88 
91 typedef std::vector<Membership*> IncludeChanList;
92 
95 typedef std::vector<std::string> file_cache;
96 
98 typedef std::map<std::string, file_cache> ConfigFileCache;
99 
101 typedef std::set<User*> CUList;
102 
105 typedef std::pair<std::string, std::string> IdentHostPair;
106 
109 typedef std::map<std::string, XLineFactory*> XLineFactMap;
110 
113 typedef std::map<std::string, XLine*, irc::insensitive_swo> XLineLookup;
114 
117 typedef std::map<std::string, XLineLookup > XLineContainer;
118 
121 typedef XLineContainer::iterator ContainerIter;
122 
125 typedef XLineLookup::iterator LookupIter;
126 
127 namespace Stats
128 {
129  class Context;
130 }
Definition: bancache.h:56
Definition: inspsocket.h:375
Definition: channels.h:41
Definition: clientprotocol.h:537
Definition: ctables.h:208
Definition: configreader.h:537
Definition: configreader.h:38
Definition: extensible.h:132
Definition: users.h:841
Definition: iohook.h:28
Definition: inspircd.h:190
Definition: users.h:658
Definition: membership.h:36
Definition: modules.h:72
Definition: modules.h:286
Definition: configreader.h:200
Definition: protocol.h:30
Definition: users.h:832
Definition: configreader.h:239
Definition: server.h:25
Definition: configreader.h:116
Definition: thread.h:25
Definition: users.h:238
Definition: xline.h:341
Definition: xline.h:36
Definition: xline.h:380
Definition: flat_map.h:316
Definition: typedefs.h:69
Definition: users.h:71