InspIRCd  3.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]g>
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 struct 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 TR1NS::unordered_map<std::string, User*, irc::insensitive, irc::StrHashComp> user_hash;
88 typedef TR1NS::unordered_map<std::string, Channel*, irc::insensitive, irc::StrHashComp> chan_hash;
89 
92 typedef std::vector<Membership*> IncludeChanList;
93 
96 typedef std::vector<std::string> file_cache;
97 
101 
104 typedef std::multimap<std::string, reference<ConfigTag>, irc::insensitive_swo> ConfigDataHash;
105 
107 typedef ConfigDataHash::const_iterator ConfigIter;
109 typedef std::pair<ConfigIter,ConfigIter> ConfigTagList;
110 
112 typedef std::map<std::string, file_cache> ConfigFileCache;
113 
115 typedef std::set<User*> CUList;
116 
119 typedef std::pair<std::string, std::string> IdentHostPair;
120 
123 typedef std::map<std::string, XLineFactory*> XLineFactMap;
124 
127 typedef std::map<std::string, XLine*, irc::insensitive_swo> XLineLookup;
128 
131 typedef std::map<std::string, XLineLookup > XLineContainer;
132 
135 typedef XLineContainer::iterator ContainerIter;
136 
139 typedef XLineLookup::iterator LookupIter;
140 
141 namespace Stats
142 {
143  class Context;
144 }
OperInfo
Definition: configreader.h:179
Extensible
Definition: extensible.h:139
FakeUser
Definition: users.h:908
ConnectClass
Definition: users.h:75
RemoteUser
Definition: users.h:900
Server
Definition: server.h:24
insp::flat_map
Definition: flat_map.h:285
Thread
Definition: threadengine.h:36
ModResult
Definition: modules.h:70
irc::insensitive_swo
Definition: hashcomp.h:112
ServerLimits
Definition: configreader.h:95
XLine
Definition: xline.h:36
ServerConfig
Definition: configreader.h:215
ProtocolServer
Definition: protocol.h:31
Channel
Definition: channels.h:40
BufferedSocket
Definition: inspsocket.h:378
IOHookProvider
Definition: iohook.h:25
ConfigTag
Definition: configreader.h:43
BanCacheManager
Definition: bancache.h:55
XLineFactory
Definition: xline.h:371
Module
Definition: modules.h:247
User
Definition: users.h:233
Command
Definition: ctables.h:224
XLineManager
Definition: xline.h:410
ClientProtocol::MessageTagProvider
Definition: clientprotocol.h:534
ClientProtocol::MessageTagData
Definition: typedefs.h:68
InspIRCd
Definition: inspircd.h:187
Membership
Definition: membership.h:35
ConfigStatus
Definition: configreader.h:501
LocalUser
Definition: users.h:727