Fennel: LhxHashBlockAccessor Class Reference (original) (raw)

#include <[LhxHashTable.h](LhxHashTable%5F8h-source.html)>

Inheritance diagram for LhxHashBlockAccessor:

List of all members.

Public Member Functions
LhxHashBlockAccessor ()
void init (uint usablePageSize)
Set the size of the block.
void setCurrent (PBuffer blockPtrInit, bool valid, bool clearContent)
Set the current node pointer for this accessor.
void reset ()
Reset the node pointer to NULL.
uint getUsableSize ()
**Returns:**the size of the block that a client can use.
uint getSlotsPerBlock ()
**Returns:**the maximum number of slots per block.
PBuffer allocBuffer (uint bufSize)
Allocate a buffer from this block.
void allocSlots (uint slotCount=1)
PBuffer * getSlot (uint slotNum)
Get the slot indexed by slotNum from this block.
PBuffer getCurrent ()
**Returns:**current node associated with this accessor
void setCurrent (PBuffer nodePtrInit)
Set the current node pointer for this accessor.
PBuffer getBuffer ()
**Returns:**buffer to the payload in this node
PBuffer getNext ()
**Returns:**the next node
PBuffer getNextLocation ()
**Returns:**the location which stores the next node pointer
void setNext (PBuffer nextNode)
Set the next node pointer for node associated with this accessor.
void setNext (PBuffer inputNode, PBuffer nextNode)
Set the next node pointer for an input node.
uint getNextFieldSize ()
**Returns:**number of bytes required to store the next node pointer
uint getBufferOffset ()
**Returns:**offset to the .
Private Attributes
uint blockUsableSize
Size of the buffer that a client can use.
uint numSlotsPerBlock
Maximum number of slots per block.
PBuffer freePtr
Free space in the current block.
PBuffer endPtr
Free space in the current block.

Detailed Description

Definition at line 457 of file LhxHashTable.h.


Constructor & Destructor Documentation

| LhxHashBlockAccessor::LhxHashBlockAccessor | ( | | ) | [inline] | | ------------------------------------------ | - | | - | ---------- |


Member Function Documentation

void LhxHashBlockAccessor::init ( uint usablePageSize )
void LhxHashBlockAccessor::setCurrent ( PBuffer blockPtrInit,
bool valid,
bool clearContent
)

| void LhxHashBlockAccessor::reset | ( | | ) | [inline] | | -------------------------------- | - | | - | ---------- |

| uint LhxHashBlockAccessor::getUsableSize | ( | | ) | [inline] | | ----------------------------------------------------------------------------------------------------- | - | | - | ---------- |

| uint LhxHashBlockAccessor::getSlotsPerBlock | ( | | ) | [inline] | | -------------------------------------------------------------------------------------------------------- | - | | - | ---------- |

PBuffer LhxHashBlockAccessor::allocBuffer ( uint bufSize )
void LhxHashBlockAccessor::allocSlots ( uint slotCount = 1 ) [inline]
PBuffer * LhxHashBlockAccessor::getSlot ( uint slotNum )

| PBuffer LhxHashNodeAccessor::getCurrent | ( | | ) | [inline, inherited] | | ------------------------------------------------------------------------------------------- | - | | - | --------------------- |

void LhxHashNodeAccessor::setCurrent ( PBuffer nodePtrInit ) [inline, inherited]

| PBuffer LhxHashNodeAccessor::getBuffer | ( | | ) | [inline, inherited] | | ------------------------------------------------------------------------------------------ | - | | - | --------------------- |

| PBuffer LhxHashNodeAccessor::getNext | ( | | ) | [inline, inherited] | | ---------------------------------------------------------------------------------------- | - | | - | --------------------- |

| PBuffer LhxHashNodeAccessor::getNextLocation | ( | | ) | [inline, inherited] | | ------------------------------------------------------------------------------------------------ | - | | - | --------------------- |

void LhxHashNodeAccessor::setNext ( PBuffer nextNode ) [inline, inherited]
void LhxHashNodeAccessor::setNext ( PBuffer inputNode,
PBuffer nextNode
) [inline, inherited]

| uint LhxHashNodeAccessor::getNextFieldSize | ( | | ) | [inline, inherited] | | ------------------------------------------------------------------------------------------------------- | - | | - | --------------------- |

| uint LhxHashNodeAccessor::getBufferOffset | ( | | ) | [inline, inherited] | | ------------------------------------------------------------------------------------------------------ | - | | - | --------------------- |


Member Data Documentation


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


Generated on Mon Jun 22 04:00:38 2009 for Fennel by doxygen 1.5.1