#include <mem_node.h>

Collaboration diagram for mem_node:

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)
 

Detailed Description

Definition at line 17 of file mem_node.h.

Constructor & Destructor Documentation

◆ mem_node()

mem_node::mem_node ( int64_t  offset)

Definition at line 44 of file mem_node.cc.

References data.

◆ ~mem_node()

mem_node::~mem_node ( )

Definition at line 51 of file mem_node.cc.

Member Function Documentation

◆ canAccept()

bool mem_node::canAccept ( int64_t const &  location) const

Definition at line 102 of file mem_node.cc.

References end(), and space().

Referenced by main(), mem_hdr::nodeToRecieve(), and mem_hdr::writeAvailable().

◆ contains()

bool mem_node::contains ( int64_t const &  location) const

Definition at line 92 of file mem_node.cc.

References end(), and start().

Referenced by main().

◆ dataRange()

Range< int64_t > mem_node::dataRange ( ) const

Definition at line 80 of file mem_node.cc.

References end(), and start().

Referenced by mem_hdr::endOffset(), and main().

◆ end()

int64_t mem_node::end ( ) const

◆ InUseCount()

size_t mem_node::InUseCount ( )
static

Definition at line 55 of file mem_node.cc.

Referenced by main(), Store::Controller::memoryCacheHasSpaceFor(), and StoreMemSize().

◆ MEMPROXY_CLASS()

mem_node::MEMPROXY_CLASS ( mem_node  )
private

◆ operator<()

bool mem_node::operator< ( mem_node const &  rhs) const

Definition at line 110 of file mem_node.cc.

References start().

◆ space()

size_t mem_node::space ( ) const

Definition at line 86 of file mem_node.cc.

References StoreIOBuffer::length, nodeBuffer, and SM_PAGE_SIZE.

Referenced by canAccept(), and mem_hdr::writeAvailable().

◆ start()

int64_t mem_node::start ( ) const

Definition at line 67 of file mem_node.cc.

References assert, nodeBuffer, and StoreIOBuffer::offset.

Referenced by contains(), dataRange(), doPages(), main(), and operator<().

◆ StoreMemSize()

size_t mem_node::StoreMemSize ( )
static

Definition at line 61 of file mem_node.cc.

References InUseCount(), and SM_PAGE_SIZE.

Referenced by Store::Controller::getStats(), and snmp_sysFn().

Member Data Documentation

◆ data

char mem_node::data[SM_PAGE_SIZE]

Definition at line 37 of file mem_node.h.

Referenced by mem_node(), makeMemNodeDataOffset(), and mem_hdr::NodeGet().

◆ nodeBuffer

◆ write_pending

bool mem_node::write_pending

Definition at line 38 of file mem_node.h.

Referenced by memNodeWriteComplete(), mem_hdr::NodeGet(), and mem_hdr::unlink().


The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors