Public Member Functions

ATSConsistentHash Struct Reference

#include <ConsistentHash.h>

Collaboration diagram for ATSConsistentHash:
Collaboration graph
[legend]

Public Member Functions

 ATSConsistentHash (int r=1024, ATSHash64 *h=NULL)
void insert (ATSConsistentHashNode *node, float weight=1.0, ATSHash64 *h=NULL)
ATSConsistentHashNodelookup (const char *url=NULL, ATSConsistentHashIter *i=NULL, bool *w=NULL, ATSHash64 *h=NULL)
ATSConsistentHashNodelookup_available (const char *url=NULL, ATSConsistentHashIter *i=NULL, bool *w=NULL, ATSHash64 *h=NULL)
 ~ATSConsistentHash ()

Detailed Description

Definition at line 51 of file ConsistentHash.h.


Constructor & Destructor Documentation

ATSConsistentHash::ATSConsistentHash ( int  r = 1024,
ATSHash64 h = NULL 
)

Definition at line 36 of file ConsistentHash.cc.

ATSConsistentHash::~ATSConsistentHash (  ) 

Definition at line 183 of file ConsistentHash.cc.


Member Function Documentation

void ATSConsistentHash::insert ( ATSConsistentHashNode node,
float  weight = 1.0,
ATSHash64 h = NULL 
)
ATSConsistentHashNode * ATSConsistentHash::lookup ( const char *  url = NULL,
ATSConsistentHashIter i = NULL,
bool *  w = NULL,
ATSHash64 h = NULL 
)
ATSConsistentHashNode * ATSConsistentHash::lookup_available ( const char *  url = NULL,
ATSConsistentHashIter i = NULL,
bool *  w = NULL,
ATSHash64 h = NULL 
)

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