Stun Server  Compliant with the latest RFCs including 5389, 5769, and 5780
discover the local host's own external IP address
CTestFastHash Class Reference

#include <testfasthash.h>

Inheritance diagram for CTestFastHash:
Collaboration diagram for CTestFastHash:

Classes

struct  Item
 

Public Member Functions

virtual HRESULT Run ()
 
 UT_DECLARE_TEST_NAME ("CTestFastHash")
 
- Public Member Functions inherited from IUnitTest
virtual ~IUnitTest ()
 
virtual const char * GetName ()=0
 

Private Member Functions

HRESULT AddRangeToSet (int first, int last)
 
HRESULT RemoveRangeFromSet (int first, int last)
 
HRESULT ValidateRangeInSet (int first, int last)
 
HRESULT ValidateRangeNotInSet (int first, int last)
 
HRESULT AddOne (int val)
 
HRESULT RemoveOne (int val)
 
HRESULT ValidateRangeInIndex (int first, int last)
 
HRESULT TestFastHash ()
 
HRESULT TestRemove ()
 
HRESULT TestIndexing ()
 

Private Attributes

FastHash< int, Item, c_maxsize, c_tablesize_hashtable
 

Static Private Attributes

static const size_t c_maxsize = 500
 
static const size_t c_tablesize = 91
 

Detailed Description

Definition at line 26 of file testfasthash.h.

Member Function Documentation

HRESULT CTestFastHash::AddOne ( int  val)
private

Definition at line 35 of file testfasthash.cpp.

HRESULT CTestFastHash::AddRangeToSet ( int  first,
int  last 
)
private

Definition at line 76 of file testfasthash.cpp.

HRESULT CTestFastHash::RemoveOne ( int  val)
private

Definition at line 58 of file testfasthash.cpp.

HRESULT CTestFastHash::RemoveRangeFromSet ( int  first,
int  last 
)
private

Definition at line 89 of file testfasthash.cpp.

HRESULT CTestFastHash::Run ( )
virtual

Implements IUnitTest.

Definition at line 22 of file testfasthash.cpp.

HRESULT CTestFastHash::TestFastHash ( )
private

Definition at line 176 of file testfasthash.cpp.

HRESULT CTestFastHash::TestIndexing ( )
private
HRESULT CTestFastHash::TestRemove ( )
private

Definition at line 223 of file testfasthash.cpp.

CTestFastHash::UT_DECLARE_TEST_NAME ( "CTestFastHash"  )
HRESULT CTestFastHash::ValidateRangeInIndex ( int  first,
int  last 
)
private

Definition at line 135 of file testfasthash.cpp.

HRESULT CTestFastHash::ValidateRangeInSet ( int  first,
int  last 
)
private

Definition at line 102 of file testfasthash.cpp.

HRESULT CTestFastHash::ValidateRangeNotInSet ( int  first,
int  last 
)
private

Definition at line 121 of file testfasthash.cpp.

Member Data Documentation

FastHash<int, Item, c_maxsize, c_tablesize> CTestFastHash::_hashtable
private

Definition at line 38 of file testfasthash.h.

const size_t CTestFastHash::c_maxsize = 500
staticprivate

Definition at line 35 of file testfasthash.h.

const size_t CTestFastHash::c_tablesize = 91
staticprivate

Definition at line 36 of file testfasthash.h.


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