<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <title>include/hash.h</title> <meta name='robots' content='noindex,nofollow' /> <meta name='generator' content='GLOBAL-6.6.5' /> <meta http-equiv='Content-Style-Type' content='text/css' /> <link rel='stylesheet' type='text/css' href='../style.css' /> </head> <body> <a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/2930.html'>include</a>/hash.h</h2> <em class='comment'>/* [<][>][^][v][top]<a href='#BOTTOM'>[bottom]</a><a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em> <hr /> <h2 class='header'><a href='../J/1311.html' title='Multiple included from 3 places.'>INCLUDED FROM</a></h2> <hr /> <pre> <a id='L1' name='L1'></a> 1 <em class='sharp'>#ifndef</em> <a href='../S/2426.html#L2' title='Defined at 2 in include/hash.h.'>YACASL2_HASH_H_INCLUDED</a> <a id='L2' name='L2'></a> 2 <em class='sharp'>#define</em> <a href='../S/2426.html#L1' title='Referred from 1 in include/hash.h.'>YACASL2_HASH_H_INCLUDED</a> <a id='L3' name='L3'></a> 3 <a id='L4' name='L4'></a> 4 <em class='comment'>/**</em> <a id='L5' name='L5'></a> 5 <em class='comment'> * @brief ハッシュ共用体の数値</em> <a id='L6' name='L6'></a> 6 <em class='comment'> */</em> <a id='L7' name='L7'></a> 7 <strong class='reserved'>typedef</strong> <strong class='reserved'>enum</strong> <em class='brace'>{</em> <a id='L8' name='L8'></a> 8 <a href='../R/11.html' title='Multiple referred from 5 places.'>CHARS</a> = 0, <em class='comment'>/**<char型のデータ */</em> <a id='L9' name='L9'></a> 9 <a href='../R/33.html' title='Multiple referred from 6 places.'>INT</a> = 1, <em class='comment'>/**<int型のデータ */</em> <a id='L10' name='L10'></a> 10 <em class='brace'>}</em> <a href='../S/2426.html#L16' title='Referred from 16 in include/hash.h.'>UTYPE</a>; <a id='L11' name='L11'></a> 11 <a id='L12' name='L12'></a> 12 <em class='comment'>/**</em> <a id='L13' name='L13'></a> 13 <em class='comment'> * @brief ハッシュ共用体のデータ型</em> <a id='L14' name='L14'></a> 14 <em class='comment'> */</em> <a id='L15' name='L15'></a> 15 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <em class='brace'>{</em> <a id='L16' name='L16'></a> 16 <a href='../S/2426.html#L10' title='Defined at 10 in include/hash.h.'>UTYPE</a> <a href='../Y/230.html' title='Multiple used in 26 places.'>type</a>; <em class='comment'>/**<ハッシュ値の元データのデータ型 */</em> <a id='L17' name='L17'></a> 17 <strong class='reserved'>union</strong> <em class='brace'>{</em> <a id='L18' name='L18'></a> 18 <strong class='reserved'>char</strong> *<a href='../Y/188.html' title='Multiple used in 74 places.'>s</a>; <em class='comment'>/**<char型のデータ */</em> <a id='L19' name='L19'></a> 19 <strong class='reserved'>int</strong> <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>; <em class='comment'>/**<int型のデータ */</em> <a id='L20' name='L20'></a> 20 <em class='brace'>}</em> <a href='../Y/232.html' title='Multiple used in 27 places.'>val</a>; <em class='comment'>/**<ハッシュ値の元データ */</em> <a id='L21' name='L21'></a> 21 <em class='brace'>}</em> <a href='../R/31.html' title='Multiple referred from 21 places.'>HKEY</a>; <a id='L22' name='L22'></a> 22 <a id='L23' name='L23'></a> 23 <em class='comment'>/**</em> <a id='L24' name='L24'></a> 24 <em class='comment'> * @brief ハッシュ値を取得する</em> <a id='L25' name='L25'></a> 25 <em class='comment'> *</em> <a id='L26' name='L26'></a> 26 <em class='comment'> * @return ハッシュ値</em> <a id='L27' name='L27'></a> 27 <em class='comment'> *</em> <a id='L28' name='L28'></a> 28 <em class='comment'> * @param keyc キーの数</em> <a id='L29' name='L29'></a> 29 <em class='comment'> * @param *keyv[] キーを表す配列</em> <a id='L30' name='L30'></a> 30 <em class='comment'> * @param tabsize テーブルのサイズ</em> <a id='L31' name='L31'></a> 31 <em class='comment'> */</em> <a id='L32' name='L32'></a> 32 <strong class='reserved'>unsigned</strong> <a href='../S/2830.html#L3' title='Defined at 3 in src/hash.c.'>hash</a>(<strong class='reserved'>int</strong> <a href='../Y/123.html' title='Multiple used in 3 places.'>keyc</a>, <a href='../S/2426.html#L21' title='Defined at 21 in include/hash.h.'>HKEY</a> *<a href='../Y/125.html' title='Multiple used in 6 places.'>keyv</a>[], <strong class='reserved'>int</strong> <a href='../Y/219.html' title='Multiple used in 3 places.'>tabsize</a>); <a id='L33' name='L33'></a> 33 <a id='L34' name='L34'></a> 34 <em class='sharp'>#endif</em> </pre> <hr /> <a id='BOTTOM' name='BOTTOM'></a> <em class='comment'>/* [<][>][^][v]<a href='#TOP'>[top]</a>[bottom]<a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em> </body> </html>