📄 input__output__manager_8hpp-source.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>APRIORI algorithm: Input_Output_Manager.hpp Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.9.1 --><div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div><h1>Input_Output_Manager.hpp</h1><a href="Input__Output__Manager_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/***************************************************************************</span>00002 <span class="comment"> Input_Output_Manager.hpp - description</span>00003 <span class="comment"> -------------------</span>00004 <span class="comment"> begin : cs march 10 2004</span>00005 <span class="comment"> copyright : (C) 2004 by Ferenc Bodon</span>00006 <span class="comment"> email : bodon@cs.bme.hu</span>00007 <span class="comment"> ***************************************************************************/</span>00008 00009 <span class="preprocessor">#ifndef Input_Output_Manager_HPP</span>00010 <span class="preprocessor"></span><span class="preprocessor">#define Input_Output_Manager_HPP</span>00011 <span class="preprocessor"></span>00016 <span class="preprocessor">#include "<a class="code" href="common_8hpp.html">common.hpp</a>"</span> 00017 <span class="preprocessor">#include <fstream></span>00018 <span class="preprocessor">#include <vector></span>00019 <span class="preprocessor">#include <set></span>00020 <span class="keyword">using</span> <span class="keyword">namespace </span>std;00021 00022 <a name="l00034"></a><a class="code" href="classInput__Output__Manager.html">00034</a> <span class="keyword">class </span><a class="code" href="classInput__Output__Manager.html">Input_Output_Manager</a>:<span class="keyword">public</span> ofstream00035 {00036 <span class="keyword">public</span>:00037 00038 <a class="code" href="classInput__Output__Manager.html#a0">Input_Output_Manager</a>( ifstream& <a class="code" href="classInput__Output__Manager.html#r0">basket_file</a>, 00039 <span class="keyword">const</span> <span class="keywordtype">char</span>* output_file_name );00040 00042 <span class="keywordtype">int</span> <a class="code" href="classInput__Output__Manager.html#a1">read_in_a_line</a>( set<itemtype>& basket );00043 00046 <a class="code" href="common_8hpp.html#a1">countertype</a> <a class="code" href="classInput__Output__Manager.html#a2">find_frequent_items</a>( 00047 <span class="keyword">const</span> <span class="keywordtype">double</span> min_supp, vector<countertype>& support_of_items );00048 00050 <span class="keywordtype">void</span> <a class="code" href="classInput__Output__Manager.html#a3">basket_recode</a>( <span class="keyword">const</span> set<itemtype>& original_basket, 00051 vector<itemtype>& new_basket );00052 00054 <span class="keywordtype">void</span> <a class="code" href="classInput__Output__Manager.html#a4">write_out_basket</a>( <span class="keyword">const</span> set<itemtype>& itemset );00055 00057 <span class="keywordtype">void</span> <a class="code" href="classInput__Output__Manager.html#a5">write_out_basket_and_counter</a>( <span class="keyword">const</span> set<itemtype>& itemset, 00058 <span class="keyword">const</span> <a class="code" href="common_8hpp.html#a1">countertype</a> counter );00059 00061 <span class="keywordtype">void</span> <a class="code" href="classInput__Output__Manager.html#a6">rewind</a>(); 00062 00063 <a class="code" href="classInput__Output__Manager.html#a7">~Input_Output_Manager</a>( );00064 00065 <span class="keyword">private</span>:<a name="l00067"></a><a class="code" href="classInput__Output__Manager.html#r0">00067</a> ifstream& basket_file;00068 <a name="l00074"></a><a class="code" href="classInput__Output__Manager.html#r1">00074</a> vector<itemtype> new_code;00075 <a name="l00080"></a><a class="code" href="classInput__Output__Manager.html#r2">00080</a> vector<itemtype> new_code_inverse;00081 };00082 00083 00084 <span class="preprocessor">#endif</span></pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 11 14:48:06 2005 for APRIORI algorithm by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -