2 * InspIRCd -- Internet Relay Chat Daemon
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>
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.
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
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/>.
24 class BanCacheManager;
54 typedef TR1NS::unordered_map<std::string, User*, irc::insensitive, irc::StrHashComp> user_hash;
55 typedef TR1NS::unordered_map<std::string, Channel*, irc::insensitive, irc::StrHashComp> chan_hash;
57 /** A list holding local users, this is the type of UserManager::local_users
59 typedef intrusive_list<LocalUser> LocalUserList;
61 /** A list of failed port bindings, used for informational purposes on startup */
62 typedef std::vector<std::pair<std::string, std::string> > FailedPortList;
64 /** Holds a complete list of all allow and deny tags from the configuration file (connection classes)
66 typedef std::vector<reference<ConnectClass> > ClassVector;
68 /** Typedef for the list of user-channel records for a user
70 typedef intrusive_list<Membership> UserChanList;
72 /** Shorthand for an iterator into a UserChanList
74 typedef UserChanList::iterator UCListIter;
76 /** List of channels to consider when building the neighbor list of a user
78 typedef std::vector<Membership*> IncludeChanList;
80 /** A cached text file stored with its contents as lines
82 typedef std::vector<std::string> file_cache;
84 /** A configuration key and value pair
86 typedef std::pair<std::string, std::string> KeyVal;
88 /** The entire configuration
90 typedef std::multimap<std::string, reference<ConfigTag> > ConfigDataHash;
92 /** Iterator of ConfigDataHash */
93 typedef ConfigDataHash::const_iterator ConfigIter;
94 /** Iterator pair, used for tag-name ranges */
95 typedef std::pair<ConfigIter,ConfigIter> ConfigTagList;
97 /** Index of valid oper blocks and types */
98 typedef std::map<std::string, reference<OperInfo> > OperIndex;
100 /** Files read by the configuration */
101 typedef std::map<std::string, file_cache> ConfigFileCache;
103 /** A hash of commands used by the core
105 typedef TR1NS::unordered_map<std::string, Command*> Commandtable;
107 /** Membership list of a channel */
108 typedef std::map<User*, Membership*> UserMembList;
109 /** Iterator of UserMembList */
110 typedef UserMembList::iterator UserMembIter;
111 /** const Iterator of UserMembList */
112 typedef UserMembList::const_iterator UserMembCIter;
114 /** Generic user list, used for exceptions */
115 typedef std::set<User*> CUList;
117 /** A set of strings.
119 typedef std::vector<std::string> string_list;
121 /** Contains an ident and host split into two strings
123 typedef std::pair<std::string, std::string> IdentHostPair;
125 /** A map of xline factories
127 typedef std::map<std::string, XLineFactory*> XLineFactMap;
129 /** A map of XLines indexed by string
131 typedef std::map<irc::string, XLine *> XLineLookup;
133 /** A map of XLineLookup maps indexed by string
135 typedef std::map<std::string, XLineLookup > XLineContainer;
137 /** An iterator in an XLineContainer
139 typedef XLineContainer::iterator ContainerIter;
141 /** An interator in an XLineLookup
143 typedef XLineLookup::iterator LookupIter;