<!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>types.h Source File</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.7.5 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <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="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <div class="left"> <form id="FSearchBox" action="search.php" method="get"> <img id="MSearchSelect" src="search/mag.png" alt=""/> <input type="text" id="MSearchField" name="query" value="Search" size="20" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)"/> </form> </div><div class="right"></div> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <div class="header"> <div class="headertitle"> <div class="title">types.h</div> </div> </div> <div class="contents"> <a href="base_2include_2mrpt_2utils_2types_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* +---------------------------------------------------------------------------+</span> <a name="l00002"></a>00002 <span class="comment"> | The Mobile Robot Programming Toolkit (MRPT) C++ library |</span> <a name="l00003"></a>00003 <span class="comment"> | |</span> <a name="l00004"></a>00004 <span class="comment"> | http://www.mrpt.org/ |</span> <a name="l00005"></a>00005 <span class="comment"> | |</span> <a name="l00006"></a>00006 <span class="comment"> | Copyright (C) 2005-2011 University of Malaga |</span> <a name="l00007"></a>00007 <span class="comment"> | |</span> <a name="l00008"></a>00008 <span class="comment"> | This software was written by the Machine Perception and Intelligent |</span> <a name="l00009"></a>00009 <span class="comment"> | Robotics Lab, University of Malaga (Spain). |</span> <a name="l00010"></a>00010 <span class="comment"> | Contact: Jose-Luis Blanco <jlblanco@ctima.uma.es> |</span> <a name="l00011"></a>00011 <span class="comment"> | |</span> <a name="l00012"></a>00012 <span class="comment"> | This file is part of the MRPT project. |</span> <a name="l00013"></a>00013 <span class="comment"> | |</span> <a name="l00014"></a>00014 <span class="comment"> | MRPT is free software: you can redistribute it and/or modify |</span> <a name="l00015"></a>00015 <span class="comment"> | it under the terms of the GNU General Public License as published by |</span> <a name="l00016"></a>00016 <span class="comment"> | the Free Software Foundation, either version 3 of the License, or |</span> <a name="l00017"></a>00017 <span class="comment"> | (at your option) any later version. |</span> <a name="l00018"></a>00018 <span class="comment"> | |</span> <a name="l00019"></a>00019 <span class="comment"> | MRPT is distributed in the hope that it will be useful, |</span> <a name="l00020"></a>00020 <span class="comment"> | but WITHOUT ANY WARRANTY; without even the implied warranty of |</span> <a name="l00021"></a>00021 <span class="comment"> | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |</span> <a name="l00022"></a>00022 <span class="comment"> | GNU General Public License for more details. |</span> <a name="l00023"></a>00023 <span class="comment"> | |</span> <a name="l00024"></a>00024 <span class="comment"> | You should have received a copy of the GNU General Public License |</span> <a name="l00025"></a>00025 <span class="comment"> | along with MRPT. If not, see <http://www.gnu.org/licenses/>. |</span> <a name="l00026"></a>00026 <span class="comment"> | |</span> <a name="l00027"></a>00027 <span class="comment"> +---------------------------------------------------------------------------+ */</span> <a name="l00028"></a>00028 <a name="l00029"></a>00029 <span class="preprocessor">#ifndef mrpt_utils_types_H</span> <a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#define mrpt_utils_types_H</span> <a name="l00031"></a>00031 <span class="preprocessor"></span> <a name="l00032"></a>00032 <span class="preprocessor">#include <vector></span> <a name="l00033"></a>00033 <span class="preprocessor">#include <map></span> <a name="l00034"></a>00034 <span class="preprocessor">#include <string></span> <a name="l00035"></a>00035 <span class="preprocessor">#include <stdexcept></span> <a name="l00036"></a>00036 <span class="preprocessor">#include <cstdarg></span> <a name="l00037"></a>00037 <span class="preprocessor">#include <ctime></span> <a name="l00038"></a>00038 <a name="l00039"></a>00039 <span class="preprocessor">#include <<a class="code" href="mrpt__stdint_8h.html">mrpt/utils/mrpt_stdint.h</a>></span> <span class="comment">// compiler-independent version of "stdint.h"</span> <a name="l00040"></a>00040 <span class="preprocessor">#include <<a class="code" href="mrpt__inttypes_8h.html">mrpt/utils/mrpt_inttypes.h</a>></span> <span class="comment">// compiler-independent version of "inttypes.h"</span> <a name="l00041"></a>00041 <a name="l00042"></a>00042 <span class="comment">// needed here for a few basic types used in Eigen MRPT's plugin:</span> <a name="l00043"></a>00043 <span class="preprocessor">#include <<a class="code" href="math__frwds_8h.html">mrpt/math/math_frwds.h</a>></span> <a name="l00044"></a>00044 <a name="l00045"></a>00045 <span class="comment">// --------------------------------------------------</span> <a name="l00046"></a>00046 <span class="comment">// Include the Eigen3 library headers, including</span> <a name="l00047"></a>00047 <span class="comment">// MRPT's extensions:</span> <a name="l00048"></a>00048 <span class="comment">// --------------------------------------------------</span> <a name="l00049"></a>00049 <span class="preprocessor">#include <iostream></span> <span class="comment">// These headers are assumed by <mrpt/math/eigen_plugins.h>:</span> <a name="l00050"></a>00050 <span class="preprocessor">#include <fstream></span> <a name="l00051"></a>00051 <span class="preprocessor">#include <sstream></span> <a name="l00052"></a>00052 <span class="preprocessor">#ifdef EIGEN_MAJOR_VERSION</span> <a name="l00053"></a>00053 <span class="preprocessor"></span><span class="preprocessor"># error **FATAL ERROR**: MRPT headers must be included before Eigen headers.</span> <a name="l00054"></a>00054 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00055"></a>00055 <span class="preprocessor"></span><span class="preprocessor">#ifndef EIGEN_USE_NEW_STDVECTOR</span> <a name="l00056"></a><a class="code" href="base_2include_2mrpt_2utils_2types_8h.html#add81a3e8d99fc68c376b2e54acb2412c">00056</a> <span class="preprocessor"></span><span class="preprocessor"># define EIGEN_USE_NEW_STDVECTOR</span> <a name="l00057"></a>00057 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00058"></a>00058 <span class="preprocessor"></span><span class="preprocessor">#include <<a class="code" href="_dense.html">Eigen/Dense</a>></span> <a name="l00059"></a>00059 <span class="preprocessor">#include <Eigen/StdVector></span> <a name="l00060"></a>00060 <span class="preprocessor">#include <Eigen/StdDeque></span> <a name="l00061"></a>00061 <a name="l00062"></a>00062 <span class="preprocessor">#if !EIGEN_VERSION_AT_LEAST(2,90,0)</span> <a name="l00063"></a>00063 <span class="preprocessor"></span><span class="preprocessor">#error MRPT needs version 3.0.0-beta of Eigen or newer</span> <a name="l00064"></a>00064 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00065"></a>00065 <span class="preprocessor"></span> <a name="l00066"></a>00066 <span class="comment">// Template implementations that need to be after all Eigen includes:</span> <a name="l00067"></a>00067 <span class="preprocessor">#include EIGEN_MATRIXBASE_PLUGIN_POST_IMPL</span> <a name="l00068"></a>00068 <span class="preprocessor"></span><span class="comment">// --------------------------------------------------</span> <a name="l00069"></a>00069 <span class="comment">// End of Eigen includes</span> <a name="l00070"></a>00070 <span class="comment">// --------------------------------------------------</span> <a name="l00071"></a>00071 <a name="l00072"></a>00072 <a name="l00073"></a>00073 <span class="comment">// This must be put inside any MRPT class that inherits from an Eigen class:</span> <a name="l00074"></a><a class="code" href="base_2include_2mrpt_2utils_2types_8h.html#a5423f1c8bf92c8c2bb6592ee8ac333ef">00074</a> <span class="preprocessor">#define MRPT_EIGEN_DERIVED_CLASS_CTOR_OPERATOR_EQUAL(_CLASS_) \</span> <a name="l00075"></a>00075 <span class="preprocessor"></span><span class="comment"> /*! Assignment operator from any other Eigen class */</span> \ <a name="l00076"></a>00076 template<typename OtherDerived> \ <a name="l00077"></a>00077 inline mrpt_autotype & operator= (const Eigen::MatrixBase <OtherDerived>& other) { \ <a name="l00078"></a>00078 <span class="comment">/*Base::operator=(other.template cast<typename Base::Scalar>());*/</span> \ <a name="l00079"></a>00079 Base::operator=(other); \ <a name="l00080"></a>00080 return *this; \ <a name="l00081"></a>00081 } \ <a name="l00082"></a>00082 <span class="comment"> /*! Constructor from any other Eigen class */</span> \ <a name="l00083"></a>00083 template<typename OtherDerived> \ <a name="l00084"></a>00084 inline _CLASS_(const Eigen::MatrixBase <OtherDerived>& other) : Base(other.template cast<typename Base::Scalar>()) { } \ <a name="l00085"></a>00085 <a name="l00086"></a>00086 <span class="keyword">namespace </span>mrpt <a name="l00087"></a>00087 {<span class="comment"></span> <a name="l00088"></a>00088 <span class="comment"> /** The base class of MRPT vectors, actually, Eigen column matrices of dynamic size with specialized constructors that resemble std::vector.</span> <a name="l00089"></a>00089 <span class="comment"> * \note For a summary and classification of all MRPT vector, array and matrix classes see: http://www.mrpt.org/Matrices_vectors_arrays_and_Linear_Algebra_MRPT_and_Eigen_classes</span> <a name="l00090"></a>00090 <span class="comment"> * \ingroup mrpt_base_grp</span> <a name="l00091"></a>00091 <span class="comment"> */</span> <a name="l00092"></a>00092 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a name="l00093"></a>00093 <span class="keyword">struct </span>dynamicsize_vector : <span class="keyword">public</span> Eigen::Matrix<T,Eigen::Dynamic,1> <a name="l00094"></a>00094 { <a name="l00095"></a><a class="code" href="structmrpt_1_1dynamicsize__vector.html#a190588eeb4ef10d0677840545d9abc70">00095</a> <span class="keyword">typedef</span> Eigen::Matrix<T,Eigen::Dynamic,1> <a class="code" href="structmrpt_1_1dynamicsize__vector.html#a190588eeb4ef10d0677840545d9abc70" title="Base class typedef.">Base</a>; <a name="l00096"></a><a class="code" href="structmrpt_1_1dynamicsize__vector.html#a2d5edc2fd20b59c1363a761affbc4e5c">00096</a> <span class="keyword">typedef</span> <a class="code" href="structmrpt_1_1dynamicsize__vector.html" title="The base class of MRPT vectors, actually, Eigen column matrices of dynamic size with specialized cons...">dynamicsize_vector<T></a> <a class="code" href="structmrpt_1_1dynamicsize__vector.html#a2d5edc2fd20b59c1363a761affbc4e5c">mrpt_autotype</a>; <a name="l00097"></a>00097 <a class="code" href="base_2include_2mrpt_2utils_2types_8h.html#a5423f1c8bf92c8c2bb6592ee8ac333ef">MRPT_EIGEN_DERIVED_CLASS_CTOR_OPERATOR_EQUAL</a>(<a class="code" href="structmrpt_1_1dynamicsize__vector.html" title="The base class of MRPT vectors, actually, Eigen column matrices of dynamic size with specialized cons...">dynamicsize_vector</a>) <a name="l00098"></a>00098 <a name="l00099"></a>00099 <span class="comment">/** Default constructor: empty vector */</span> <a name="l00100"></a><a class="code" href="structmrpt_1_1dynamicsize__vector.html#a2e7c0fba1075c0f38d24be516bdd876d">00100</a> inline <a class="code" href="structmrpt_1_1dynamicsize__vector.html" title="The base class of MRPT vectors, actually, Eigen column matrices of dynamic size with specialized cons...">dynamicsize_vector</a>() : <a class="code" href="class_eigen_1_1_matrix.html">Base</a>() {}<span class="comment"></span> <a name="l00101"></a>00101 <span class="comment"> /** Constructor, initializes to a given initial size */</span> <a name="l00102"></a><a class="code" href="structmrpt_1_1dynamicsize__vector.html#a67cef0c9c2cdbff48a4a3dccbf93b1e1">00102</a> <span class="keyword">inline</span> <a class="code" href="structmrpt_1_1dynamicsize__vector.html#a67cef0c9c2cdbff48a4a3dccbf93b1e1" title="Constructor, initializes to a given initial size.">dynamicsize_vector</a>(<span class="keywordtype">size_t</span> N) : <a class="code" href="class_eigen_1_1_matrix.html">Base</a>(N,1) { Base::derived().setZero(); }<span class="comment"></span> <a name="l00103"></a>00103 <span class="comment"> /** Constructor, initializes to a given initial size, all elements to a given value */</span> <a name="l00104"></a><a class="code" href="structmrpt_1_1dynamicsize__vector.html#acd228db75928dabc81bdaa9dbb52f270">00104</a> <span class="keyword">inline</span> <a class="code" href="structmrpt_1_1dynamicsize__vector.html#acd228db75928dabc81bdaa9dbb52f270" title="Constructor, initializes to a given initial size, all elements to a given value.">dynamicsize_vector</a>(<span class="keywordtype">size_t</span> N, T init_val) : <a class="code" href="class_eigen_1_1_matrix.html">Base</a>(N,1) { Base::derived().assign(init_val); }<span class="comment"></span> <a name="l00105"></a>00105 <span class="comment"> /** Constructor, initializes from a std::vector<> of scalars */</span> <a name="l00106"></a>00106 <span class="keyword">template</span> <<span class="keyword">typename</span> R> <a name="l00107"></a><a class="code" href="structmrpt_1_1dynamicsize__vector.html#ab0d86fbe7a58c90c944ddb7a77705f0d">00107</a> <span class="keyword">inline</span> <a class="code" href="structmrpt_1_1dynamicsize__vector.html#ab0d86fbe7a58c90c944ddb7a77705f0d" title="Constructor, initializes from a std::vector<> of scalars.">dynamicsize_vector</a>(<span class="keyword">const</span> <a class="code" href="classstd_1_1vector.html" title="STL class.">std::vector<R></a>& v) : <a class="code" href="class_eigen_1_1_matrix.html">Base</a>(v.<a class="code" href="namespacemrpt_1_1math.html#a632ae0aecf78103f87f18f9ac33f7170">size</a>(),1) { <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0;i<v.size();i++) (*<span class="keyword">this</span>)[i]=v[i]; }<span class="comment"></span> <a name="l00108"></a>00108 <span class="comment"> /** Overloaded resize method that mimics std::vector::resize(SIZE,DEFAULT_VALUE) instead of resize(nrows,ncols) \note This method exists for backward compatibility in MRPT */</span> <a name="l00109"></a><a class="code" href="structmrpt_1_1dynamicsize__vector.html#a8fd6a8b950613c9abbf6366bcc9d4e4c">00109</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structmrpt_1_1dynamicsize__vector.html#a8fd6a8b950613c9abbf6366bcc9d4e4c" title="Overloaded resize method that mimics std::vector::resize(SIZE,DEFAULT_VALUE) instead of resize(nrows...">resize</a>(<span class="keyword">const</span> <span class="keywordtype">size_t</span> N, <span class="keyword">const</span> T default_val) { Base::derived().resize(N,1); Base::derived().setConstant(default_val); }<span class="comment"></span> <a name="l00110"></a>00110 <span class="comment"> /** Normal resize of the vector (preserving old contents). */</span> <a name="l00111"></a><a class="code" href="structmrpt_1_1dynamicsize__vector.html#ae444ab065833823651ea4bf6415eab9b">00111</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structmrpt_1_1dynamicsize__vector.html#ae444ab065833823651ea4bf6415eab9b" title="Normal resize of the vector (preserving old contents).">resize</a>(<span class="keyword">const</span> <span class="keywordtype">size_t</span> N) { Base::derived().conservativeResize(N); }<span class="comment"></span> <a name="l00112"></a>00112 <span class="comment"> /** Reset the vector to a 0-length */</span> <a name="l00113"></a><a class="code" href="structmrpt_1_1dynamicsize__vector.html#a59372b0b92719ba39b7b0c44b5c3f7cf">00113</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structmrpt_1_1dynamicsize__vector.html#a59372b0b92719ba39b7b0c44b5c3f7cf" title="Reset the vector to a 0-length.">clear</a>() { *<span class="keyword">this</span> = <a class="code" href="structmrpt_1_1dynamicsize__vector.html" title="The base class of MRPT vectors, actually, Eigen column matrices of dynamic size with specialized cons...">dynamicsize_vector<T></a>(); }<span class="comment"></span> <a name="l00114"></a>00114 <span class="comment"> /** DOES NOTHING (it's here for backward compatibility) */</span> <a name="l00115"></a><a class="code" href="structmrpt_1_1dynamicsize__vector.html#a3cc387c39dc4e773ca09c3614f666caf">00115</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structmrpt_1_1dynamicsize__vector.html#a3cc387c39dc4e773ca09c3614f666caf" title="DOES NOTHING (it's here for backward compatibility)">reserve</a>(<span class="keywordtype">size_t</span> dummy_size) { } <a name="l00116"></a>00116 }; <a name="l00117"></a>00117 <a name="l00118"></a><a class="code" href="namespacemrpt.html#aa271572e3985202e030758bfd54a02e1">00118</a> <span class="keyword">typedef</span> <a class="code" href="structmrpt_1_1dynamicsize__vector.html">dynamicsize_vector<float></a> <a class="code" href="namespacemrpt.html#aa271572e3985202e030758bfd54a02e1">vector_float</a>; <a name="l00119"></a><a class="code" href="namespacemrpt.html#a4a6aab2c98368ca6b554c04f8fe84cfb">00119</a> <span class="keyword">typedef</span> <a class="code" href="structmrpt_1_1dynamicsize__vector.html">dynamicsize_vector<double></a> <a class="code" href="namespacemrpt.html#a4a6aab2c98368ca6b554c04f8fe84cfb">vector_double</a>; <a name="l00120"></a>00120 <a name="l00121"></a><a class="code" href="namespacemrpt.html#ad0fd30f28659350aa6ed37b31152e6c4">00121</a> <span class="keyword">typedef</span> std::vector<int8_t> <a class="code" href="namespacemrpt.html#ad0fd30f28659350aa6ed37b31152e6c4">vector_signed_byte</a>; <a name="l00122"></a><a class="code" href="namespacemrpt.html#a23dec6de1d390f62796a046bf60dd8c3">00122</a> <span class="keyword">typedef</span> std::vector<int16_t> <a class="code" href="namespacemrpt.html#a23dec6de1d390f62796a046bf60dd8c3">vector_signed_word</a>; <a name="l00123"></a><a class="code" href="namespacemrpt.html#ac2e04951e7bd82f53b6ecaa0fd8a2662">00123</a> <span class="keyword">typedef</span> std::vector<int32_t> <a class="code" href="namespacemrpt.html#ac2e04951e7bd82f53b6ecaa0fd8a2662">vector_int</a>; <a name="l00124"></a><a class="code" href="namespacemrpt.html#a6b02ea04c95f3f6a5c4b267da99d93ca">00124</a> <span class="keyword">typedef</span> std::vector<int64_t> <a class="code" href="namespacemrpt.html#a6b02ea04c95f3f6a5c4b267da99d93ca">vector_long</a>; <a name="l00125"></a><a class="code" href="namespacemrpt.html#ad4d2b1efd37ed750302c76ebbcfc310d">00125</a> <span class="keyword">typedef</span> std::vector<size_t> <a class="code" href="namespacemrpt.html#ad4d2b1efd37ed750302c76ebbcfc310d">vector_size_t</a>; <a name="l00126"></a><a class="code" href="namespacemrpt.html#a3250fe562baad62b3da2e166eb8867df">00126</a> <span class="keyword">typedef</span> std::vector<uint8_t> <a class="code" href="namespacemrpt.html#a3250fe562baad62b3da2e166eb8867df">vector_byte</a>; <a name="l00127"></a><a class="code" href="namespacemrpt.html#a47c2035f9c7d1897b91f97ab90290725">00127</a> <span class="keyword">typedef</span> std::vector<uint16_t> <a class="code" href="namespacemrpt.html#a47c2035f9c7d1897b91f97ab90290725">vector_word</a>; <a name="l00128"></a><a class="code" href="namespacemrpt.html#aa4dc027dbc3804c847a78892a2982047">00128</a> <span class="keyword">typedef</span> std::vector<uint32_t> <a class="code" href="namespacemrpt.html#aa4dc027dbc3804c847a78892a2982047">vector_uint</a>; <a name="l00129"></a><a class="code" href="namespacemrpt.html#a9fdb3cc3f73c5190fa022f858efbe6b1">00129</a> <span class="keyword">typedef</span> std::vector<bool> <a class="code" href="namespacemrpt.html#a9fdb3cc3f73c5190fa022f858efbe6b1" title="A type for passing a vector of bools.">vector_bool</a>; <span class="comment">//!< A type for passing a vector of bools.</span> <a name="l00130"></a><a class="code" href="namespacemrpt.html#a4d04fc5241bf87fcaffec90f3b23b1ea">00130</a> <span class="comment"></span> <span class="keyword">typedef</span> std::vector<std::string> <a class="code" href="namespacemrpt.html#a4d04fc5241bf87fcaffec90f3b23b1ea" title="A type for passing a vector of strings.">vector_string</a>; <span class="comment">//!< A type for passing a vector of strings.</span> <a name="l00131"></a>00131 <span class="comment"></span><span class="comment"></span> <a name="l00132"></a>00132 <span class="comment"> /** Helper types for STL containers with Eigen memory allocators. */</span> <a name="l00133"></a>00133 <span class="keyword">template</span> <<span class="keyword">class</span> TYPE1,<span class="keyword">class</span> TYPE2=TYPE1> <a name="l00134"></a>00134 <span class="keyword">struct </span><a class="code" href="structmrpt_1_1aligned__containers.html" title="Helper types for STL containers with Eigen memory allocators.">aligned_containers</a> <a name="l00135"></a>00135 { <a name="l00136"></a><a class="code" href="structmrpt_1_1aligned__containers.html#a9829ca43a63dce38924e4b014fe83c73">00136</a> <span class="keyword">typedef</span> std::pair<TYPE1,TYPE2> <a class="code" href="structmrpt_1_1aligned__containers.html#a9829ca43a63dce38924e4b014fe83c73">pair_t</a>; <a name="l00137"></a><a class="code" href="structmrpt_1_1aligned__containers.html#a90a8d513d3e154c2508003db95eccc2c">00137</a> <span class="keyword">typedef</span> std::vector<TYPE1, Eigen::aligned_allocator<TYPE1> > <a class="code" href="structmrpt_1_1aligned__containers.html#a90a8d513d3e154c2508003db95eccc2c">vector_t</a>; <a name="l00138"></a><a class="code" href="structmrpt_1_1aligned__containers.html#aa0b66d3d4e97b7c78f0cc4d61947d7ae">00138</a> <span class="keyword">typedef</span> std::deque<TYPE1, Eigen::aligned_allocator<TYPE1> > <a class="code" href="structmrpt_1_1aligned__containers.html#aa0b66d3d4e97b7c78f0cc4d61947d7ae">deque_t</a>; <a name="l00139"></a><a class="code" href="structmrpt_1_1aligned__containers.html#ade235a0083b6d0e75dec37ce3a544498">00139</a> <span class="keyword">typedef</span> std::map<TYPE1,TYPE2,std::less<TYPE1>,Eigen::aligned_allocator<std::pair<const TYPE1,TYPE2> > > <a class="code" href="structmrpt_1_1aligned__containers.html#ade235a0083b6d0e75dec37ce3a544498">map_t</a>; <a name="l00140"></a><a class="code" href="structmrpt_1_1aligned__containers.html#afc8bb1793483461f2bdfa7e34ee2dbdb">00140</a> <span class="keyword">typedef</span> std::multimap<TYPE1,TYPE2,std::less<TYPE1>,Eigen::aligned_allocator<std::pair<const TYPE1,TYPE2> > > <a class="code" href="structmrpt_1_1aligned__containers.html#afc8bb1793483461f2bdfa7e34ee2dbdb">multimap_t</a>; <a name="l00141"></a>00141 }; <a name="l00142"></a>00142 <a name="l00143"></a>00143 <span class="keyword">namespace </span>utils <a name="l00144"></a>00144 {<span class="comment"></span> <a name="l00145"></a>00145 <span class="comment"> /** For performing type casting from a pointer to its numeric value.</span> <a name="l00146"></a>00146 <span class="comment"> */</span> <a name="l00147"></a>00147 <span class="preprocessor"> #if defined(_MSC_VER) && (_MSC_VER>=1300)</span> <a name="l00148"></a>00148 <span class="preprocessor"></span> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> <a class="code" href="namespacemrpt_1_1utils.html#ab8c166dc1bc5fe5628d214754539bfb2" title="For performing type casting from a pointer to its numeric value.">POINTER_TYPE</a>; <a name="l00149"></a>00149 <span class="preprocessor"> #else</span> <a name="l00150"></a><a class="code" href="namespacemrpt_1_1utils.html#ab8c166dc1bc5fe5628d214754539bfb2">00150</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespacemrpt_1_1utils.html#ab8c166dc1bc5fe5628d214754539bfb2" title="For performing type casting from a pointer to its numeric value.">POINTER_TYPE</a>; <a name="l00151"></a>00151 <span class="preprocessor"> #endif</span> <a name="l00152"></a>00152 <span class="preprocessor"></span> <a name="l00153"></a><a class="code" href="namespacemrpt_1_1utils.html#a718b4f99645b7e9f6501c9b7bb2a2fe7">00153</a> <span class="keyword">typedef</span> uint64_t <a class="code" href="namespacemrpt_1_1utils.html#a718b4f99645b7e9f6501c9b7bb2a2fe7" title="The type for node IDs in graphs of different types.">TNodeID</a>; <span class="comment">//!< The type for node IDs in graphs of different types.</span> <a name="l00154"></a><a class="code" href="namespacemrpt_1_1utils.html#aee71d7beb4d61406566af3847410d0e4">00154</a> <span class="comment"></span> <span class="keyword">typedef</span> std::pair<TNodeID,TNodeID> <a class="code" href="namespacemrpt_1_1utils.html#aee71d7beb4d61406566af3847410d0e4" title="A pair of node IDs.">TPairNodeIDs</a>; <span class="comment">//!< A pair of node IDs.</span> <a name="l00155"></a><a class="code" href="base_2include_2mrpt_2utils_2types_8h.html#adc1f75e937273167bcd0a11caf344fce">00155</a> <span class="comment"></span><span class="preprocessor"> #define INVALID_NODEID static_cast<TNodeID>(-1)</span> <a name="l00156"></a>00156 <span class="preprocessor"></span> <a name="l00157"></a>00157 } <span class="comment">// end namespace</span> <a name="l00158"></a>00158 } <a name="l00159"></a>00159 <a name="l00160"></a>00160 <span class="preprocessor">#endif</span> <a name="l00161"></a>00161 <span class="preprocessor"></span> </pre></div></div> </div> <br><hr><br> <table border="0" width="100%"> <tr> <td> Page generated by <a href="http://www.doxygen.org" target="_blank">Doxygen 1.7.5</a> for MRPT 0.9.5 SVN: at Sun Sep 25 17:20:18 UTC 2011</td><td></td> <td width="100"> </td> <td width="150"> </td></tr> </table> </body></html>