frequencyheap.h
来自「我们一个小组」· C头文件 代码 · 共 34 行
H
34 行
#pragma once
#include <vector>
#include "..\DynamicPhraseTable\DynamicPhraseTable.h"
#include <algorithm>
#include <utility>
using std::vector ;
using std::pair ;
using std::sort ;
class TrieTree ;
class FrequencyHeap
{
friend class TrieTree ;
public:
//get total number of elements in the heap
size_t GetCount() ;
//insert an element
void Insert(double frequency, int id) ;
void GetWord(vector<int>& vecIdTable) ;
bool IncreaseFrequency(int id) ;
private:
vector<ID> m_vecFrequencyId ;
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?