Sophie

Sophie

distrib > CentOS > 6 > i386 > media > updates > by-pkgid > 5d98b2995a46d456a9243853c7259619 > files > 13

libcollection-devel-0.5.0-28.el6_0.2.i686.rpm

<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!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>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>libcollection: collection_stack.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Search" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    </ul>
  </div>
<h1>collection_stack.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">    STACK</span>
<a name="l00003"></a>00003 <span class="comment"></span>
<a name="l00004"></a>00004 <span class="comment">    Header file for stack implemented using collection interface.</span>
<a name="l00005"></a>00005 <span class="comment"></span>
<a name="l00006"></a>00006 <span class="comment">    Copyright (C) Dmitri Pal &lt;dpal@redhat.com&gt; 2009</span>
<a name="l00007"></a>00007 <span class="comment"></span>
<a name="l00008"></a>00008 <span class="comment">    Collection Library is free software: you can redistribute it and/or modify</span>
<a name="l00009"></a>00009 <span class="comment">    it under the terms of the GNU Lesser General Public License as published by</span>
<a name="l00010"></a>00010 <span class="comment">    the Free Software Foundation, either version 3 of the License, or</span>
<a name="l00011"></a>00011 <span class="comment">    (at your option) any later version.</span>
<a name="l00012"></a>00012 <span class="comment"></span>
<a name="l00013"></a>00013 <span class="comment">    Collection Library is distributed in the hope that it will be useful,</span>
<a name="l00014"></a>00014 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00015"></a>00015 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00016"></a>00016 <span class="comment">    GNU Lesser General Public License for more details.</span>
<a name="l00017"></a>00017 <span class="comment"></span>
<a name="l00018"></a>00018 <span class="comment">    You should have received a copy of the GNU Lesser General Public License</span>
<a name="l00019"></a>00019 <span class="comment">    along with Collection Library.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
<a name="l00020"></a>00020 <span class="comment">*/</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef COLLECTION_STACK_H</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define COLLECTION_STACK_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;collection.h&gt;</span>
<a name="l00026"></a>00026 
<a name="l00037"></a><a class="code" href="group__stack.html#ga09635d976d3540471b9b009e63d67677">00037</a> <span class="preprocessor">#define COL_CLASS_STACK 30000</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00039"></a><a class="code" href="group__stack.html#ga47ade9e28cbc4450d94b928bedb2fa92">00039</a> <span class="preprocessor">#define COL_NAME_STACK  &quot;stack&quot;</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span>
<a name="l00052"></a>00052 <span class="keywordtype">int</span> <a class="code" href="group__stack.html#ga0963dfc2d69b08085e6b4daabb6b0b9b" title="Create stack.">col_create_stack</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> **stack);
<a name="l00053"></a>00053 
<a name="l00063"></a>00063 <span class="keywordtype">void</span> <a class="code" href="group__stack.html#ga04c21598bde78ae1578a963ae9a4cd34" title="Destroy stack.">col_destroy_stack</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *stack);
<a name="l00064"></a>00064 
<a name="l00097"></a>00097 <span class="keywordtype">int</span> <a class="code" href="group__stack.html#ga9eb5f7c2fb9fbee8d4aa89b9db4ae9e9" title="Push string to the stack.">col_push_str_property</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *stack,
<a name="l00098"></a>00098                           <span class="keyword">const</span> <span class="keywordtype">char</span> *property,
<a name="l00099"></a>00099                           <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">string</span>,
<a name="l00100"></a>00100                           <span class="keywordtype">int</span> length);
<a name="l00122"></a>00122 <span class="keywordtype">int</span> <a class="code" href="group__stack.html#gaeee8d22b5f3ab0d0b02360e44e3c3fd0" title="Push binary value to the stack.">col_push_binary_property</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *stack,
<a name="l00123"></a>00123                              <span class="keyword">const</span> <span class="keywordtype">char</span> *property,
<a name="l00124"></a>00124                              <span class="keywordtype">void</span> *binary_data,
<a name="l00125"></a>00125                              <span class="keywordtype">int</span> length);
<a name="l00146"></a>00146 <span class="keywordtype">int</span> <a class="code" href="group__stack.html#gadd4e63bc3fb713f111a4a99231263d82" title="Push integer value to the stack.">col_push_int_property</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *stack,
<a name="l00147"></a>00147                           <span class="keyword">const</span> <span class="keywordtype">char</span> *property,
<a name="l00148"></a>00148                           int32_t number);
<a name="l00169"></a>00169 <span class="keywordtype">int</span> <a class="code" href="group__stack.html#gac7beb1fb37e1d2b0bbb8a3d6f5c2ae49" title="Push unsigned value to the stack.">col_push_unsigned_property</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *stack,
<a name="l00170"></a>00170                                <span class="keyword">const</span> <span class="keywordtype">char</span> *property,
<a name="l00171"></a>00171                                uint32_t number);
<a name="l00192"></a>00192 <span class="keywordtype">int</span> <a class="code" href="group__stack.html#ga330b83af64a95fca63a6b9d19edcfe8f" title="Push long integer value to the stack.">col_push_long_property</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *stack,
<a name="l00193"></a>00193                            <span class="keyword">const</span> <span class="keywordtype">char</span> *property,
<a name="l00194"></a>00194                            int64_t number);
<a name="l00215"></a>00215 <span class="keywordtype">int</span> <a class="code" href="group__stack.html#ga3ec66cd2305e6b7c0ce2b2ddb3c121d9" title="Push unsigned long value to the stack.">col_push_ulong_property</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *stack,
<a name="l00216"></a>00216                             <span class="keyword">const</span> <span class="keywordtype">char</span> *property,
<a name="l00217"></a>00217                             uint64_t number);
<a name="l00238"></a>00238 <span class="keywordtype">int</span> <a class="code" href="group__stack.html#ga7df433a8d3e301384b0d6118642b6e48" title="Push floating point value to the stack.">col_push_double_property</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *stack,
<a name="l00239"></a>00239                              <span class="keyword">const</span> <span class="keywordtype">char</span> *property,
<a name="l00240"></a>00240                              <span class="keywordtype">double</span> number);
<a name="l00261"></a>00261 <span class="keywordtype">int</span> <a class="code" href="group__stack.html#ga02ab2e1dbc3dc1ec72d3e63c5caee7ed" title="Push Boolean value to the stack.">col_push_bool_property</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *stack,
<a name="l00262"></a>00262                            <span class="keyword">const</span> <span class="keywordtype">char</span> *property,
<a name="l00263"></a>00263                            <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> logical);
<a name="l00264"></a>00264 
<a name="l00288"></a>00288 <span class="keywordtype">int</span> <a class="code" href="group__stack.html#gaf0c1e52b7bfa5dc018d42c2a4098aa1f" title="Push value of any type to the stack.">col_push_any_property</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *stack,
<a name="l00289"></a>00289                           <span class="keyword">const</span> <span class="keywordtype">char</span> *property,
<a name="l00290"></a>00290                           <span class="keywordtype">int</span> type,
<a name="l00291"></a>00291                           <span class="keywordtype">void</span> *data,
<a name="l00292"></a>00292                           <span class="keywordtype">int</span> length);
<a name="l00293"></a>00293 
<a name="l00305"></a>00305 <span class="keywordtype">int</span> <a class="code" href="group__stack.html#ga8e8c3a1a8111365fe6c410718f4cf3db" title="Push item into the stack.">col_push_item</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *stack,
<a name="l00306"></a>00306                   <span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *item);
<a name="l00307"></a>00307 
<a name="l00308"></a>00308 
<a name="l00322"></a>00322 <span class="keywordtype">int</span> <a class="code" href="group__stack.html#ga636064c9bea75e8c27bc1d666906a2de" title="Pop item from the stack.">col_pop_item</a>(<span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> *stack,
<a name="l00323"></a>00323                  <span class="keyword">struct</span> <a class="code" href="structcollection__item.html" title="Opaque structure that holds one property.">collection_item</a> **item);
<a name="l00324"></a>00324 
<a name="l00325"></a>00325 <span class="preprocessor">#endif</span>
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Data Structures</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"/><address style="text-align: right;"><small>Generated on 25 Jun 2011 for libcollection by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>