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;
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;
58 /** List of channels to consider when building the neighbor list of a user
60 typedef std::vector<Membership*> IncludeChanList;
62 /** A cached text file stored with its contents as lines
64 typedef std::vector<std::string> file_cache;
66 /** A mapping of configuration keys to their assigned values.
68 typedef insp::flat_map<std::string, std::string, irc::insensitive_swo> ConfigItems;
70 /** The entire configuration
72 typedef std::multimap<std::string, reference<ConfigTag>, irc::insensitive_swo> ConfigDataHash;
74 /** Iterator of ConfigDataHash */
75 typedef ConfigDataHash::const_iterator ConfigIter;
76 /** Iterator pair, used for tag-name ranges */
77 typedef std::pair<ConfigIter,ConfigIter> ConfigTagList;
79 /** Files read by the configuration */
80 typedef std::map<std::string, file_cache> ConfigFileCache;
82 /** Generic user list, used for exceptions */
83 typedef std::set<User*> CUList;
87 typedef std::vector<std::string> string_list;
89 /** Contains an ident and host split into two strings
91 typedef std::pair<std::string, std::string> IdentHostPair;
93 /** A map of xline factories
95 typedef std::map<std::string, XLineFactory*> XLineFactMap;
97 /** A map of XLines indexed by string
99 typedef std::map<std::string, XLine*, irc::insensitive_swo> XLineLookup;
101 /** A map of XLineLookup maps indexed by string
103 typedef std::map<std::string, XLineLookup > XLineContainer;
105 /** An iterator in an XLineContainer
107 typedef XLineContainer::iterator ContainerIter;
109 /** An interator in an XLineLookup
111 typedef XLineLookup::iterator LookupIter;