31 lines
773 B
C++
31 lines
773 B
C++
/******************************************************************************/
|
|
/* HASH INDEX - INLINE CODE ***************************************************/
|
|
/******************************************************************************/
|
|
|
|
#ifndef _H_EBCL_INLINE_HASHINDEX
|
|
#define _H_EBCL_INLINE_HHASHINDEX
|
|
#include <ebcl/HashIndex.hh>
|
|
namespace ebcl {
|
|
|
|
|
|
/*= T_HashIndex ==============================================================*/
|
|
|
|
inline T_HashIndex::~T_HashIndex( )
|
|
{
|
|
free( );
|
|
}
|
|
|
|
inline uint32_t T_HashIndex::first( uint32_t key ) const
|
|
{
|
|
return hash_[ key & hashMask_ & lookupMask_ ];
|
|
}
|
|
|
|
inline uint32_t T_HashIndex::next( uint32_t index ) const
|
|
{
|
|
assert( index < indexSize_ );
|
|
return index_[ index & lookupMask_ ];
|
|
}
|
|
|
|
|
|
}
|
|
#endif //_H_EBCL_INLINE_HHASHINDEX
|