]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/typedefs.h
fixed std:: stuff
[user/henk/code/inspircd.git] / include / typedefs.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
6  * See: http://www.inspircd.org/wiki/index.php/Credits
7  *
8  * This program is free but copyrighted software; see
9  *            the file COPYING for details.
10  *
11  * ---------------------------------------------------
12  */
13
14 #ifndef __TYPEDEF_H__
15 #define __TYPEDEF_H__
16
17 #ifndef WIN32
18 /** User hash (POSIX systems with GCC)
19  */
20 typedef nspace::hash_map<std::string, User*, nspace::hash<std::string>, irc::StrHashComp> user_hash;
21 /** Channel hash (POSIX systems with GCC)
22  */
23 typedef nspace::hash_map<std::string, Channel*, nspace::hash<std::string>, irc::StrHashComp> chan_hash;
24 #else
25 /** User hash (windows systems with visual studio)
26  */
27 typedef nspace::hash_map<std::string, User*, nspace::hash_compare<std::string, std::less<std::string> > > user_hash;
28 /** Channel hash (windows systems with visual studio)
29  */
30 typedef nspace::hash_map<std::string, Channel*, nspace::hash_compare<std::string, std::less<std::string> > > chan_hash;
31 #endif
32
33 /** Server name cache
34  */
35 typedef std::vector<std::string*> servernamelist;
36
37 /** A cached text file stored line by line.
38  */
39 typedef std::deque<std::string> file_cache;
40
41 #endif
42