TopKList Class Reference
#include <TopKList.h>
List of all members.
Member Typedef Documentation
Constructor & Destructor Documentation
TopKList::TopKList |
( |
int |
K_ |
) |
|
Constructs a TopKList supporting top K_ elements
TopKList::~TopKList |
( |
|
) |
[virtual] |
Member Function Documentation
Iterator methods. Return an iterator to the beginning of the list
Iterator methods. Return an iterator to the end of the list
cnt_word_t TopKList::get_max |
( |
|
) |
|
Returns the max element which is the first elem
void TopKList::insert_word |
( |
const cnt_word_t & |
cnt_word |
) |
|
bool TopKList::is_sorted |
( |
|
) |
|
Used for test convenience. Just to check the array is always sorted and has at most K elems. Should return true at any point of time
Print the list to log(INFO)
The documentation for this class was generated from the following files: