<!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< T, N > 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> > <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 Page</span></a></li> <li><a href="pages.html"><span>Related 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 List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class 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< T, N > 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 <<a class="el" href="_c_array_8h_source.html">mrpt/math/CArray.h</a>></code></p> <div class="dynheader"> Inheritance diagram for mrpt::math::CArrayPOD< T, N >:</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\< double, 4 \>" alt="" coords="521,5,711,35"/><area shape="rect" id="node7" href="classmrpt_1_1math_1_1_c_array_numeric.html" title="CArrayNumeric\< double, N \>" alt="" coords="520,59,712,88"/><area shape="rect" id="node13" href="classmrpt_1_1math_1_1_c_array_numeric.html" title="CArrayNumeric\< float, N \>" alt="" coords="527,112,705,141"/><area shape="rect" id="node17" href="classmrpt_1_1math_1_1_c_array_numeric.html" title="CArrayNumeric\< int, N \>" alt="" coords="532,165,700,195"/><area shape="rect" id="node21" href="classmrpt_1_1math_1_1_c_array_numeric.html" title="CArrayNumeric\< T, 4 \>" alt="" coords="537,219,695,248"/><area shape="rect" id="node25" href="classmrpt_1_1math_1_1_c_array_numeric.html" title="CArrayNumeric\< unsigned int, N \>" 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\< 5 \>" 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 "r"..." 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\< double \>" 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< T, N >:</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"> </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"> </td><td class="mdescRight">Default constructor. <a href="#a6e6ea521ea4f120a53b760c819c45b86"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </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"> </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<class ARRAYLIKE > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top"> </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 &obj)</td></tr> <tr><td class="mdescLeft"> </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<typename T, std::size_t N><br/> class mrpt::math::CArrayPOD< T, N ></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 "memcpy".">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 & 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<typename T, std::size_t N> </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>< T, N >::<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> ) </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<typename T, std::size_t N> </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>< T, N >::<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 * </td> <td class="paramname"> <em>ptr</em></td> <td> ) </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 &obj)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename T, std::size_t N> </div> <div class="memtemplate"> template<class ARRAYLIKE > </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>< T, N >::<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 & </td> <td class="paramname"> <em>obj</em></td> <td> ) </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"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </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>