]> git.ipfire.org Git - thirdparty/squid.git/blob - src/CommonPool.h
Author: Various Translators
[thirdparty/squid.git] / src / CommonPool.h
1 /*
2 * $Id$
3 *
4 * DEBUG: section 77 Delay Pools
5 * AUTHOR: Robert Collins <robertc@squid-cache.org>
6 * Based upon original delay pools code by
7 * David Luyer <david@luyer.net>
8 *
9 * SQUID Web Proxy Cache http://www.squid-cache.org/
10 * ----------------------------------------------------------
11 *
12 * Squid is the result of efforts by numerous individuals from
13 * the Internet community; see the CONTRIBUTORS file for full
14 * details. Many organizations have provided support for Squid's
15 * development; see the SPONSORS file for full details. Squid is
16 * Copyrighted (C) 2001 by the Regents of the University of
17 * California; see the COPYRIGHT file for full details. Squid
18 * incorporates software developed and/or copyrighted by other
19 * sources; see the CREDITS file for full details.
20 *
21 * This program is free software; you can redistribute it and/or modify
22 * it under the terms of the GNU General Public License as published by
23 * the Free Software Foundation; either version 2 of the License, or
24 * (at your option) any later version.
25 *
26 * This program is distributed in the hope that it will be useful,
27 * but WITHOUT ANY WARRANTY; without even the implied warranty of
28 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 * GNU General Public License for more details.
30 *
31 * You should have received a copy of the GNU General Public License
32 * along with this program; if not, write to the Free Software
33 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
34 *
35 *
36 * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
37 */
38
39 #include "config.h"
40
41 #ifndef COMMONPOOL_H
42 #define COMMONPOOL_H
43 #if DELAY_POOLS
44 #include "squid.h"
45 #include "SquidString.h"
46 #include "CompositePoolNode.h"
47
48 /*
49 \ingroup DelayPoolsAPI
50 *
51 \todo Next steps: make this a composite, and TypeLabel a composite method.
52 * Then we have a legacy composite which returns class 1/2/3, and new
53 * composites which return a descriptor of some sort.
54 */
55 class CommonPool
56 {
57
58 public:
59 void *operator new(size_t);
60 void operator delete (void *);
61 static CommonPool *Factory (unsigned char _class, CompositePoolNode::Pointer&);
62 char const* theClassTypeLabel() const {return typeLabel.termedBuf();}
63
64 protected:
65 CommonPool();
66 String typeLabel;
67 };
68
69 #endif
70 #endif /* COMMONPOOL_H */
71