/******************************************************************************/ /* HASH INDEX - INLINE CODE ***************************************************/ /******************************************************************************/ #ifndef _H_EBCL_INLINE_HASHINDEX #define _H_EBCL_INLINE_HHASHINDEX #include 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