#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 ( int64_t  offset)

Definition at line 44 of file mem_node.cc.

References data.

mem_node::~mem_node ( )

Definition at line 51 of file mem_node.cc.

Member Function Documentation

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().

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().

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().

int64_t mem_node::end ( ) const
size_t mem_node::InUseCount ( )
static
mem_node::MEMPROXY_CLASS ( mem_node  )
private
bool mem_node::operator< ( mem_node const &  rhs) const

Definition at line 111 of file mem_node.cc.

References start().

size_t mem_node::space ( ) const
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<().

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

char mem_node::data[SM_PAGE_SIZE]

Definition at line 37 of file mem_node.h.

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

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