⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 input__output__manager_8hpp-source.html

📁 Aprior的C++实现算法
💻 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.5 --><div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;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>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 &lt;fstream&gt;</span>00018 <span class="preprocessor">#include &lt;vector&gt;</span>00019 <span class="preprocessor">#include &lt;set&gt;</span>00020 <span class="keyword">using</span> <span class="keyword">namespace </span>std;00021 00022 <a name="l00032"></a><a class="code" href="classInput__Output__Manager.html">00032</a> <span class="keyword">class </span><a class="code" href="classInput__Output__Manager.html">Input_Output_Manager</a>:<span class="keyword">public</span> ofstream00033 {00034 <span class="keyword">public</span>:00035 00036       <a class="code" href="classInput__Output__Manager.html#a0">Input_Output_Manager</a>( ifstream&amp; <a class="code" href="classInput__Output__Manager.html#r0">basket_file</a>,  <span class="keyword">const</span> <span class="keywordtype">char</span>* output_file_name );00037    00039       <span class="keywordtype">int</span> <a class="code" href="classInput__Output__Manager.html#a1">read_in_a_line</a>( set&lt;itemtype&gt;&amp; basket );00040 00042       <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="classInput__Output__Manager.html#a2">find_frequent_items</a>( ifstream&amp; mis_file,00043                           set&lt; pair&lt;itemtype, unsigned long&gt; &gt;&amp; support_of_items, 00044                                          vector&lt;double&gt;&amp; mis_abs);00045 00047       <span class="keywordtype">void</span> <a class="code" href="classInput__Output__Manager.html#a3">basket_recode</a>( <span class="keyword">const</span> set&lt;itemtype&gt;&amp; original_basket, vector&lt;itemtype&gt;&amp; new_basket );00048 00050       <span class="keywordtype">void</span> <a class="code" href="classInput__Output__Manager.html#a4">write_out_basket</a>( <span class="keyword">const</span> set&lt;itemtype&gt;&amp; itemset );00051 00053       <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&lt;itemtype&gt;&amp; itemset, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> counter );00054 00056       <span class="keywordtype">void</span> <a class="code" href="classInput__Output__Manager.html#a6">rewind</a>(); 00057 00058       <a class="code" href="classInput__Output__Manager.html#a7">~Input_Output_Manager</a>( );00059 00060 <span class="keyword">private</span>:<a name="l00062"></a><a class="code" href="classInput__Output__Manager.html#r0">00062</a>    ifstream&amp; basket_file;00063    <a name="l00069"></a><a class="code" href="classInput__Output__Manager.html#r1">00069</a>    vector&lt;itemtype&gt; <a class="code" href="classInput__Output__Manager.html#r1">new_code</a>;00070 <a name="l00075"></a><a class="code" href="classInput__Output__Manager.html#r2">00075</a>    vector&lt;itemtype&gt; <a class="code" href="classInput__Output__Manager.html#r2">new_code_inverse</a>;00076 };00077 00078 00079 <span class="preprocessor">#endif</span></pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Jun 20 23:41:08 2004 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.5 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -