Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 6e7a2755bd78c9deedab199b86e675f3 > files > 6736

gnuradio-doc-3.2.2-9.fc14.x86_64.rpm

<!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>GNU Radio 3.2.2 C++ API: pmt.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">GNU Radio 3.2.2 C++ API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('pmt_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<h1>pmt.h</h1>  </div>
</div>
<div class="contents">
<a href="pmt_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- c++ -*- */</span>
<a name="l00002"></a>00002 <span class="comment">/*</span>
<a name="l00003"></a>00003 <span class="comment"> * Copyright 2006,2009 Free Software Foundation, Inc.</span>
<a name="l00004"></a>00004 <span class="comment"> * </span>
<a name="l00005"></a>00005 <span class="comment"> * This file is part of GNU Radio</span>
<a name="l00006"></a>00006 <span class="comment"> * </span>
<a name="l00007"></a>00007 <span class="comment"> * GNU Radio is free software; you can redistribute it and/or modify</span>
<a name="l00008"></a>00008 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
<a name="l00009"></a>00009 <span class="comment"> * the Free Software Foundation; either version 3, or (at your option)</span>
<a name="l00010"></a>00010 <span class="comment"> * any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> * </span>
<a name="l00012"></a>00012 <span class="comment"> * GNU Radio is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00015"></a>00015 <span class="comment"> * GNU General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> * </span>
<a name="l00017"></a>00017 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
<a name="l00018"></a>00018 <span class="comment"> * along with GNU Radio; see the file COPYING.  If not, write to</span>
<a name="l00019"></a>00019 <span class="comment"> * the Free Software Foundation, Inc., 51 Franklin Street,</span>
<a name="l00020"></a>00020 <span class="comment"> * Boston, MA 02110-1301, USA.</span>
<a name="l00021"></a>00021 <span class="comment"> */</span>
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="preprocessor">#ifndef INCLUDED_PMT_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define INCLUDED_PMT_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;boost/shared_ptr.hpp&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;boost/any.hpp&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;complex&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;stdint.h&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;iosfwd&gt;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;stdexcept&gt;</span>
<a name="l00033"></a>00033 <span class="comment"></span>
<a name="l00034"></a>00034 <span class="comment">/*!</span>
<a name="l00035"></a>00035 <span class="comment"> * This file defines a polymorphic type and the operations on it.</span>
<a name="l00036"></a>00036 <span class="comment"> *</span>
<a name="l00037"></a>00037 <span class="comment"> * It draws heavily on the idea of scheme and lisp data types.</span>
<a name="l00038"></a>00038 <span class="comment"> * The interface parallels that in Guile 1.8, with the notable</span>
<a name="l00039"></a>00039 <span class="comment"> * exception that these objects are transparently reference counted.</span>
<a name="l00040"></a>00040 <span class="comment"> */</span>
<a name="l00041"></a>00041 <span class="comment"></span>
<a name="l00042"></a>00042 <span class="comment">/*!</span>
<a name="l00043"></a>00043 <span class="comment"> * \brief base class of all pmt types</span>
<a name="l00044"></a>00044 <span class="comment"> */</span>
<a name="l00045"></a><a class="code" href="pmt_8h.html#ada869da60b47c18042ca3f2bfd5b4e84">00045</a> <span class="keyword">class </span><a class="code" href="classpmt__base.html">pmt_base</a>;
<a name="l00046"></a>00046 <span class="comment"></span>
<a name="l00047"></a>00047 <span class="comment">/*!</span>
<a name="l00048"></a>00048 <span class="comment"> * \brief typedef for shared pointer (transparent reference counting).</span>
<a name="l00049"></a>00049 <span class="comment"> * See http://www.boost.org/libs/smart_ptr/smart_ptr.htm</span>
<a name="l00050"></a>00050 <span class="comment"> */</span>
<a name="l00051"></a>00051 <span class="keyword">typedef</span> <a class="code" href="classboost_1_1shared__ptr.html">boost::shared_ptr&lt;pmt_base&gt;</a> <a class="code" href="pmt_8h.html#ada869da60b47c18042ca3f2bfd5b4e84" title="typedef for shared pointer (transparent reference counting). See http://www.boost.org/libs/smart_ptr/smart_ptr.htm">pmt_t</a>;
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 
<a name="l00054"></a><a class="code" href="classpmt__exception.html">00054</a> <span class="keyword">class </span><a class="code" href="classpmt__exception.html">pmt_exception</a> : <span class="keyword">public</span> std::logic_error
<a name="l00055"></a>00055 {
<a name="l00056"></a>00056 <span class="keyword">public</span>:
<a name="l00057"></a>00057   <a class="code" href="classpmt__exception.html#af1106712ea9af90f1f43132182813eeb">pmt_exception</a>(<span class="keyword">const</span> std::string &amp;msg, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj);
<a name="l00058"></a>00058 };
<a name="l00059"></a>00059 
<a name="l00060"></a><a class="code" href="classpmt__wrong__type.html">00060</a> <span class="keyword">class </span><a class="code" href="classpmt__wrong__type.html">pmt_wrong_type</a> : <span class="keyword">public</span> <a class="code" href="classpmt__exception.html">pmt_exception</a>
<a name="l00061"></a>00061 {
<a name="l00062"></a>00062 <span class="keyword">public</span>:
<a name="l00063"></a>00063   <a class="code" href="classpmt__wrong__type.html#ac300d5a5fb2bcd74cbb8b12cfd2fce4c">pmt_wrong_type</a>(<span class="keyword">const</span> std::string &amp;msg, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj);
<a name="l00064"></a>00064 };
<a name="l00065"></a>00065 
<a name="l00066"></a><a class="code" href="classpmt__out__of__range.html">00066</a> <span class="keyword">class </span><a class="code" href="classpmt__out__of__range.html">pmt_out_of_range</a> : <span class="keyword">public</span> <a class="code" href="classpmt__exception.html">pmt_exception</a>
<a name="l00067"></a>00067 {
<a name="l00068"></a>00068 <span class="keyword">public</span>:
<a name="l00069"></a>00069   <a class="code" href="classpmt__out__of__range.html#a8d6fea08d95e2ff115fd1abdd89cc9ca">pmt_out_of_range</a>(<span class="keyword">const</span> std::string &amp;msg, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj);
<a name="l00070"></a>00070 };
<a name="l00071"></a>00071 
<a name="l00072"></a><a class="code" href="classpmt__notimplemented.html">00072</a> <span class="keyword">class </span><a class="code" href="classpmt__notimplemented.html">pmt_notimplemented</a> : <span class="keyword">public</span> <a class="code" href="classpmt__exception.html">pmt_exception</a>
<a name="l00073"></a>00073 {
<a name="l00074"></a>00074 <span class="keyword">public</span>:
<a name="l00075"></a>00075   <a class="code" href="classpmt__notimplemented.html#ac736b62b3a0e9d90678c2c9ca093025d">pmt_notimplemented</a>(<span class="keyword">const</span> std::string &amp;msg, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj);
<a name="l00076"></a>00076 };
<a name="l00077"></a>00077 
<a name="l00078"></a>00078 <span class="comment">/*</span>
<a name="l00079"></a>00079 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00080"></a>00080 <span class="comment"> * Booleans.  Two constants, #t and #f.</span>
<a name="l00081"></a>00081 <span class="comment"> *</span>
<a name="l00082"></a>00082 <span class="comment"> * In predicates, anything that is not #f is considered true.</span>
<a name="l00083"></a>00083 <span class="comment"> * I.e., there is a single false value, #f.</span>
<a name="l00084"></a>00084 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00085"></a>00085 <span class="comment"> */</span>
<a name="l00086"></a>00086 <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a540465db7fbc1f021fb41aa556d62234">PMT_T</a>;       <span class="comment">//&lt; \#t : boolean true constant</span>
<a name="l00087"></a>00087 <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#acaaedbc8f510c728577f7f29d26f33d9">PMT_F</a>;       <span class="comment">//&lt; \#f : boolean false constant</span>
<a name="l00088"></a>00088 <span class="comment"></span>
<a name="l00089"></a>00089 <span class="comment">//! Return true if obj is \#t or \#f, else return false.</span>
<a name="l00090"></a>00090 <span class="comment"></span><span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a986ace38ff008249c0434c4d56680569" title="Return true if obj is #t or #f, else return false.">pmt_is_bool</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj);
<a name="l00091"></a>00091 <span class="comment"></span>
<a name="l00092"></a>00092 <span class="comment">//! Return false if obj is \#f, else return true.</span>
<a name="l00093"></a>00093 <span class="comment"></span><span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#ad188dd28ca697d82221d3ada3cea91ee" title="Return false if obj is #f, else return true.">pmt_is_true</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj);
<a name="l00094"></a>00094 <span class="comment"></span>
<a name="l00095"></a>00095 <span class="comment">//! Return true if obj is \#f, else return true.</span>
<a name="l00096"></a>00096 <span class="comment"></span><span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a04bc18ce4123af19b52a9204accd83ce" title="Return true if obj is #f, else return true.">pmt_is_false</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj);
<a name="l00097"></a>00097 <span class="comment"></span>
<a name="l00098"></a>00098 <span class="comment">//! Return \#f is val is false, else return \#t.</span>
<a name="l00099"></a>00099 <span class="comment"></span><a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a3c44326222ffd47e8fb5262806313f1d" title="Return #f is val is false, else return #t.">pmt_from_bool</a>(<span class="keywordtype">bool</span> val);
<a name="l00100"></a>00100 <span class="comment"></span>
<a name="l00101"></a>00101 <span class="comment">//! Return true if val is PMT_T, return false when val is PMT_F, </span>
<a name="l00102"></a>00102 <span class="comment"></span><span class="comment">// else raise wrong_type exception.</span>
<a name="l00103"></a>00103 <span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a94d0eadd2212a2d75602f25bdbfc31ca" title="Return true if val is PMT_T, return false when val is PMT_F,.">pmt_to_bool</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> val);
<a name="l00104"></a>00104 
<a name="l00105"></a>00105 <span class="comment">/*</span>
<a name="l00106"></a>00106 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00107"></a>00107 <span class="comment"> *                             Symbols</span>
<a name="l00108"></a>00108 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00109"></a>00109 <span class="comment"> */</span>
<a name="l00110"></a>00110 <span class="comment"></span>
<a name="l00111"></a>00111 <span class="comment">//! Return true if obj is a symbol, else false.</span>
<a name="l00112"></a>00112 <span class="comment"></span><span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#afe9fe5642d26ffdaeddc841b12e3b20d" title="Return true if obj is a symbol, else false.">pmt_is_symbol</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj);
<a name="l00113"></a>00113 <span class="comment"></span>
<a name="l00114"></a>00114 <span class="comment">//! Return the symbol whose name is \p s.</span>
<a name="l00115"></a>00115 <span class="comment"></span><a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#ab80624180dfd799abf13f346e65ca088" title="Return the symbol whose name is s.">pmt_string_to_symbol</a>(<span class="keyword">const</span> std::string &amp;s);
<a name="l00116"></a>00116 <span class="comment"></span>
<a name="l00117"></a>00117 <span class="comment">//! Alias for pmt_string_to_symbol</span>
<a name="l00118"></a>00118 <span class="comment"></span><a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a278f34898118bce2e4a1e2ba276b13cc" title="Alias for pmt_string_to_symbol.">pmt_intern</a>(<span class="keyword">const</span> std::string &amp;s);
<a name="l00119"></a>00119 
<a name="l00120"></a>00120 <span class="comment"></span>
<a name="l00121"></a>00121 <span class="comment">/*!</span>
<a name="l00122"></a>00122 <span class="comment"> * If \p is a symbol, return the name of the symbol as a string.</span>
<a name="l00123"></a>00123 <span class="comment"> * Otherwise, raise the wrong_type exception.</span>
<a name="l00124"></a>00124 <span class="comment"> */</span>
<a name="l00125"></a>00125 <span class="keyword">const</span> std::string <a class="code" href="pmt_8h.html#a714750bb18159c3025f17e05ba442896">pmt_symbol_to_string</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> sym);
<a name="l00126"></a>00126 
<a name="l00127"></a>00127 <span class="comment">/*</span>
<a name="l00128"></a>00128 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00129"></a>00129 <span class="comment"> *           Numbers: we support integer, real and complex</span>
<a name="l00130"></a>00130 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00131"></a>00131 <span class="comment"> */</span>
<a name="l00132"></a>00132 <span class="comment"></span>
<a name="l00133"></a>00133 <span class="comment">//! Return true if obj is any kind of number, else false.</span>
<a name="l00134"></a>00134 <span class="comment"></span><span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a7883c6ef143d55b67be6c04f2b68b879" title="Return true if obj is any kind of number, else false.">pmt_is_number</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj);
<a name="l00135"></a>00135 
<a name="l00136"></a>00136 <span class="comment">/*</span>
<a name="l00137"></a>00137 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00138"></a>00138 <span class="comment"> *                             Integers</span>
<a name="l00139"></a>00139 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00140"></a>00140 <span class="comment"> */</span>
<a name="l00141"></a>00141 <span class="comment"></span>
<a name="l00142"></a>00142 <span class="comment">//! Return true if \p x is an integer number, else false</span>
<a name="l00143"></a>00143 <span class="comment"></span><span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#ac6f05bda26016e45d813cda16dd8af06" title="Return true if x is an integer number, else false.">pmt_is_integer</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x);
<a name="l00144"></a>00144 <span class="comment"></span>
<a name="l00145"></a>00145 <span class="comment">//! Return the pmt value that represents the integer \p x.</span>
<a name="l00146"></a>00146 <span class="comment"></span><a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#af40d5c1999c1b2df567d7282876396a6" title="Return the pmt value that represents the integer x.">pmt_from_long</a>(<span class="keywordtype">long</span> x);
<a name="l00147"></a>00147 <span class="comment"></span>
<a name="l00148"></a>00148 <span class="comment">/*!</span>
<a name="l00149"></a>00149 <span class="comment"> * \brief Convert pmt to long if possible.</span>
<a name="l00150"></a>00150 <span class="comment"> *</span>
<a name="l00151"></a>00151 <span class="comment"> * When \p x represents an exact integer that fits in a long,</span>
<a name="l00152"></a>00152 <span class="comment"> * return that integer.  Else raise an exception, either wrong_type</span>
<a name="l00153"></a>00153 <span class="comment"> * when x is not an exact integer, or out_of_range when it doesn&#39;t fit.</span>
<a name="l00154"></a>00154 <span class="comment"> */</span>
<a name="l00155"></a>00155 <span class="keywordtype">long</span> <a class="code" href="pmt_8h.html#a6aac99c35598701d02cfdd4b814de73b" title="Convert pmt to long if possible.">pmt_to_long</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x);
<a name="l00156"></a>00156 
<a name="l00157"></a>00157 <span class="comment">/*</span>
<a name="l00158"></a>00158 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00159"></a>00159 <span class="comment"> *                              Reals</span>
<a name="l00160"></a>00160 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00161"></a>00161 <span class="comment"> */</span>
<a name="l00162"></a>00162 
<a name="l00163"></a>00163 <span class="comment">/*</span>
<a name="l00164"></a>00164 <span class="comment"> * \brief Return true if \p obj is a real number, else false.</span>
<a name="l00165"></a>00165 <span class="comment"> */</span>
<a name="l00166"></a>00166 <span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#ab7f9e9389e32bd62cd35b395ed6994df">pmt_is_real</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj);
<a name="l00167"></a>00167 <span class="comment"></span>
<a name="l00168"></a>00168 <span class="comment">//! Return the pmt value that represents double \p x.</span>
<a name="l00169"></a>00169 <span class="comment"></span><a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#ae4f39ea87e3439bab44b7ac728bbb958" title="Return the pmt value that represents double x.">pmt_from_double</a>(<span class="keywordtype">double</span> x);
<a name="l00170"></a>00170 <span class="comment"></span>
<a name="l00171"></a>00171 <span class="comment">/*!</span>
<a name="l00172"></a>00172 <span class="comment"> * \brief Convert pmt to double if possible.</span>
<a name="l00173"></a>00173 <span class="comment"> *</span>
<a name="l00174"></a>00174 <span class="comment"> * Returns the number closest to \p val that is representable</span>
<a name="l00175"></a>00175 <span class="comment"> * as a double.  The argument \p val must be a real or integer, otherwise</span>
<a name="l00176"></a>00176 <span class="comment"> * a wrong_type exception is raised.</span>
<a name="l00177"></a>00177 <span class="comment"> */</span>
<a name="l00178"></a>00178 <span class="keywordtype">double</span> <a class="code" href="pmt_8h.html#af6007fb56b3e9a8cab3fcb0434067fb9" title="Convert pmt to double if possible.">pmt_to_double</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x);
<a name="l00179"></a>00179 
<a name="l00180"></a>00180 <span class="comment">/*</span>
<a name="l00181"></a>00181 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00182"></a>00182 <span class="comment"> *                             Complex</span>
<a name="l00183"></a>00183 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00184"></a>00184 <span class="comment"> */</span>
<a name="l00185"></a>00185 <span class="comment"></span>
<a name="l00186"></a>00186 <span class="comment">/*!</span>
<a name="l00187"></a>00187 <span class="comment"> * \brief return true if \p obj is a complex number, false otherwise.</span>
<a name="l00188"></a>00188 <span class="comment"> */</span>
<a name="l00189"></a>00189 <span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a8fe92f28edfe279b7d55f96e5e76455c" title="return true if obj is a complex number, false otherwise.">pmt_is_complex</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj);
<a name="l00190"></a>00190 <span class="comment"></span>
<a name="l00191"></a>00191 <span class="comment">//! Return a complex number constructed of the given real and imaginary parts.</span>
<a name="l00192"></a>00192 <span class="comment"></span><a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#ac2af9a0a8008c7a0f6a3ac820395c0cf" title="Return a complex number constructed of the given real and imaginary parts.">pmt_make_rectangular</a>(<span class="keywordtype">double</span> re, <span class="keywordtype">double</span> im);
<a name="l00193"></a>00193 <span class="comment"></span>
<a name="l00194"></a>00194 <span class="comment">/*!</span>
<a name="l00195"></a>00195 <span class="comment"> * If \p z is complex, real or integer, return the closest complex&lt;double&gt;.</span>
<a name="l00196"></a>00196 <span class="comment"> * Otherwise, raise the wrong_type exception.</span>
<a name="l00197"></a>00197 <span class="comment"> */</span>
<a name="l00198"></a>00198 std::complex&lt;double&gt; <a class="code" href="pmt_8h.html#a286bc6e7ae22cf6eb172a2ced92a99ab">pmt_to_complex</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> z);
<a name="l00199"></a>00199 
<a name="l00200"></a>00200 <span class="comment">/*</span>
<a name="l00201"></a>00201 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00202"></a>00202 <span class="comment"> *                              Pairs</span>
<a name="l00203"></a>00203 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00204"></a>00204 <span class="comment"> */</span>
<a name="l00205"></a>00205 
<a name="l00206"></a>00206 <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#aba0945ac11683535c229c6047c21c523">PMT_NIL</a>;     <span class="comment">//&lt; the empty list</span>
<a name="l00207"></a>00207 <span class="comment"></span>
<a name="l00208"></a>00208 <span class="comment">//! Return true if \p x is the empty list, otherwise return false.</span>
<a name="l00209"></a>00209 <span class="comment"></span><span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a75e0eda27ad81b09a122a9b2a84f2237" title="Return true if x is the empty list, otherwise return false.">pmt_is_null</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x);
<a name="l00210"></a>00210 <span class="comment"></span>
<a name="l00211"></a>00211 <span class="comment">//! Return true if \p obj is a pair, else false.</span>
<a name="l00212"></a>00212 <span class="comment"></span><span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a1459dd9fe19756cb1cb756d74a728a30" title="Return true if obj is a pair, else false.">pmt_is_pair</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj);
<a name="l00213"></a>00213 <span class="comment"></span>
<a name="l00214"></a>00214 <span class="comment">//! Return a newly allocated pair whose car is \p x and whose cdr is \p y.</span>
<a name="l00215"></a>00215 <span class="comment"></span><a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#abda0b00a7bb76f46f6d51134a4d9ccad" title="Return a newly allocated pair whose car is x and whose cdr is y.">pmt_cons</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> y);
<a name="l00216"></a>00216 <span class="comment"></span>
<a name="l00217"></a>00217 <span class="comment">//! If \p pair is a pair, return the car of the \p pair, otherwise raise wrong_type.</span>
<a name="l00218"></a>00218 <span class="comment"></span><a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#ae97161ce46fd1db7cd2b0793193ba158" title="If pair is a pair, return the car of the pair, otherwise raise wrong_type.">pmt_car</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> pair);
<a name="l00219"></a>00219 <span class="comment"></span>
<a name="l00220"></a>00220 <span class="comment">//! If \p pair is a pair, return the cdr of the \p pair, otherwise raise wrong_type.</span>
<a name="l00221"></a>00221 <span class="comment"></span><a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a99d4a349f44be79f899a6260633acdcf" title="If pair is a pair, return the cdr of the pair, otherwise raise wrong_type.">pmt_cdr</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> pair);
<a name="l00222"></a>00222 <span class="comment"></span>
<a name="l00223"></a>00223 <span class="comment">//! Stores \p value in the car field of \p pair.</span>
<a name="l00224"></a>00224 <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="pmt_8h.html#abc8f9064a33c4b2d5680b381b2f7b87f" title="Stores value in the car field of pair.">pmt_set_car</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> pair, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> value);
<a name="l00225"></a>00225 <span class="comment"></span>
<a name="l00226"></a>00226 <span class="comment">//! Stores \p value in the cdr field of \p pair.</span>
<a name="l00227"></a>00227 <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="pmt_8h.html#a2ddef797b8f2fb4dea1d14358daea1a2" title="Stores value in the cdr field of pair.">pmt_set_cdr</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> pair, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> value);
<a name="l00228"></a>00228 
<a name="l00229"></a>00229 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a7b410699f795518113a4a37e1aaf8a5c">pmt_caar</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> pair);
<a name="l00230"></a>00230 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a42c7d68b9858f0ccdc28254966d7809f">pmt_cadr</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> pair);
<a name="l00231"></a>00231 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#aa3228ac202a31a932f54ed321c4f7c6c">pmt_cdar</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> pair);
<a name="l00232"></a>00232 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a9efefd13dd8f90d05a0db2948207a44f">pmt_cddr</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> pair);
<a name="l00233"></a>00233 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a8cbb8aac6cd05b062707eb19bd8c3f1a">pmt_caddr</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> pair);
<a name="l00234"></a>00234 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#af72d8f03a6755e55e9b859dec5820f90">pmt_cadddr</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> pair);
<a name="l00235"></a>00235 
<a name="l00236"></a>00236 <span class="comment">/*</span>
<a name="l00237"></a>00237 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00238"></a>00238 <span class="comment"> *                             Vectors</span>
<a name="l00239"></a>00239 <span class="comment"> *</span>
<a name="l00240"></a>00240 <span class="comment"> * These vectors can hold any kind of objects.  Indexing is zero based.</span>
<a name="l00241"></a>00241 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00242"></a>00242 <span class="comment"> */</span>
<a name="l00243"></a>00243 <span class="comment"></span>
<a name="l00244"></a>00244 <span class="comment">//! Return true if \p x is a vector, othewise false.</span>
<a name="l00245"></a>00245 <span class="comment"></span><span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a71ab6a38d89f16dad9a9bc8be5584580" title="Return true if x is a vector, othewise false.">pmt_is_vector</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x);
<a name="l00246"></a>00246 <span class="comment"></span>
<a name="l00247"></a>00247 <span class="comment">//! Make a vector of length \p k, with initial values set to \p fill</span>
<a name="l00248"></a>00248 <span class="comment"></span><a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a1eb59f346efe3e59a7fa2c3b90e178e2" title="Make a vector of length k, with initial values set to fill.">pmt_make_vector</a>(<span class="keywordtype">size_t</span> k, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> fill);
<a name="l00249"></a>00249 <span class="comment"></span>
<a name="l00250"></a>00250 <span class="comment">/*!</span>
<a name="l00251"></a>00251 <span class="comment"> * Return the contents of position \p k of \p vector.</span>
<a name="l00252"></a>00252 <span class="comment"> * \p k must be a valid index of \p vector.</span>
<a name="l00253"></a>00253 <span class="comment"> */</span>
<a name="l00254"></a>00254 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a80ae35668c8ad063eb0cc24b3a84a7c7">pmt_vector_ref</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> vector, <span class="keywordtype">size_t</span> k);
<a name="l00255"></a>00255 <span class="comment"></span>
<a name="l00256"></a>00256 <span class="comment">//! Store \p obj in position \p k.</span>
<a name="l00257"></a>00257 <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="pmt_8h.html#a804568e99cb1c7f937226da8197f8634" title="Store obj in position k.">pmt_vector_set</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> vector, <span class="keywordtype">size_t</span> k, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj);
<a name="l00258"></a>00258 <span class="comment"></span>
<a name="l00259"></a>00259 <span class="comment">//! Store \p fill in every position of \p vector</span>
<a name="l00260"></a>00260 <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="pmt_8h.html#a2d6628bf84971e38cb5816c45a4e0e40" title="Store fill in every position of vector.">pmt_vector_fill</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> vector, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> fill);
<a name="l00261"></a>00261 <span class="comment"></span>
<a name="l00262"></a>00262 <span class="comment">/*!</span>
<a name="l00263"></a>00263 <span class="comment"> * &lt;pre&gt;</span>
<a name="l00264"></a>00264 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00265"></a>00265 <span class="comment"> *                     Uniform Numeric Vectors</span>
<a name="l00266"></a>00266 <span class="comment"> *</span>
<a name="l00267"></a>00267 <span class="comment"> * A uniform numeric vector is a vector whose elements are all of single</span>
<a name="l00268"></a>00268 <span class="comment"> * numeric type.  pmt offers uniform numeric vectors for signed and</span>
<a name="l00269"></a>00269 <span class="comment"> * unsigned 8-bit, 16-bit, 32-bit, and 64-bit integers, two sizes of</span>
<a name="l00270"></a>00270 <span class="comment"> * floating point values, and complex floating-point numbers of these</span>
<a name="l00271"></a>00271 <span class="comment"> * two sizes.  Indexing is zero based.</span>
<a name="l00272"></a>00272 <span class="comment"> *</span>
<a name="l00273"></a>00273 <span class="comment"> * The names of the functions include these tags in their names:</span>
<a name="l00274"></a>00274 <span class="comment"> *</span>
<a name="l00275"></a>00275 <span class="comment"> *    u8  unsigned 8-bit integers</span>
<a name="l00276"></a>00276 <span class="comment"> *    s8  signed 8-bit integers</span>
<a name="l00277"></a>00277 <span class="comment"> *   u16  unsigned 16-bit integers</span>
<a name="l00278"></a>00278 <span class="comment"> *   s16  signed 16-bit integers</span>
<a name="l00279"></a>00279 <span class="comment"> *   u32  unsigned 32-bit integers</span>
<a name="l00280"></a>00280 <span class="comment"> *   s32  signed 32-bit integers</span>
<a name="l00281"></a>00281 <span class="comment"> *   u64  unsigned 64-bit integers</span>
<a name="l00282"></a>00282 <span class="comment"> *   s64  signed 64-bit integers</span>
<a name="l00283"></a>00283 <span class="comment"> *   f32  the C++ type float</span>
<a name="l00284"></a>00284 <span class="comment"> *   f64  the C++ type double</span>
<a name="l00285"></a>00285 <span class="comment"> *   c32  the C++ type complex&lt;float&gt;</span>
<a name="l00286"></a>00286 <span class="comment"> *   c64  the C++ type complex&lt;double&gt;</span>
<a name="l00287"></a>00287 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00288"></a>00288 <span class="comment"> * &lt;/pre&gt;</span>
<a name="l00289"></a>00289 <span class="comment"> */</span>
<a name="l00290"></a>00290 <span class="comment"></span>
<a name="l00291"></a>00291 <span class="comment">//! true if \p x is any kind of uniform numeric vector</span>
<a name="l00292"></a>00292 <span class="comment"></span><span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a578005008e980780ac36deb9b4faae2c" title="true if x is any kind of uniform numeric vector">pmt_is_uniform_vector</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x);  
<a name="l00293"></a>00293 
<a name="l00294"></a>00294 <span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a26fa6ab718f861cb0d6f383c6f1985d1">pmt_is_u8vector</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x);
<a name="l00295"></a>00295 <span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#af3cdea33843803e36b6e80f0c8b64264">pmt_is_s8vector</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x);
<a name="l00296"></a>00296 <span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a0a8f7e38898193ea1a31c172a92d1977">pmt_is_u16vector</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x);
<a name="l00297"></a>00297 <span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a8ed72d0c2406d0eafc06a130626d9ebd">pmt_is_s16vector</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x);
<a name="l00298"></a>00298 <span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a8de8bf8852f39efe4e4a6da2c6f473bc">pmt_is_u32vector</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x);
<a name="l00299"></a>00299 <span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#abf570eaa6806ad3ccfb556db095798dc">pmt_is_s32vector</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x);
<a name="l00300"></a>00300 <span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a075c5719a312c237512ea1b0b5144ae0">pmt_is_u64vector</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x);
<a name="l00301"></a>00301 <span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#af069c0f99b385c6ee86eb8ed940e4a40">pmt_is_s64vector</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x);
<a name="l00302"></a>00302 <span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a9a0082dedb88e65f5e9c923d16a9a9c5">pmt_is_f32vector</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x);
<a name="l00303"></a>00303 <span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a6d24d3a240824af94cdcd8b9a8194de4">pmt_is_f64vector</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x);
<a name="l00304"></a>00304 <span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#ab3cb41433dab19a6b871dff8a2d64652">pmt_is_c32vector</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x);
<a name="l00305"></a>00305 <span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#ac9e61f2377ff57b0c22cd0f2bfd9b719">pmt_is_c64vector</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x);
<a name="l00306"></a>00306 
<a name="l00307"></a>00307 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a98e8101e0a72cbaa8d70ee7720d58c08">pmt_make_u8vector</a>(<span class="keywordtype">size_t</span> k, uint8_t fill);
<a name="l00308"></a>00308 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a6e9ee19a353bc0197c1deb14647dac62">pmt_make_s8vector</a>(<span class="keywordtype">size_t</span> k, int8_t fill);
<a name="l00309"></a>00309 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a52001fe3d87146c171bd1af500e33011">pmt_make_u16vector</a>(<span class="keywordtype">size_t</span> k, uint16_t fill);
<a name="l00310"></a>00310 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a5a6682a26df81625eb0500261ea19827">pmt_make_s16vector</a>(<span class="keywordtype">size_t</span> k, int16_t fill);
<a name="l00311"></a>00311 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#ae708b2be0d70feab4eebf66a836a1215">pmt_make_u32vector</a>(<span class="keywordtype">size_t</span> k, uint32_t fill);
<a name="l00312"></a>00312 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a85e203649cee34ea638e28218ef34989">pmt_make_s32vector</a>(<span class="keywordtype">size_t</span> k, int32_t fill);
<a name="l00313"></a>00313 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a6c79aef68df8f745c4c5249b5f8606a2">pmt_make_u64vector</a>(<span class="keywordtype">size_t</span> k, uint64_t fill);
<a name="l00314"></a>00314 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#ac4c10fe2fdb9e6a7ebe3362eaf1bbad9">pmt_make_s64vector</a>(<span class="keywordtype">size_t</span> k, int64_t fill);
<a name="l00315"></a>00315 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a2e63536f21dfa62ebe9bd368508f360d">pmt_make_f32vector</a>(<span class="keywordtype">size_t</span> k, <span class="keywordtype">float</span> fill);
<a name="l00316"></a>00316 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a92bb2b28c32f2d2a6e67c4b61cb19021">pmt_make_f64vector</a>(<span class="keywordtype">size_t</span> k, <span class="keywordtype">double</span> fill);
<a name="l00317"></a>00317 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a2a1dc3cff701f9d8042aa2b995573bcb">pmt_make_c32vector</a>(<span class="keywordtype">size_t</span> k, std::complex&lt;float&gt; fill);
<a name="l00318"></a>00318 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a08648e28f070bab6e972d3416a3743d3">pmt_make_c64vector</a>(<span class="keywordtype">size_t</span> k, std::complex&lt;double&gt; fill);
<a name="l00319"></a>00319 
<a name="l00320"></a>00320 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a1998a9dba5777d7403d5c835b6ac7926">pmt_init_u8vector</a>(<span class="keywordtype">size_t</span> k, <span class="keyword">const</span> uint8_t *data);
<a name="l00321"></a>00321 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a5f442f3a429a6992d92d16fbfd2de2e8">pmt_init_s8vector</a>(<span class="keywordtype">size_t</span> k, <span class="keyword">const</span> int8_t *data);
<a name="l00322"></a>00322 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#ab25a950f6673c7684df282272471b48b">pmt_init_u16vector</a>(<span class="keywordtype">size_t</span> k, <span class="keyword">const</span> uint16_t *data);
<a name="l00323"></a>00323 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a92a9080c31543652f7d8c60a94f84e1d">pmt_init_s16vector</a>(<span class="keywordtype">size_t</span> k, <span class="keyword">const</span> int16_t *data);
<a name="l00324"></a>00324 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a2c838e048d6bdb89eb77a703556e3fd4">pmt_init_u32vector</a>(<span class="keywordtype">size_t</span> k, <span class="keyword">const</span> uint32_t *data);
<a name="l00325"></a>00325 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#ab6b5e1ec072ae694fd4a6cd76d735086">pmt_init_s32vector</a>(<span class="keywordtype">size_t</span> k, <span class="keyword">const</span> int32_t *data);
<a name="l00326"></a>00326 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a74782227dd52b3727fae26a5184f268f">pmt_init_u64vector</a>(<span class="keywordtype">size_t</span> k, <span class="keyword">const</span> uint64_t *data);
<a name="l00327"></a>00327 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#ae15b8a384658d010a9f8de92e46f04f6">pmt_init_s64vector</a>(<span class="keywordtype">size_t</span> k, <span class="keyword">const</span> int64_t *data);
<a name="l00328"></a>00328 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a690fe3c37d8dac8a1169385805c13acf">pmt_init_f32vector</a>(<span class="keywordtype">size_t</span> k, <span class="keyword">const</span> <span class="keywordtype">float</span> *data);
<a name="l00329"></a>00329 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#ac3442b9374df4c95845816c1afedb41d">pmt_init_f64vector</a>(<span class="keywordtype">size_t</span> k, <span class="keyword">const</span> <span class="keywordtype">double</span> *data);
<a name="l00330"></a>00330 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a08277a982187754004b62a74684a0e11">pmt_init_c32vector</a>(<span class="keywordtype">size_t</span> k, <span class="keyword">const</span> std::complex&lt;float&gt; *data);
<a name="l00331"></a>00331 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#ad7bde2441a76246dc23c18523b82d6f4">pmt_init_c64vector</a>(<span class="keywordtype">size_t</span> k, <span class="keyword">const</span> std::complex&lt;double&gt; *data);
<a name="l00332"></a>00332 
<a name="l00333"></a>00333 uint8_t  <a class="code" href="pmt_8h.html#a83d4dd4d72932afee67991d436450444">pmt_u8vector_ref</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k);
<a name="l00334"></a>00334 int8_t   <a class="code" href="pmt_8h.html#ad13755fa85cced8513434b164042692a">pmt_s8vector_ref</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k);
<a name="l00335"></a>00335 uint16_t <a class="code" href="pmt_8h.html#a143f1f45851363fffb18f24b27695985">pmt_u16vector_ref</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k);
<a name="l00336"></a>00336 int16_t  <a class="code" href="pmt_8h.html#afb823e3e8ace251b3840cdf602060f63">pmt_s16vector_ref</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k);
<a name="l00337"></a>00337 uint32_t <a class="code" href="pmt_8h.html#aa379a51fc8ed8f07c8e6b8e7e66184a5">pmt_u32vector_ref</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k);
<a name="l00338"></a>00338 int32_t  <a class="code" href="pmt_8h.html#a556c80d508c79aaa676cb2c8f860cbe9">pmt_s32vector_ref</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k);
<a name="l00339"></a>00339 uint64_t <a class="code" href="pmt_8h.html#ab6479176235bd706762750a881c9dcfd">pmt_u64vector_ref</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k);
<a name="l00340"></a>00340 int64_t  <a class="code" href="pmt_8h.html#a1ce7dabe1993b199fba485e0a231aeb3">pmt_s64vector_ref</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k);
<a name="l00341"></a>00341 <span class="keywordtype">float</span>    <a class="code" href="pmt_8h.html#acbb43b05563b0cfbb8626a4dbc655870">pmt_f32vector_ref</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k);
<a name="l00342"></a>00342 <span class="keywordtype">double</span>   <a class="code" href="pmt_8h.html#a736c603f9971f017881cbdbade9f41a2">pmt_f64vector_ref</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k);
<a name="l00343"></a>00343 std::complex&lt;float&gt;  <a class="code" href="pmt_8h.html#a63bff4dec451f401958506dcfc959fb9">pmt_c32vector_ref</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k);
<a name="l00344"></a>00344 std::complex&lt;double&gt; <a class="code" href="pmt_8h.html#afbd8fc7e5f5a091b878bc3fd5b5a85e9">pmt_c64vector_ref</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k);
<a name="l00345"></a>00345 
<a name="l00346"></a>00346 <span class="keywordtype">void</span> <a class="code" href="pmt_8h.html#a7bd1f126a2b31b57cd0c387aae515da2">pmt_u8vector_set</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k, uint8_t x);  <span class="comment">//&lt; v[k] = x</span>
<a name="l00347"></a>00347 <span class="keywordtype">void</span> <a class="code" href="pmt_8h.html#aca4de5f67654bdc88270821e02278f0e">pmt_s8vector_set</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k, int8_t x);
<a name="l00348"></a>00348 <span class="keywordtype">void</span> <a class="code" href="pmt_8h.html#a94e08825d36a93506367bea0e734e43d">pmt_u16vector_set</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k, uint16_t x);
<a name="l00349"></a>00349 <span class="keywordtype">void</span> <a class="code" href="pmt_8h.html#a710206560e756f47ce1c827235a58b4c">pmt_s16vector_set</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k, int16_t x);
<a name="l00350"></a>00350 <span class="keywordtype">void</span> <a class="code" href="pmt_8h.html#a8da8a127c9cc76093c546fc0f5dacd34">pmt_u32vector_set</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k, uint32_t x);
<a name="l00351"></a>00351 <span class="keywordtype">void</span> <a class="code" href="pmt_8h.html#a7569bf12671ec5c24656db5474bec587">pmt_s32vector_set</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k, int32_t x);
<a name="l00352"></a>00352 <span class="keywordtype">void</span> <a class="code" href="pmt_8h.html#a05a8bd64cb9986f05335a4b28975bfaa">pmt_u64vector_set</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k, uint64_t x);
<a name="l00353"></a>00353 <span class="keywordtype">void</span> <a class="code" href="pmt_8h.html#a05e6c667002a96c8947a7cb40f0be604">pmt_s64vector_set</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k, int64_t x);
<a name="l00354"></a>00354 <span class="keywordtype">void</span> <a class="code" href="pmt_8h.html#adec0e0533986247554ba99ca882619dd">pmt_f32vector_set</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k, <span class="keywordtype">float</span> x);
<a name="l00355"></a>00355 <span class="keywordtype">void</span> <a class="code" href="pmt_8h.html#a185b7d472120f3172ca7e5374da0cf68">pmt_f64vector_set</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k, <span class="keywordtype">double</span> x);
<a name="l00356"></a>00356 <span class="keywordtype">void</span> <a class="code" href="pmt_8h.html#a7f700e68a7f80733d5b33294a4c02b71">pmt_c32vector_set</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k, std::complex&lt;float&gt; x);
<a name="l00357"></a>00357 <span class="keywordtype">void</span> <a class="code" href="pmt_8h.html#a191fb5bcb2265e85f14a444a6dca786d">pmt_c64vector_set</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> k, std::complex&lt;double&gt; x);
<a name="l00358"></a>00358 
<a name="l00359"></a>00359 <span class="comment">// Return const pointers to the elements</span>
<a name="l00360"></a>00360 
<a name="l00361"></a>00361 <span class="keyword">const</span> <span class="keywordtype">void</span> *<a class="code" href="pmt_8h.html#a531c7628c01366df91f3583663e060be">pmt_uniform_vector_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len);  <span class="comment">//&lt; works with any; len is in bytes</span>
<a name="l00362"></a>00362 
<a name="l00363"></a>00363 <span class="keyword">const</span> uint8_t  *<a class="code" href="pmt_8h.html#ae5318ddcc4e32cb6801bad3142d70ba7">pmt_u8vector_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len);  <span class="comment">//&lt; len is in elements</span>
<a name="l00364"></a>00364 <span class="keyword">const</span> int8_t   *<a class="code" href="pmt_8h.html#aae9b8aa582ba7aa84bcd98f82c28cab0">pmt_s8vector_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len);  <span class="comment">//&lt; len is in elements</span>
<a name="l00365"></a>00365 <span class="keyword">const</span> uint16_t *<a class="code" href="pmt_8h.html#a3fe1ea58d053429102dfadb52838b585">pmt_u16vector_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len); <span class="comment">//&lt; len is in elements</span>
<a name="l00366"></a>00366 <span class="keyword">const</span> int16_t  *<a class="code" href="pmt_8h.html#a3160e3309e329ab782d02a8ff3e258da">pmt_s16vector_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len); <span class="comment">//&lt; len is in elements</span>
<a name="l00367"></a>00367 <span class="keyword">const</span> uint32_t *<a class="code" href="pmt_8h.html#a8ad8044725341cc563eb0b4a235995d1">pmt_u32vector_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len); <span class="comment">//&lt; len is in elements</span>
<a name="l00368"></a>00368 <span class="keyword">const</span> int32_t  *<a class="code" href="pmt_8h.html#ab0f216193f43bb1c7eff9489a2401ecb">pmt_s32vector_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len); <span class="comment">//&lt; len is in elements</span>
<a name="l00369"></a>00369 <span class="keyword">const</span> uint64_t *<a class="code" href="pmt_8h.html#ab69e5302c1f8edb0298504e9d9b47f24">pmt_u64vector_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len); <span class="comment">//&lt; len is in elements</span>
<a name="l00370"></a>00370 <span class="keyword">const</span> int64_t  *<a class="code" href="pmt_8h.html#adcbc5fa3ec03e21a028bac03ec66de26">pmt_s64vector_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len); <span class="comment">//&lt; len is in elements</span>
<a name="l00371"></a>00371 <span class="keyword">const</span> <span class="keywordtype">float</span>    *<a class="code" href="pmt_8h.html#a89b46d6b1eaa52dae044817982ea3d1a">pmt_f32vector_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len); <span class="comment">//&lt; len is in elements</span>
<a name="l00372"></a>00372 <span class="keyword">const</span> <span class="keywordtype">double</span>   *<a class="code" href="pmt_8h.html#adde115d9fdfc7a0c8c973a439fbe6522">pmt_f64vector_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len); <span class="comment">//&lt; len is in elements</span>
<a name="l00373"></a>00373 <span class="keyword">const</span> std::complex&lt;float&gt;  *<a class="code" href="pmt_8h.html#a7571f170eb699aa969786223f654393e">pmt_c32vector_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len); <span class="comment">//&lt; len is in elements</span>
<a name="l00374"></a>00374 <span class="keyword">const</span> std::complex&lt;double&gt; *<a class="code" href="pmt_8h.html#ad4e61e88da0987993247e01700233393">pmt_c64vector_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len); <span class="comment">//&lt; len is in elements</span>
<a name="l00375"></a>00375 
<a name="l00376"></a>00376 <span class="comment">// Return non-const pointers to the elements</span>
<a name="l00377"></a>00377 
<a name="l00378"></a>00378 <span class="keywordtype">void</span> *<a class="code" href="pmt_8h.html#a0b3db686b52cb585511f5f056f3caac7">pmt_uniform_vector_writable_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len);  <span class="comment">//&lt; works with any; len is in bytes</span>
<a name="l00379"></a>00379 
<a name="l00380"></a>00380 uint8_t  *<a class="code" href="pmt_8h.html#ace0a507c1d053a44696a1b9af6b6e49f">pmt_u8vector_writable_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len);  <span class="comment">//&lt; len is in elements</span>
<a name="l00381"></a>00381 int8_t   *<a class="code" href="pmt_8h.html#ac479652e07752f3627699d636ade236e">pmt_s8vector_writable_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len);  <span class="comment">//&lt; len is in elements</span>
<a name="l00382"></a>00382 uint16_t *<a class="code" href="pmt_8h.html#a92746ce416f6e08262ac6323d7499f8b">pmt_u16vector_writable_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len); <span class="comment">//&lt; len is in elements</span>
<a name="l00383"></a>00383 int16_t  *<a class="code" href="pmt_8h.html#a744377a234363139a19b678ce6ba0349">pmt_s16vector_writable_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len); <span class="comment">//&lt; len is in elements</span>
<a name="l00384"></a>00384 uint32_t *<a class="code" href="pmt_8h.html#a40a3bdb68e65f495b776cc5e974c5975">pmt_u32vector_writable_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len); <span class="comment">//&lt; len is in elements</span>
<a name="l00385"></a>00385 int32_t  *<a class="code" href="pmt_8h.html#af1621127eee3929812ed85bb2252b604">pmt_s32vector_writable_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len); <span class="comment">//&lt; len is in elements</span>
<a name="l00386"></a>00386 uint64_t *<a class="code" href="pmt_8h.html#a0394e17ac1fa4b08b5c1122a82f6df98">pmt_u64vector_writable_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len); <span class="comment">//&lt; len is in elements</span>
<a name="l00387"></a>00387 int64_t  *<a class="code" href="pmt_8h.html#a2fa9530f3a56a6bde50f3206f0267c82">pmt_s64vector_writable_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len); <span class="comment">//&lt; len is in elements</span>
<a name="l00388"></a>00388 <span class="keywordtype">float</span>    *<a class="code" href="pmt_8h.html#a401782235bdbb498d5b4f6dba243223f">pmt_f32vector_writable_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len); <span class="comment">//&lt; len is in elements</span>
<a name="l00389"></a>00389 <span class="keywordtype">double</span>   *<a class="code" href="pmt_8h.html#a09c3630b42d1b441dcfde255f166a3de">pmt_f64vector_writable_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len); <span class="comment">//&lt; len is in elements</span>
<a name="l00390"></a>00390 std::complex&lt;float&gt;  *<a class="code" href="pmt_8h.html#a4987b7a808113c246d3fca6fa52bcaa8">pmt_c32vector_writable_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len); <span class="comment">//&lt; len is in elements</span>
<a name="l00391"></a>00391 std::complex&lt;double&gt; *<a class="code" href="pmt_8h.html#a54b8f45d4ef387c2627654b5a1ab4aaf">pmt_c64vector_writable_elements</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v, <span class="keywordtype">size_t</span> &amp;len); <span class="comment">//&lt; len is in elements</span>
<a name="l00392"></a>00392 
<a name="l00393"></a>00393 <span class="comment">/*</span>
<a name="l00394"></a>00394 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00395"></a>00395 <span class="comment"> *         Dictionary (a.k.a associative array, hash, map)</span>
<a name="l00396"></a>00396 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00397"></a>00397 <span class="comment"> */</span>
<a name="l00398"></a>00398 <span class="comment"></span>
<a name="l00399"></a>00399 <span class="comment">//! Return true if \p obj is a dictionary</span>
<a name="l00400"></a>00400 <span class="comment"></span><span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#aa63605033f13b52ea631742c7f452a25" title="Return true if obj is a dictionary.">pmt_is_dict</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj);
<a name="l00401"></a>00401 <span class="comment"></span>
<a name="l00402"></a>00402 <span class="comment">//! make an empty dictionary</span>
<a name="l00403"></a>00403 <span class="comment"></span><a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#acf4bedc2a002187ac177cde2ee762cad" title="make an empty dictionary">pmt_make_dict</a>();
<a name="l00404"></a>00404 <span class="comment"></span>
<a name="l00405"></a>00405 <span class="comment">//! dict[key] = value</span>
<a name="l00406"></a>00406 <span class="comment"></span><span class="keywordtype">void</span>  <a class="code" href="pmt_8h.html#adab679fe03279ee25a9dbde7113a69a9" title="dict[key] = value">pmt_dict_set</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> dict, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> key, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> value);
<a name="l00407"></a>00407 <span class="comment"></span>
<a name="l00408"></a>00408 <span class="comment">//! Return true if \p key exists in \p dict</span>
<a name="l00409"></a>00409 <span class="comment"></span><span class="keywordtype">bool</span>  <a class="code" href="pmt_8h.html#a708cfa3d624c5443a62908c4f1e59921" title="Return true if key exists in dict.">pmt_dict_has_key</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> dict, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> key);
<a name="l00410"></a>00410 <span class="comment"></span>
<a name="l00411"></a>00411 <span class="comment">//! If \p key exists in \p dict, return associated value; otherwise return \p not_found.</span>
<a name="l00412"></a>00412 <span class="comment"></span><a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a57b0429de2b74c961586e62cb7146aa8" title="If key exists in dict, return associated value; otherwise return not_found.">pmt_dict_ref</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> dict, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> key, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> not_found);
<a name="l00413"></a>00413 <span class="comment"></span>
<a name="l00414"></a>00414 <span class="comment">//! Return list of (key . value) pairs</span>
<a name="l00415"></a>00415 <span class="comment"></span><a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#ab23435bdff8125010b827ce6176a35ba" title="Return list of (key . value) pairs.">pmt_dict_items</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> dict);
<a name="l00416"></a>00416 <span class="comment"></span>
<a name="l00417"></a>00417 <span class="comment">//! Return list of keys</span>
<a name="l00418"></a>00418 <span class="comment"></span><a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a801bb9bf00c13d1936aae8805c9d5dd5" title="Return list of keys.">pmt_dict_keys</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> dict);
<a name="l00419"></a>00419 <span class="comment"></span>
<a name="l00420"></a>00420 <span class="comment">//! Return list of values</span>
<a name="l00421"></a>00421 <span class="comment"></span><a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a9dbdd8e22f5007911bd90a025e3c53a5" title="Return list of values.">pmt_dict_values</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> dict);
<a name="l00422"></a>00422 
<a name="l00423"></a>00423 <span class="comment">/*</span>
<a name="l00424"></a>00424 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00425"></a>00425 <span class="comment"> *   Any (wraps boost::any -- can be used to wrap pretty much anything)</span>
<a name="l00426"></a>00426 <span class="comment"> *</span>
<a name="l00427"></a>00427 <span class="comment"> * Cannot be serialized or used across process boundaries.</span>
<a name="l00428"></a>00428 <span class="comment"> * See http://www.boost.org/doc/html/any.html</span>
<a name="l00429"></a>00429 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00430"></a>00430 <span class="comment"> */</span>
<a name="l00431"></a>00431 <span class="comment"></span>
<a name="l00432"></a>00432 <span class="comment">//! Return true if \p obj is an any</span>
<a name="l00433"></a>00433 <span class="comment"></span><span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a86875381708f4b68a3f0927bfcbc8800" title="Return true if obj is an any.">pmt_is_any</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj);
<a name="l00434"></a>00434 <span class="comment"></span>
<a name="l00435"></a>00435 <span class="comment">//! make an any</span>
<a name="l00436"></a>00436 <span class="comment"></span><a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a5cbed508b53d2d09d9408c758206ce3a" title="make an any">pmt_make_any</a>(<span class="keyword">const</span> boost::any &amp;any);
<a name="l00437"></a>00437 <span class="comment"></span>
<a name="l00438"></a>00438 <span class="comment">//! Return underlying boost::any</span>
<a name="l00439"></a>00439 <span class="comment"></span>boost::any <a class="code" href="pmt_8h.html#a95798163274decebf8f599b05643d1fc" title="Return underlying boost::any.">pmt_any_ref</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj);
<a name="l00440"></a>00440 <span class="comment"></span>
<a name="l00441"></a>00441 <span class="comment">//! Store \p any in \p obj</span>
<a name="l00442"></a>00442 <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="pmt_8h.html#affd84b8048ffa5f70ac236ff2f939eed" title="Store any in obj.">pmt_any_set</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj, <span class="keyword">const</span> boost::any &amp;any);
<a name="l00443"></a>00443 
<a name="l00444"></a>00444 
<a name="l00445"></a>00445 <span class="comment">/*</span>
<a name="l00446"></a>00446 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00447"></a>00447 <span class="comment"> *                        General functions</span>
<a name="l00448"></a>00448 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00449"></a>00449 <span class="comment"> */</span>
<a name="l00450"></a>00450 <span class="comment"></span>
<a name="l00451"></a>00451 <span class="comment">//! Return true if x and y are the same object; otherwise return false.</span>
<a name="l00452"></a>00452 <span class="comment"></span><span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a8d6ceb909b66ed966a32b289a5c5039d" title="Return true if x and y are the same object; otherwise return false.">pmt_eq</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> y);
<a name="l00453"></a>00453 <span class="comment"></span>
<a name="l00454"></a>00454 <span class="comment">/*!</span>
<a name="l00455"></a>00455 <span class="comment"> * \brief Return true if x and y should normally be regarded as the same object, else false.</span>
<a name="l00456"></a>00456 <span class="comment"> *</span>
<a name="l00457"></a>00457 <span class="comment"> * &lt;pre&gt;</span>
<a name="l00458"></a>00458 <span class="comment"> * eqv returns true if:</span>
<a name="l00459"></a>00459 <span class="comment"> *   x and y are the same object.</span>
<a name="l00460"></a>00460 <span class="comment"> *   x and y are both \#t or both \#f.</span>
<a name="l00461"></a>00461 <span class="comment"> *   x and y are both symbols and their names are the same.</span>
<a name="l00462"></a>00462 <span class="comment"> *   x and y are both numbers, and are numerically equal.</span>
<a name="l00463"></a>00463 <span class="comment"> *   x and y are both the empty list (nil).</span>
<a name="l00464"></a>00464 <span class="comment"> *   x and y are pairs or vectors that denote same location in store.</span>
<a name="l00465"></a>00465 <span class="comment"> * &lt;/pre&gt;</span>
<a name="l00466"></a>00466 <span class="comment"> */</span>
<a name="l00467"></a>00467 <span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a129f03f8ffe5d67407ac4620546a0eff" title="Return true if x and y should normally be regarded as the same object, else false.">pmt_eqv</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> y);
<a name="l00468"></a>00468 <span class="comment"></span>
<a name="l00469"></a>00469 <span class="comment">/*!</span>
<a name="l00470"></a>00470 <span class="comment"> * pmt_equal recursively compares the contents of pairs and vectors,</span>
<a name="l00471"></a>00471 <span class="comment"> * applying pmt_eqv on other objects such as numbers and symbols.  </span>
<a name="l00472"></a>00472 <span class="comment"> * pmt_equal may fail to terminate if its arguments are circular data</span>
<a name="l00473"></a>00473 <span class="comment"> * structures.</span>
<a name="l00474"></a>00474 <span class="comment"> */</span>
<a name="l00475"></a>00475 <span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a817f9401c262e33e848b0aa344e86d95">pmt_equal</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> y);
<a name="l00476"></a>00476 
<a name="l00477"></a>00477 <span class="comment"></span>
<a name="l00478"></a>00478 <span class="comment">//! Return the number of elements in v</span>
<a name="l00479"></a>00479 <span class="comment"></span><span class="keywordtype">size_t</span> <a class="code" href="pmt_8h.html#aa7cb0692a71fd4d71f58747cbce6ec2b" title="Return the number of elements in v.">pmt_length</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> v);
<a name="l00480"></a>00480 <span class="comment"></span>
<a name="l00481"></a>00481 <span class="comment">/*!</span>
<a name="l00482"></a>00482 <span class="comment"> * \brief Find the first pair in \p alist whose car field is \p obj</span>
<a name="l00483"></a>00483 <span class="comment"> *  and return that pair.</span>
<a name="l00484"></a>00484 <span class="comment"> *</span>
<a name="l00485"></a>00485 <span class="comment"> * \p alist (for &quot;association list&quot;) must be a list of pairs.  If no pair</span>
<a name="l00486"></a>00486 <span class="comment"> * in \p alist has \p obj as its car then \#f is returned.</span>
<a name="l00487"></a>00487 <span class="comment"> * Uses pmt_eq to compare \p obj with car fields of the pairs in \p alist.</span>
<a name="l00488"></a>00488 <span class="comment"> */</span>
<a name="l00489"></a>00489 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a19179d15b26c27eeacaf2748c1a8f728" title="Find the first pair in alist whose car field is obj and return that pair.">pmt_assq</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> alist);
<a name="l00490"></a>00490 <span class="comment"></span>
<a name="l00491"></a>00491 <span class="comment">/*!</span>
<a name="l00492"></a>00492 <span class="comment"> * \brief Find the first pair in \p alist whose car field is \p obj</span>
<a name="l00493"></a>00493 <span class="comment"> *  and return that pair.</span>
<a name="l00494"></a>00494 <span class="comment"> *</span>
<a name="l00495"></a>00495 <span class="comment"> * \p alist (for &quot;association list&quot;) must be a list of pairs.  If no pair</span>
<a name="l00496"></a>00496 <span class="comment"> * in \p alist has \p obj as its car then \#f is returned.</span>
<a name="l00497"></a>00497 <span class="comment"> * Uses pmt_eqv to compare \p obj with car fields of the pairs in \p alist.</span>
<a name="l00498"></a>00498 <span class="comment"> */</span>
<a name="l00499"></a>00499 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#aa33aa50891a24037e0f4c181e8b4a698" title="Find the first pair in alist whose car field is obj and return that pair.">pmt_assv</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> alist);
<a name="l00500"></a>00500 <span class="comment"></span>
<a name="l00501"></a>00501 <span class="comment">/*!</span>
<a name="l00502"></a>00502 <span class="comment"> * \brief Find the first pair in \p alist whose car field is \p obj</span>
<a name="l00503"></a>00503 <span class="comment"> *  and return that pair.</span>
<a name="l00504"></a>00504 <span class="comment"> *</span>
<a name="l00505"></a>00505 <span class="comment"> * \p alist (for &quot;association list&quot;) must be a list of pairs.  If no pair</span>
<a name="l00506"></a>00506 <span class="comment"> * in \p alist has \p obj as its car then \#f is returned.</span>
<a name="l00507"></a>00507 <span class="comment"> * Uses pmt_equal to compare \p obj with car fields of the pairs in \p alist.</span>
<a name="l00508"></a>00508 <span class="comment"> */</span>
<a name="l00509"></a>00509 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#addcc7b0e05708b795a2cc0b251ab6329" title="Find the first pair in alist whose car field is obj and return that pair.">pmt_assoc</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> alist);
<a name="l00510"></a>00510 <span class="comment"></span>
<a name="l00511"></a>00511 <span class="comment">/*!</span>
<a name="l00512"></a>00512 <span class="comment"> * \brief Apply \p proc element-wise to the elements of list and returns</span>
<a name="l00513"></a>00513 <span class="comment"> * a list of the results, in order.</span>
<a name="l00514"></a>00514 <span class="comment"> *</span>
<a name="l00515"></a>00515 <span class="comment"> * \p list must be a list.  The dynamic order in which \p proc is</span>
<a name="l00516"></a>00516 <span class="comment"> * applied to the elements of \p list is unspecified.</span>
<a name="l00517"></a>00517 <span class="comment"> */</span>
<a name="l00518"></a>00518 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#ae92cba56f14300ba36b1d92a9460fb4c" title="Apply proc element-wise to the elements of list and returns a list of the results, in order.">pmt_map</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> proc(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a>), <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> list);
<a name="l00519"></a>00519 <span class="comment"></span>
<a name="l00520"></a>00520 <span class="comment">/*!</span>
<a name="l00521"></a>00521 <span class="comment"> * \brief reverse \p list.</span>
<a name="l00522"></a>00522 <span class="comment"> *</span>
<a name="l00523"></a>00523 <span class="comment"> * \p list must be a proper list.</span>
<a name="l00524"></a>00524 <span class="comment"> */</span>
<a name="l00525"></a>00525 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#aa95d289d22c77799a67c6d8e61155c46" title="reverse list.">pmt_reverse</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> list);
<a name="l00526"></a>00526 <span class="comment"></span>
<a name="l00527"></a>00527 <span class="comment">/*!</span>
<a name="l00528"></a>00528 <span class="comment"> * \brief destructively reverse \p list.</span>
<a name="l00529"></a>00529 <span class="comment"> *</span>
<a name="l00530"></a>00530 <span class="comment"> * \p list must be a proper list.</span>
<a name="l00531"></a>00531 <span class="comment"> */</span>
<a name="l00532"></a>00532 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a2227855f72b0586aee9dd2e83e075989" title="destructively reverse list.">pmt_reverse_x</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> list);
<a name="l00533"></a>00533 <span class="comment"></span>
<a name="l00534"></a>00534 <span class="comment">/*!</span>
<a name="l00535"></a>00535 <span class="comment"> * \brief (acons x y a) == (cons (cons x y) a)</span>
<a name="l00536"></a>00536 <span class="comment"> */</span>
<a name="l00537"></a>00537 <span class="keyword">inline</span> <span class="keyword">static</span> <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a>
<a name="l00538"></a><a class="code" href="pmt_8h.html#abca73de3686244e3f3816b9591aac49f">00538</a> <a class="code" href="pmt_8h.html#abca73de3686244e3f3816b9591aac49f" title="(acons x y a) == (cons (cons x y) a)">pmt_acons</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> y, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> a)
<a name="l00539"></a>00539 {
<a name="l00540"></a>00540   <span class="keywordflow">return</span> <a class="code" href="pmt_8h.html#abda0b00a7bb76f46f6d51134a4d9ccad" title="Return a newly allocated pair whose car is x and whose cdr is y.">pmt_cons</a>(<a class="code" href="pmt_8h.html#abda0b00a7bb76f46f6d51134a4d9ccad" title="Return a newly allocated pair whose car is x and whose cdr is y.">pmt_cons</a>(x, y), a);
<a name="l00541"></a>00541 }
<a name="l00542"></a>00542 <span class="comment"></span>
<a name="l00543"></a>00543 <span class="comment">/*!</span>
<a name="l00544"></a>00544 <span class="comment"> * \brief locates \p nth element of \n list where the car is the &#39;zeroth&#39; element.</span>
<a name="l00545"></a>00545 <span class="comment"> */</span>
<a name="l00546"></a>00546 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a87f764716d9309a7dc8b90bd303cfa54" title="locates nth element of   list where the car is the &amp;#39;zeroth&amp;#39; element.">pmt_nth</a>(<span class="keywordtype">size_t</span> n, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> list);
<a name="l00547"></a>00547 <span class="comment"></span>
<a name="l00548"></a>00548 <span class="comment">/*!</span>
<a name="l00549"></a>00549 <span class="comment"> * \brief returns the tail of \p list that would be obtained by calling</span>
<a name="l00550"></a>00550 <span class="comment"> * cdr \p n times in succession.</span>
<a name="l00551"></a>00551 <span class="comment"> */</span>
<a name="l00552"></a>00552 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a48653cc8ba17f4ae1d3c052f3d7d085e" title="returns the tail of list that would be obtained by calling cdr n times in succession.">pmt_nthcdr</a>(<span class="keywordtype">size_t</span> n, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> list);
<a name="l00553"></a>00553 <span class="comment"></span>
<a name="l00554"></a>00554 <span class="comment">/*!</span>
<a name="l00555"></a>00555 <span class="comment"> * \brief Return the first sublist of \p list whose car is \p obj.</span>
<a name="l00556"></a>00556 <span class="comment"> * If \p obj does not occur in \p list, then \#f is returned.</span>
<a name="l00557"></a>00557 <span class="comment"> * pmt_memq use pmt_eq to compare \p obj with the elements of \p list.</span>
<a name="l00558"></a>00558 <span class="comment"> */</span>
<a name="l00559"></a>00559 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a9524284c4b9b18749c6bd801ec64c714" title="Return the first sublist of list whose car is obj. If obj does not occur in list, then #f is returned...">pmt_memq</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> list);
<a name="l00560"></a>00560 <span class="comment"></span>
<a name="l00561"></a>00561 <span class="comment">/*!</span>
<a name="l00562"></a>00562 <span class="comment"> * \brief Return the first sublist of \p list whose car is \p obj.</span>
<a name="l00563"></a>00563 <span class="comment"> * If \p obj does not occur in \p list, then \#f is returned.</span>
<a name="l00564"></a>00564 <span class="comment"> * pmt_memv use pmt_eqv to compare \p obj with the elements of \p list.</span>
<a name="l00565"></a>00565 <span class="comment"> */</span>
<a name="l00566"></a>00566 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#afd185b7bffbd04233aa682ffe5401f44" title="Return the first sublist of list whose car is obj. If obj does not occur in list, then #f is returned...">pmt_memv</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> list);
<a name="l00567"></a>00567 <span class="comment"></span>
<a name="l00568"></a>00568 <span class="comment">/*!</span>
<a name="l00569"></a>00569 <span class="comment"> * \brief Return the first sublist of \p list whose car is \p obj.</span>
<a name="l00570"></a>00570 <span class="comment"> * If \p obj does not occur in \p list, then \#f is returned.</span>
<a name="l00571"></a>00571 <span class="comment"> * pmt_member use pmt_equal to compare \p obj with the elements of \p list.</span>
<a name="l00572"></a>00572 <span class="comment"> */</span>
<a name="l00573"></a>00573 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a17a4165e87fa2734507ef3abc95306ab" title="Return the first sublist of list whose car is obj. If obj does not occur in list, then #f is returned...">pmt_member</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> list);
<a name="l00574"></a>00574 <span class="comment"></span>
<a name="l00575"></a>00575 <span class="comment">/*!</span>
<a name="l00576"></a>00576 <span class="comment"> * \brief Return true if every element of \p list1 appears in \p list2, and false otherwise.</span>
<a name="l00577"></a>00577 <span class="comment"> * Comparisons are done with pmt_eqv.</span>
<a name="l00578"></a>00578 <span class="comment"> */</span>
<a name="l00579"></a>00579 <span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a59e5859728433162430e14f260aad89f" title="Return true if every element of list1 appears in list2, and false otherwise. Comparisons are done wit...">pmt_subsetp</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> list1, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> list2);
<a name="l00580"></a>00580 <span class="comment"></span>
<a name="l00581"></a>00581 <span class="comment">/*!</span>
<a name="l00582"></a>00582 <span class="comment"> * \brief Return a list of length 1 containing \p x1</span>
<a name="l00583"></a>00583 <span class="comment"> */</span>
<a name="l00584"></a>00584 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a0d24860e11375de2d565203e769bbedb" title="Return a list of length 1 containing x1.">pmt_list1</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x1);
<a name="l00585"></a>00585 <span class="comment"></span>
<a name="l00586"></a>00586 <span class="comment">/*!</span>
<a name="l00587"></a>00587 <span class="comment"> * \brief Return a list of length 2 containing \p x1, \p x2</span>
<a name="l00588"></a>00588 <span class="comment"> */</span>
<a name="l00589"></a>00589 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#adf27da8293bf7aa242059834ea5acac4" title="Return a list of length 2 containing x1, x2.">pmt_list2</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x1, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x2);
<a name="l00590"></a>00590 <span class="comment"></span>
<a name="l00591"></a>00591 <span class="comment">/*!</span>
<a name="l00592"></a>00592 <span class="comment"> * \brief Return a list of length 3 containing \p x1, \p x2, \p x3</span>
<a name="l00593"></a>00593 <span class="comment"> */</span>
<a name="l00594"></a>00594 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#ae95ccc9ebf1744f05f3037ce73653d06" title="Return a list of length 3 containing x1, x2, x3.">pmt_list3</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x1, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x2, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x3);
<a name="l00595"></a>00595 <span class="comment"></span>
<a name="l00596"></a>00596 <span class="comment">/*!</span>
<a name="l00597"></a>00597 <span class="comment"> * \brief Return a list of length 4 containing \p x1, \p x2, \p x3, \p x4</span>
<a name="l00598"></a>00598 <span class="comment"> */</span>
<a name="l00599"></a>00599 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a2a6049259d857f311c384afb7c392827" title="Return a list of length 4 containing x1, x2, x3, x4.">pmt_list4</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x1, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x2, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x3, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x4);
<a name="l00600"></a>00600 <span class="comment"></span>
<a name="l00601"></a>00601 <span class="comment">/*!</span>
<a name="l00602"></a>00602 <span class="comment"> * \brief Return a list of length 5 containing \p x1, \p x2, \p x3, \p x4, \p x5</span>
<a name="l00603"></a>00603 <span class="comment"> */</span>
<a name="l00604"></a>00604 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a65e1a2305d08f2f4027db8deeba60209" title="Return a list of length 5 containing x1, x2, x3, x4, x5.">pmt_list5</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x1, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x2, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x3, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x4, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x5);
<a name="l00605"></a>00605 <span class="comment"></span>
<a name="l00606"></a>00606 <span class="comment">/*!</span>
<a name="l00607"></a>00607 <span class="comment"> * \brief Return a list of length 6 containing \p x1, \p x2, \p x3, \p x4, \p</span>
<a name="l00608"></a>00608 <span class="comment"> * x5, \p x6</span>
<a name="l00609"></a>00609 <span class="comment"> */</span>
<a name="l00610"></a>00610 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a4492543a692b6e878d1a802312839992" title="Return a list of length 6 containing x1, x2, x3, x4, x5, x6.">pmt_list6</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x1, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x2, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x3, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x4, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x5, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> x6);
<a name="l00611"></a>00611 <span class="comment"></span>
<a name="l00612"></a>00612 <span class="comment">/*!</span>
<a name="l00613"></a>00613 <span class="comment"> * \brief Return \p list with \p item added to it.</span>
<a name="l00614"></a>00614 <span class="comment"> */</span>
<a name="l00615"></a>00615 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#abd054ca97a909a0a63f38f312c042a4d" title="Return list with item added to it.">pmt_list_add</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> list, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> item);
<a name="l00616"></a>00616 
<a name="l00617"></a>00617 
<a name="l00618"></a>00618 <span class="comment">/*</span>
<a name="l00619"></a>00619 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00620"></a>00620 <span class="comment"> *                           read / write</span>
<a name="l00621"></a>00621 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00622"></a>00622 <span class="comment"> */</span>
<a name="l00623"></a>00623 <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a586b4c641b9d0df49d6652e58d592ced">PMT_EOF</a>;     <span class="comment">//&lt; The end of file object</span>
<a name="l00624"></a>00624 <span class="comment"></span>
<a name="l00625"></a>00625 <span class="comment">//! return true if obj is the EOF object, otherwise return false.</span>
<a name="l00626"></a>00626 <span class="comment"></span><span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a1186b66929211d6c197c4559a56f9f5d" title="return true if obj is the EOF object, otherwise return false.">pmt_is_eof_object</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj);
<a name="l00627"></a>00627 <span class="comment"></span>
<a name="l00628"></a>00628 <span class="comment">/*!</span>
<a name="l00629"></a>00629 <span class="comment"> * read converts external representations of pmt objects into the</span>
<a name="l00630"></a>00630 <span class="comment"> * objects themselves.  Read returns the next object parsable from</span>
<a name="l00631"></a>00631 <span class="comment"> * the given input port, updating port to point to the first</span>
<a name="l00632"></a>00632 <span class="comment"> * character past the end of the external representation of the</span>
<a name="l00633"></a>00633 <span class="comment"> * object.</span>
<a name="l00634"></a>00634 <span class="comment"> *</span>
<a name="l00635"></a>00635 <span class="comment"> * If an end of file is encountered in the input before any</span>
<a name="l00636"></a>00636 <span class="comment"> * characters are found that can begin an object, then an end of file</span>
<a name="l00637"></a>00637 <span class="comment"> * object is returned.   The port remains open, and further attempts</span>
<a name="l00638"></a>00638 <span class="comment"> * to read will also return an end of file object.  If an end of file</span>
<a name="l00639"></a>00639 <span class="comment"> * is encountered after the beginning of an object&#39;s external</span>
<a name="l00640"></a>00640 <span class="comment"> * representation, but the external representation is incomplete and</span>
<a name="l00641"></a>00641 <span class="comment"> * therefore not parsable, an error is signaled.</span>
<a name="l00642"></a>00642 <span class="comment"> */</span>
<a name="l00643"></a>00643 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#a0d2291ae4edf78a6f82abf027dc4cda4">pmt_read</a>(std::istream &amp;port);
<a name="l00644"></a>00644 <span class="comment"></span>
<a name="l00645"></a>00645 <span class="comment">/*!</span>
<a name="l00646"></a>00646 <span class="comment"> * Write a written representation of \p obj to the given \p port.</span>
<a name="l00647"></a>00647 <span class="comment"> */</span>
<a name="l00648"></a>00648 <span class="keywordtype">void</span> <a class="code" href="pmt_8h.html#afa02fc7fa93e0a3362f624af6b63df39">pmt_write</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj, std::ostream &amp;port);
<a name="l00649"></a>00649 <span class="comment"></span>
<a name="l00650"></a>00650 <span class="comment">/*!</span>
<a name="l00651"></a>00651 <span class="comment"> * Return a string representation of \p obj.</span>
<a name="l00652"></a>00652 <span class="comment"> * This is the same output as would be generated by pmt_write.</span>
<a name="l00653"></a>00653 <span class="comment"> */</span>
<a name="l00654"></a>00654 std::string <a class="code" href="pmt_8h.html#a9192f10d139bba0bb04672eba7376b17">pmt_write_string</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj);
<a name="l00655"></a>00655 
<a name="l00656"></a>00656 
<a name="l00657"></a>00657 std::ostream&amp; <a class="code" href="gr__basic__block_8h.html#acb2f610728a7f3cbd51a9a2eb60f059e">operator&lt;&lt;</a>(std::ostream &amp;os, <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj);
<a name="l00658"></a>00658 
<a name="l00659"></a>00659 
<a name="l00660"></a>00660 <span class="comment">/*</span>
<a name="l00661"></a>00661 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00662"></a>00662 <span class="comment"> *                    portable byte stream representation</span>
<a name="l00663"></a>00663 <span class="comment"> * ------------------------------------------------------------------------</span>
<a name="l00664"></a>00664 <span class="comment"> */</span><span class="comment"></span>
<a name="l00665"></a>00665 <span class="comment">/*!</span>
<a name="l00666"></a>00666 <span class="comment"> * \brief Write portable byte-serial representation of \p obj to \p sink</span>
<a name="l00667"></a>00667 <span class="comment"> */</span>
<a name="l00668"></a>00668 <span class="keywordtype">bool</span> <a class="code" href="pmt_8h.html#a6796b68b5d9dfd7c4e2ef1430bfa5397" title="Write portable byte-serial representation of obj to sink.">pmt_serialize</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> obj, std::streambuf &amp;sink);
<a name="l00669"></a>00669 <span class="comment"></span>
<a name="l00670"></a>00670 <span class="comment">/*!</span>
<a name="l00671"></a>00671 <span class="comment"> * \brief Create obj from portable byte-serial representation</span>
<a name="l00672"></a>00672 <span class="comment"> */</span>
<a name="l00673"></a>00673 <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> <a class="code" href="pmt_8h.html#aff69744acb7f8719a0e89c495161bc12" title="Create obj from portable byte-serial representation.">pmt_deserialize</a>(std::streambuf &amp;source);
<a name="l00674"></a>00674 
<a name="l00675"></a>00675 
<a name="l00676"></a>00676 <span class="keywordtype">void</span> <a class="code" href="pmt_8h.html#a8d617e76cc708c66c039324e96688bd8">pmt_dump_sizeof</a>(); <span class="comment">// debugging</span>
<a name="l00677"></a>00677 
<a name="l00678"></a>00678 <span class="preprocessor">#endif </span><span class="comment">/* INCLUDED_PMT_H */</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="pmt_8h.html">pmt.h</a>      </li>
      <li class="footer">Generated on Thu Feb 17 2011 for GNU Radio 3.2.2 C++ API by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </li>
    </ul>
  </div>

</body>
</html>