<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Intermediate types</title> <link rel="stylesheet" href="style.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.73.2"> <link rel="start" href="index.html" title="Programming with gtkmm"> <link rel="up" href="ch03.html" title="Chapter 3. Basics"> <link rel="prev" href="ch03s05.html" title="Glib::ustring"> <link rel="next" href="ch03s07.html" title="Hello World in gtkmm"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr><th colspan="3" align="center">Intermediate types</th></tr> <tr> <td width="20%" align="left"> <a accesskey="p" href="ch03s05.html"><img src="../icons/prev.png" alt="Prev"></a> </td> <th width="60%" align="center">Chapter 3. Basics</th> <td width="20%" align="right"> <a accesskey="n" href="ch03s07.html"><img src="../icons/next.png" alt="Next"></a> </td> </tr> </table> <hr> </div> <div class="sect1" lang="en"> <div class="titlepage"><div><div><h2 class="title" style="clear: both"> <a name="sec-intermediatetypes"></a>Intermediate types</h2></div></div></div> <p>Some parts of the <span class="application">gtkmm</span> API use intermediate data containers, such as <code class="classname">Glib::StringArrayHandle</code> instead of a specific Standard C++ container such as <code class="classname">std::vector</code> or <code class="classname">std::list</code>. You should not declare these types yourself -- you should use whatever Standard C++ container you prefer instead. <span class="application">gtkmm</span> will do the conversion for you. Here are some of these intermediate types: </p> <div class="itemizedlist"><ul type="disc"> <li><p>Glib::StringArrayHandle or Glib::ArrayHandle<Glib::ustring>: Use std::vector<Glib::ustring>, std::list<Glib::ustring>, const char*[], etc.</p></li> <li><p>Glib::ListHandle<Gtk::Widget*>: Use std::vector<Gtk::Widget*>, std::list<Gtk::Widget*>, etc.</p></li> <li><p>Glib::SListHandle<Gtk::Widget*>: Use std::vector<Gtk::Widget*>, std::list<Gtk::Widget*>, etc.</p></li> </ul></div> <p> </p> </div> <div class="navfooter"> <hr> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> <a accesskey="p" href="ch03s05.html"><img src="../icons/prev.png" alt="Prev"></a> </td> <td width="20%" align="center"><a accesskey="u" href="ch03.html"><img src="../icons/up.png" alt="Up"></a></td> <td width="40%" align="right"> <a accesskey="n" href="ch03s07.html"><img src="../icons/next.png" alt="Next"></a> </td> </tr> <tr> <td width="40%" align="left" valign="top">Glib::ustring </td> <td width="20%" align="center"><a accesskey="h" href="index.html"><img src="../icons/home.png" alt="Home"></a></td> <td width="40%" align="right" valign="top"> Hello World in <span class="application">gtkmm</span> </td> </tr> </table> </div> </body> </html>