本文整理汇总了C++中CArray::Initialize方法的典型用法代码示例。如果您正苦于以下问题:C++ CArray::Initialize方法的具体用法?C++ CArray::Initialize怎么用?C++ CArray::Initialize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CArray
的用法示例。
在下文中一共展示了CArray::Initialize方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CompileExcerptKeywordSet
// This creates the final keyword set that composes each of the excerpts. Only
// the top N keywords are stored which are ranked on their keyword weight.
// @param hit_list_breadth - this is the number of hit list divisions
// @param max_keyword_size - this is the maximum number of keywords
// - allowed in the initial excerp set
void CompileExcerptKeywordSet(int client_id, int client_num,
int hit_list_breadth, int max_keyword_size) {
CNodeStat::SetClientID(client_id);
CNodeStat::SetClientNum(client_num);
CNodeStat::SetHashDivNum(hit_list_breadth);
m_tok_queue.Initialize(max_keyword_size, CompareTokens);
m_sorted_tok_set.Initialize(max_keyword_size);
Initialize();
m_hit_enc_file.OpenReadFile(CUtility::ExtendString
("LocalData/hit_encoding", GetClientID()));
m_excerpt_occur_map_file.OpenReadFile(CUtility::ExtendString
("LocalData/excerpt_occurr", GetClientID()));
for(int i=0; i<m_assoc_id_file.OverflowSize(); i++) {
m_assoc_id_file[i].OpenReadFile(CUtility::ExtendString
("LocalData/mapped_assoc_file", i, ".client", GetClientID()));
}
cout<<endl<<"Writing Excerpt Documents"<<endl;
WriteDocuments();
}