2017-11-01 20:14:23 +01:00
|
|
|
/******************************************************************************/
|
|
|
|
/* HASH INDEX - INLINE CODE ***************************************************/
|
|
|
|
/******************************************************************************/
|
|
|
|
|
2017-11-01 21:44:54 +01:00
|
|
|
#ifndef _H_EBCL_INLINE_HASHINDEX
|
|
|
|
#define _H_EBCL_INLINE_HHASHINDEX
|
|
|
|
#include <ebcl/HashIndex.hh>
|
|
|
|
namespace ebcl {
|
2017-11-01 20:14:23 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*= 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_ ];
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2017-11-01 21:44:54 +01:00
|
|
|
#endif //_H_EBCL_INLINE_HHASHINDEX
|