|
Squid Web Cache master
|
#include <mem_node.h>
Public Member Functions | |
| mem_node (int64_t) | |
| ~mem_node () | |
| size_t | space () const |
| int64_t | start () const |
| int64_t | end () const |
| Range< int64_t > | dataRange () const |
| bool | contains (int64_t const &location) const |
| bool | canAccept (int64_t const &location) const |
| bool | operator< (mem_node const &rhs) const |
Static Public Member Functions | |
| static size_t | InUseCount () |
| static size_t | StoreMemSize () |
Public Attributes | |
| StoreIOBuffer | nodeBuffer |
| char | data [SM_PAGE_SIZE] |
| bool | write_pending |
Private Member Functions | |
| MEMPROXY_CLASS (mem_node) | |
Definition at line 17 of file mem_node.h.
| mem_node::mem_node | ( | int64_t | offset | ) |
Definition at line 47 of file mem_node.cc.
References data.
| mem_node::~mem_node | ( | ) |
Definition at line 54 of file mem_node.cc.
| bool mem_node::canAccept | ( | int64_t const & | location | ) | const |
Definition at line 105 of file mem_node.cc.
References end(), and space().
Referenced by main(), mem_hdr::nodeToRecieve(), and mem_hdr::writeAvailable().
| bool mem_node::contains | ( | int64_t const & | location | ) | const |
| Range< int64_t > mem_node::dataRange | ( | ) | const |
| int64_t mem_node::end | ( | ) | const |
Definition at line 77 of file mem_node.cc.
References StoreIOBuffer::length, nodeBuffer, and StoreIOBuffer::offset.
Referenced by canAccept(), contains(), mem_hdr::copyAvailable(), dataRange(), and main().
|
static |
Definition at line 58 of file mem_node.cc.
Referenced by main(), Store::Controller::memoryCacheHasSpaceFor(), and StoreMemSize().
|
private |
| bool mem_node::operator< | ( | mem_node const & | rhs | ) | const |
Definition at line 113 of file mem_node.cc.
References start().
| size_t mem_node::space | ( | ) | const |
Definition at line 89 of file mem_node.cc.
References StoreIOBuffer::length, nodeBuffer, and SM_PAGE_SIZE.
Referenced by canAccept(), and mem_hdr::writeAvailable().
| int64_t mem_node::start | ( | ) | const |
Definition at line 70 of file mem_node.cc.
References assert, nodeBuffer, and StoreIOBuffer::offset.
Referenced by contains(), dataRange(), doPages(), main(), and operator<().
|
static |
Definition at line 64 of file mem_node.cc.
References InUseCount(), and SM_PAGE_SIZE.
Referenced by Store::Controller::getStats(), and snmp_sysFn().
| char mem_node::data[SM_PAGE_SIZE] |
Definition at line 37 of file mem_node.h.
Referenced by mem_node(), and mem_hdr::NodeGet().
| StoreIOBuffer mem_node::nodeBuffer |
Definition at line 35 of file mem_node.h.
Referenced by mem_hdr::copyAvailable(), doPages(), end(), mem_hdr::getBlockContainingLocation(), main(), mem_hdr::nodeToRecieve(), operator<<(), space(), start(), testSplayOfNodes(), mem_hdr::unionNotEmpty(), and mem_hdr::writeAvailable().
| bool mem_node::write_pending |
Definition at line 38 of file mem_node.h.
Referenced by memNodeWriteComplete(), mem_hdr::NodeGet(), and mem_hdr::unlink().