]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/mem_node.h
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
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.
9 #ifndef SQUID_MEM_NODE_H
10 #define SQUID_MEM_NODE_H
15 #include "StoreIOBuffer.h"
19 MEMPROXY_CLASS(mem_node
);
22 static size_t InUseCount();
23 static size_t StoreMemSize();
28 int64_t start() const;
30 Range
<int64_t> dataRange() const;
31 bool contains (int64_t const &location
) const;
32 bool canAccept (int64_t const &location
) const;
33 bool operator < (mem_node
const & rhs
) const;
35 StoreIOBuffer nodeBuffer
;
37 char data
[SM_PAGE_SIZE
];
42 operator << (std::ostream
&os
, mem_node
&aNode
)
44 os
<< aNode
.nodeBuffer
.range();
48 void memNodeWriteComplete(void *);
50 #endif /* SQUID_MEM_NODE_H */