Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > e6f1a3debfddb2a6cccaab627266a0ea > files > 3326

mrpt-doc-0.9.0-0.5.fc14.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>The MRPT project: mrpt::math::CArrayPOD&lt; T, N &gt; Class Template Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<div align="left"><a href="http://www.mrpt.org/">Main MRPT website</a> &gt; <b>C++ reference</b> </div>
<div align="right">
<a href="index.html"><img border="0" src="mrpt_logo.png" alt="MRPT logo"></a>
</div>
<!-- Generated by Doxygen 1.6.2-20100208 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Search" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespacemrpt.html">mrpt</a>::<a class="el" href="namespacemrpt_1_1math.html">math</a>::<a class="el" href="classmrpt_1_1math_1_1_c_array_p_o_d.html">CArrayPOD</a>
  </div>
</div>
<div class="contents">
<h1>mrpt::math::CArrayPOD&lt; T, N &gt; Class Template Reference</h1><!-- doxytag: class="mrpt::math::CArrayPOD" --><!-- doxytag: inherits="mrpt::math::CArray" -->
<p>A <a class="el" href="classmrpt_1_1math_1_1_c_array.html" title="A STL container (as wrapper) for arrays of constant size defined at compile time...">CArray</a> for Plain Old Datatypes (POD), that is, int's, double's, etc or struct's with only PODs.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_c_array_8h_source.html">mrpt/math/CArray.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for mrpt::math::CArrayPOD&lt; T, N &gt;:</div>
<div class="dynsection">
<div class="center"><img src="classmrpt_1_1math_1_1_c_array_p_o_d__inherit__graph.png" border="0" usemap="#mrpt_1_1math_1_1_c_array_p_o_d_3_01_t_00_01_n_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="mrpt_1_1math_1_1_c_array_p_o_d_3_01_t_00_01_n_01_4_inherit__map" id="mrpt_1_1math_1_1_c_array_p_o_d_3_01_t_00_01_n_01_4_inherit__map">
<area shape="rect" id="node5" href="classmrpt_1_1math_1_1_c_array_numeric.html" title="CArrayNumeric\&lt; double, 4 \&gt;" alt="" coords="521,5,711,35"/><area shape="rect" id="node7" href="classmrpt_1_1math_1_1_c_array_numeric.html" title="CArrayNumeric\&lt; double, N \&gt;" alt="" coords="520,59,712,88"/><area shape="rect" id="node13" href="classmrpt_1_1math_1_1_c_array_numeric.html" title="CArrayNumeric\&lt; float, N \&gt;" alt="" coords="527,112,705,141"/><area shape="rect" id="node17" href="classmrpt_1_1math_1_1_c_array_numeric.html" title="CArrayNumeric\&lt; int, N \&gt;" alt="" coords="532,165,700,195"/><area shape="rect" id="node21" href="classmrpt_1_1math_1_1_c_array_numeric.html" title="CArrayNumeric\&lt; T, 4 \&gt;" alt="" coords="537,219,695,248"/><area shape="rect" id="node25" href="classmrpt_1_1math_1_1_c_array_numeric.html" title="CArrayNumeric\&lt; unsigned int, N \&gt;" alt="" coords="504,272,728,301"/><area shape="rect" id="node29" href="classmrpt_1_1math_1_1_c_array_numeric.html" title="A CArrayPOD for numeric types, supporting several mathematical operations." alt="" coords="500,325,732,355"/><area shape="rect" id="node2" href="classmrpt_1_1math_1_1_c_array.html" title="A STL container (as wrapper) for arrays of constant size defined at compile time..." alt="" coords="5,165,189,195"/><area shape="rect" id="node9" href="classmrpt_1_1math_1_1_c_array_double.html" title="mrpt::math::CArrayDouble\&lt; 5 \&gt;" alt="" coords="784,5,989,35"/><area shape="rect" id="node11" href="classmrpt_1_1math_1_1_c_array_double.html" title="A partial specialization of CArrayNumeric for double numbers." alt="" coords="783,59,991,88"/><area shape="rect" id="node15" href="classmrpt_1_1math_1_1_c_array_float.html" title="A partial specialization of CArrayNumeric for float numbers." alt="" coords="788,112,985,141"/><area shape="rect" id="node19" href="classmrpt_1_1math_1_1_c_array_int.html" title="A partial specialization of CArrayNumeric for int numbers." alt="" coords="796,165,977,195"/><area shape="rect" id="node23" href="classmrpt_1_1math_1_1_c_quaternion.html" title="A quaternion, which can represent a 3D rotation as pair , with a real part &quot;r&quot;..." alt="" coords="788,219,985,248"/><area shape="rect" id="node27" href="classmrpt_1_1math_1_1_c_array_u_int.html" title="A partial specialization of CArrayNumeric for unsigned int numbers." alt="" coords="791,272,983,301"/><area shape="rect" id="node31" href="classmrpt_1_1math_1_1_c_quaternion.html" title="CQuaternion\&lt; double \&gt;" alt="" coords="808,325,965,355"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for mrpt::math::CArrayPOD&lt; T, N &gt;:</div>
<div class="dynsection">
<div class="center"><img src="classmrpt_1_1math_1_1_c_array_p_o_d__coll__graph.png" border="0" usemap="#mrpt_1_1math_1_1_c_array_p_o_d_3_01_t_00_01_n_01_4_coll__map" alt="Collaboration graph"/></div>
<map name="mrpt_1_1math_1_1_c_array_p_o_d_3_01_t_00_01_n_01_4_coll__map" id="mrpt_1_1math_1_1_c_array_p_o_d_3_01_t_00_01_n_01_4_coll__map">
<area shape="rect" id="node2" href="classmrpt_1_1math_1_1_c_array.html" title="A STL container (as wrapper) for arrays of constant size defined at compile time..." alt="" coords="20,101,204,131"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classmrpt_1_1math_1_1_c_array_p_o_d-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_array_p_o_d.html#a6e6ea521ea4f120a53b760c819c45b86">CArrayPOD</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor.  <a href="#a6e6ea521ea4f120a53b760c819c45b86"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_array_p_o_d.html#a1d74ba9a8a55514afeb077d9d38eb84d">CArrayPOD</a> (const T *ptr)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor from initial values ptr[0]-ptr[N-1].  <a href="#a1d74ba9a8a55514afeb077d9d38eb84d"></a><br/></td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;class ARRAYLIKE &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_c_array_p_o_d.html#a329aa1860a865b84e4f624aa070c5bd0">CArrayPOD</a> (const ARRAYLIKE &amp;obj)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initialization from a vector-like source, that is, anything implementing operator[].  <a href="#a329aa1860a865b84e4f624aa070c5bd0"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;typename T, std::size_t N&gt;<br/>
 class mrpt::math::CArrayPOD&lt; T, N &gt;</h3>

