]> git.ipfire.org Git - thirdparty/squid.git/blob - src/esi/ElementList.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / esi / ElementList.h
1 /*
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 /* DEBUG: section 86 ESI processing */
10
11 #ifndef SQUID_ELEMENTLIST_H
12 #define SQUID_ELEMENTLIST_H
13
14 #include "esi/Element.h"
15
16 class ElementList
17 {
18
19 public:
20 ElementList();
21 ~ElementList();
22
23 ESIElement::Pointer &operator[](int);
24 ESIElement::Pointer const &operator[](int)const;
25 ESIElement::Pointer * elements; /* unprocessed or rendered nodes */
26 void pop_front (size_t const);
27 void push_back(ESIElement::Pointer &);
28 size_t size() const;
29 void setNULL (int start, int end);
30
31 int allocedcount;
32 size_t allocedsize;
33 int elementcount;
34
35 private:
36 ElementList(ElementList const &);
37 ElementList &operator=(ElementList const&);
38 };
39
40 #endif /* SQUID_ELEMENTLIST_H */
41