LBCommTable Class Reference
[Charm++ Load Balancing Framework]

#include <LBComm.h>

Collaboration diagram for LBCommTable:

Collaboration graph
[legend]

Public Member Functions

 LBCommTable ()
 ~LBCommTable ()
LBCommDataHashInsert (const LBCommData &data)
LBCommDataHashInsertUnique (const LBCommData &data)
LBCommDataHashSearch (const LBCommData &data)
int CommCount ()
void GetCommData (LDCommData *data)
int useMem ()

Private Types

enum  { initial_sz = 10000 }
enum  TableState { nil, InUse }

Private Member Functions

void NewTable (int _sz)
void Resize ()

Private Attributes

LBCommDataset
TableStatestate
int cur_sz
int in_use

Detailed Description

Definition at line 102 of file LBComm.h.


Member Enumeration Documentation

anonymous enum [private]

Enumerator:
initial_sz 

Definition at line 132 of file LBComm.h.

enum LBCommTable::TableState [private]

Enumerator:
nil 
InUse 

Definition at line 133 of file LBComm.h.


Constructor & Destructor Documentation

LBCommTable::LBCommTable (  )  [inline]

Definition at line 105 of file LBComm.h.

References initial_sz, and NewTable().

LBCommTable::~LBCommTable (  )  [inline]

Definition at line 109 of file LBComm.h.

References set, and state.


Member Function Documentation

int LBCommTable::CommCount (  )  [inline]

Definition at line 117 of file LBComm.h.

References in_use.

Referenced by LBDB::CommDataCount().

void LBCommTable::NewTable ( int  _sz  )  [inline, private]

Definition at line 121 of file LBComm.h.

References cur_sz, in_use, nil, set, and state.

Referenced by LBCommTable(), and Resize().

int LBCommTable::useMem (  )  [inline]

Definition at line 139 of file LBComm.h.

References cur_sz.

Referenced by LBDB::useMem().


Field Documentation

LBCommData* LBCommTable::set [private]

Definition at line 134 of file LBComm.h.

Referenced by GetCommData(), HashInsert(), HashSearch(), NewTable(), Resize(), and ~LBCommTable().

TableState* LBCommTable::state [private]

Definition at line 135 of file LBComm.h.

Referenced by GetCommData(), HashInsert(), HashSearch(), NewTable(), Resize(), and ~LBCommTable().

int LBCommTable::cur_sz [private]

Definition at line 136 of file LBComm.h.

Referenced by GetCommData(), HashInsert(), HashSearch(), NewTable(), Resize(), and useMem().

int LBCommTable::in_use [private]

Definition at line 137 of file LBComm.h.

Referenced by CommCount(), HashInsert(), and NewTable().


The documentation for this class was generated from the following files:
Generated on Sun Jun 29 13:33:50 2008 for Charm++ by  doxygen 1.5.1