<p>A <a class="el" href="classmrpt_1_1math_1_1_c_array.html" title="A STL container (as wrapper) for arrays of constant size defined at compile time...">CArray</a> for Plain Old Datatypes (POD), that is, int's, double's, etc or struct's with only PODs. </p>
<p>Many methods are defined in this class that assume that each element of the array is simple so it can be, for example, copied with <a class="el" href="namespacemrpt_1_1system_1_1os.html#ae1184cfb1f617787dc4c9da98becbe3a" title="An OS and compiler independent version of &quot;memcpy&quot;.">memcpy()</a>, so only use this class to store POD types. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1math_1_1_c_array_numeric.html" title="A CArrayPOD for numeric types, supporting several mathematical operations.">CArrayNumeric</a>, <a class="el" href="classmrpt_1_1math_1_1_c_array.html" title="A STL container (as wrapper) for arrays of constant size defined at compile time...">CArray</a> </dd></dl>

<p>Definition at line <a class="el" href="_c_array_8h_source.html#l00319">319</a> of file <a class="el" href="_c_array_8h_source.html">CArray.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a6e6ea521ea4f120a53b760c819c45b86"></a><!-- doxytag: member="mrpt::math::CArrayPOD::CArrayPOD" ref="a6e6ea521ea4f120a53b760c819c45b86" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T, std::size_t N&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classmrpt_1_1math_1_1_c_array_p_o_d.html">mrpt::math::CArrayPOD</a>&lt; T, N &gt;::<a class="el" href="classmrpt_1_1math_1_1_c_array_p_o_d.html">CArrayPOD</a> </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Default constructor. </p>

<p>Definition at line <a class="el" href="_c_array_8h_source.html#l00322">322</a> of file <a class="el" href="_c_array_8h_source.html">CArray.h</a>.</p>

</div>
</div>
<a class="anchor" id="a1d74ba9a8a55514afeb077d9d38eb84d"></a><!-- doxytag: member="mrpt::math::CArrayPOD::CArrayPOD" ref="a1d74ba9a8a55514afeb077d9d38eb84d" args="(const T *ptr)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T, std::size_t N&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classmrpt_1_1math_1_1_c_array_p_o_d.html">mrpt::math::CArrayPOD</a>&lt; T, N &gt;::<a class="el" href="classmrpt_1_1math_1_1_c_array_p_o_d.html">CArrayPOD</a> </td>
          <td>(</td>
          <td class="paramtype">const T *&nbsp;</td>
          <td class="paramname"> <em>ptr</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructor from initial values ptr[0]-ptr[N-1]. </p>

<p>Definition at line <a class="el" href="_c_array_8h_source.html#l00324">324</a> of file <a class="el" href="_c_array_8h_source.html">CArray.h</a>.</p>

</div>
</div>
<a class="anchor" id="a329aa1860a865b84e4f624aa070c5bd0"></a><!-- doxytag: member="mrpt::math::CArrayPOD::CArrayPOD" ref="a329aa1860a865b84e4f624aa070c5bd0" args="(const ARRAYLIKE &amp;obj)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T, std::size_t N&gt; </div>
<div class="memtemplate">
template&lt;class ARRAYLIKE &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classmrpt_1_1math_1_1_c_array_p_o_d.html">mrpt::math::CArrayPOD</a>&lt; T, N &gt;::<a class="el" href="classmrpt_1_1math_1_1_c_array_p_o_d.html">CArrayPOD</a> </td>
          <td>(</td>
          <td class="paramtype">const ARRAYLIKE &amp;&nbsp;</td>
          <td class="paramname"> <em>obj</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initialization from a vector-like source, that is, anything implementing operator[]. </p>

<p>Definition at line <a class="el" href="_c_array_8h_source.html#l00332">332</a> of file <a class="el" href="_c_array_8h_source.html">CArray.h</a>.</p>

</div>
</div>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&nbsp;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>

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

<br><hr><br> <table border="0" width="100%"> <tr> <td> Page generated by <a href="http://www.doxygen.org" target="_blank">Doxygen 1.6.2-20100208</a> for MRPT 0.9.0 SVN: at Wed Jul 14 12:48:09 UTC 2010</td><td></td> <td width="100"> </td> <td width="150">  </td></tr> </table> </body></html>