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

📄 group__gdsl__types.html

📁 一个通用的C语言实现的数据结构
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<p>GDSL Free element function type. <p>This function type is for freeing a gdsl_element_t variable. The element must have been previously allocated by a function of gdsl_alloc_func_t type. A free function according to gdsl_free_func_t must free the ressources allocated by the corresponding call to the function of type gdsl_alloc_func_t. The GDSL functions doesn't check if E != NULL before calling this function.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>E</em>&nbsp;</td><td>The element to deallocate. </td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__gdsl__types.html#g32a9b4e8b9665183c2741d28a5ced64f">gdsl_alloc_func_t</a> </dd></dl><p>Definition at line <a class="el" href="gdsl__types_8h-source.html#l00162">162</a> of file <a class="el" href="gdsl__types_8h-source.html">gdsl_types.h</a>.    </td>  </tr></table><a class="anchor" name="g4f82a1f397e66d35523569063d570175"></a><!-- doxytag: member="gdsl_types.h::gdsl_copy_func_t" ref="g4f82a1f397e66d35523569063d570175" args=")(const gdsl_element_t E)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">typedef <a class="el" href="group__gdsl__types.html#g0e2b9d7fb5ca9e6d50100e5d9e4bcae7">gdsl_element_t</a>(*  <a class="el" href="group__gdsl__types.html#g4f82a1f397e66d35523569063d570175">gdsl_copy_func_t</a>)(const <a class="el" href="group__gdsl__types.html#g0e2b9d7fb5ca9e6d50100e5d9e4bcae7">gdsl_element_t</a> E)          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>GDSL Copy element function type. <p>This function type is for copying gdsl_element_t variables.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>E</em>&nbsp;</td><td>The gdsl_element_t variable to copy. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>the copied element in case of success. <p>NULL in case of failure. </dd></dl><p>Definition at line <a class="el" href="gdsl__types_8h-source.html#l00175">175</a> of file <a class="el" href="gdsl__types_8h-source.html">gdsl_types.h</a>.    </td>  </tr></table><a class="anchor" name="g2500bfaaec5df890e72b43f448f13ee8"></a><!-- doxytag: member="gdsl_types.h::gdsl_map_func_t" ref="g2500bfaaec5df890e72b43f448f13ee8" args=")(const gdsl_element_t E, gdsl_location_t LOCATION, void *USER_DATA)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">typedef int(*  <a class="el" href="group__gdsl__types.html#g2500bfaaec5df890e72b43f448f13ee8">gdsl_map_func_t</a>)(const <a class="el" href="group__gdsl__types.html#g0e2b9d7fb5ca9e6d50100e5d9e4bcae7">gdsl_element_t</a> E, <a class="el" href="group__gdsl__types.html#g55b31c129e50e1231ab5aba5eee3b0d8">gdsl_location_t</a> LOCATION, void *USER_DATA)          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>GDSL Map element function type. <p>This function type is for mapping a gdsl_element_t variable from a GDSL data structure. The optional USER_DATA could be used to do special thing if needed.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>E</em>&nbsp;</td><td>The actually mapped gdsl_element_t variable. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>LOCATION</em>&nbsp;</td><td>The location of E in the data structure. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>USER_DATA</em>&nbsp;</td><td>User's datas. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>GDSL_MAP_STOP if the mapping must be stopped. <p>GDSL_MAP_CONT if the mapping must be continued. </dd></dl><p>Definition at line <a class="el" href="gdsl__types_8h-source.html#l00192">192</a> of file <a class="el" href="gdsl__types_8h-source.html">gdsl_types.h</a>.    </td>  </tr></table><a class="anchor" name="g200177a9a1ac3f2363e228b0e5faeda7"></a><!-- doxytag: member="gdsl_types.h::gdsl_compare_func_t" ref="g200177a9a1ac3f2363e228b0e5faeda7" args=")(const gdsl_element_t E, void *VALUE)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">typedef long int(*  <a class="el" href="group__gdsl__types.html#g200177a9a1ac3f2363e228b0e5faeda7">gdsl_compare_func_t</a>)(const <a class="el" href="group__gdsl__types.html#g0e2b9d7fb5ca9e6d50100e5d9e4bcae7">gdsl_element_t</a> E, void *VALUE)          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>GDSL Comparison element function type. <p>This function type is used to compare a gdsl_element_t variable with a user value. The E argument is always the one in the GDSL data structure, VALUE is always the one the user wants to compare E with.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>E</em>&nbsp;</td><td>The gdsl_element_t variable contained into the data structure to compare from. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>VALUE</em>&nbsp;</td><td>The user data to compare E with. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>&lt; 0 if E is assumed to be less than VALUE. <p>0 if E is assumed to be equal to VALUE. <p>&gt; 0 if E is assumed to be greather than VALUE. </dd></dl><p>Definition at line <a class="el" href="gdsl__types_8h-source.html#l00213">213</a> of file <a class="el" href="gdsl__types_8h-source.html">gdsl_types.h</a>.    </td>  </tr></table><a class="anchor" name="gfc7394b6c8e0a5bd92df75e24512dfd6"></a><!-- doxytag: member="gdsl_types.h::gdsl_write_func_t" ref="gfc7394b6c8e0a5bd92df75e24512dfd6" args=")(const gdsl_element_t E, FILE *OUTPUT_FILE, gdsl_location_t LOCATION, void *USER_DATA)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">typedef void(*  <a class="el" href="group__gdsl__types.html#gfc7394b6c8e0a5bd92df75e24512dfd6">gdsl_write_func_t</a>)(const <a class="el" href="group__gdsl__types.html#g0e2b9d7fb5ca9e6d50100e5d9e4bcae7">gdsl_element_t</a> E, FILE *OUTPUT_FILE, <a class="el" href="group__gdsl__types.html#g55b31c129e50e1231ab5aba5eee3b0d8">gdsl_location_t</a> LOCATION, void *USER_DATA)          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>GDSL Write element function type. <p>This function type is for writing a gdsl_element_t E to OUTPUT_FILE. Additional USER_DATA could be passed to it.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>E</em>&nbsp;</td><td>The gdsl element to write. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>OUTPUT_FILE</em>&nbsp;</td><td>The file where to write E. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>LOCATION</em>&nbsp;</td><td>The location of E in the data structure. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>USER_DATA</em>&nbsp;</td><td>User's datas. </td></tr>  </table></dl><p>Definition at line <a class="el" href="gdsl__types_8h-source.html#l00229">229</a> of file <a class="el" href="gdsl__types_8h-source.html">gdsl_types.h</a>.    </td>  </tr></table><a class="anchor" name="g9c34ac44da309b004570530c8cec8a0e"></a><!-- doxytag: member="gdsl_types.h::ulong" ref="g9c34ac44da309b004570530c8cec8a0e" args="" --><p>

⌨️ 快捷键说明

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