TRF Language Model
wb::LHashIter< KeyT, DataT > Class Template Reference

the iter of LHash More...

#include <wb-lhash.h>

Public Member Functions

 LHashIter (LHash< KeyT, DataT > *phash, bool(*sort)(KeyT, KeyT)=0)
 constructor More...
 
 ~LHashIter ()
 destructor More...
 
void Init ()
 initialize the iter More...
 
DataT * Next (KeyT &key)
 get next value More...
 

Detailed Description

template<class KeyT, class DataT>
class wb::LHashIter< KeyT, DataT >

the iter of LHash

Definition at line 42 of file wb-lhash.h.

Constructor & Destructor Documentation

§ LHashIter()

template<class KeyT, class DataT>
wb::LHashIter< KeyT, DataT >::LHashIter ( LHash< KeyT, DataT > *  phash,
bool(*)(KeyT, KeyT)  sort = 0 
)
inline

constructor

Definition at line 519 of file wb-lhash.h.

§ ~LHashIter()

template<class KeyT, class DataT>
wb::LHashIter< KeyT, DataT >::~LHashIter ( )
inline

destructor

Definition at line 526 of file wb-lhash.h.

Member Function Documentation

§ Init()

template<class KeyT, class DataT>
void wb::LHashIter< KeyT, DataT >::Init ( )
inline

initialize the iter

Definition at line 533 of file wb-lhash.h.

§ Next()

template<class KeyT, class DataT>
DataT* wb::LHashIter< KeyT, DataT >::Next ( KeyT &  key)
inline

get next value

Parameters
[out]keyreturn the next key return return the pointer to the next value, to make it posible to modificate the value

Definition at line 576 of file wb-lhash.h.


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