File: ch03s05.html

package info (click to toggle)
gtkmm2.0 2.2.12-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 56,872 kB
  • ctags: 51,600
  • sloc: xml: 73,173; cpp: 20,565; sh: 8,608; perl: 2,702; makefile: 1,233
file content (4 lines) | stat: -rw-r--r-- 2,624 bytes parent folder | download | duplicates (2)
1
2
3
4
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Intermediate types</title><meta name="generator" content="DocBook XSL Stylesheets V1.64.1"><link rel="home" href="index.html" title="Programming with gtkmm2"><link rel="up" href="ch03.html" title="Chapter3.Basics"><link rel="previous" href="ch03s04.html" title="Glib::ustring"><link rel="next" href="ch03s06.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="ch03s04.html">Prev</a></td><th width="60%" align="center">Chapter3.Basics</th><td width="20%" align="right"><a accesskey="n" href="ch03s06.html">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></div></div><p>Some parts of the <tt class="literal">gtkmm</tt> API use intermediate data containers, such as <tt class="literal">Glib::StringArrayHandle</tt> instead of a specific Standard C++ container such as <tt class="literal">std::vector</tt> or <tt class="literal">std::list</tt>. You should not declare these types yourself -- you should use whatever Standard C++ container you prefer instead. gtkmm 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&lt;Glib::ustring&gt;: Use std::vector&lt;Glib::ustring&gt;, std::list&lt;Glib::ustring&gt;, const char*[], etc.</p></li><li><p>Glib::ListHandle&lt;Gtk::Widget*&gt;: Use std::vector&lt;Gtk::Widget*&gt;, std::list&lt;Gtk::Widget*&gt;, etc.</p></li><li><p>Glib::SListHandle&lt;Gtk::Widget*&gt;: Use std::vector&lt;Gtk::Widget*&gt;, std::list&lt;Gtk::Widget*&gt;, 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="ch03s04.html">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="ch03.html">Up</a></td><td width="40%" align="right"><a accesskey="n" href="ch03s06.html">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">Home</a></td><td width="40%" align="right" valign="top">Hello World in gtkmm</td></tr></table></div></body></html>