• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE article PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN" "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
3<article id="import" last-revision="DEBUG MODE Date: 2000/12/20 12:00:00 $" xmlns:xi="http://www.w3.org/2001/XInclude">
4  <title>Import</title>
5  <para>
6    This is the <emphasis role="bold"><emphasis>foo</emphasis></emphasis> function.
7  </para>
8  <para>
9    This description can have paragraphs...
10  </para>
11  <itemizedlist>
12    <listitem>
13      <simpara>
14        lists
15      </simpara>
16    </listitem>
17    <listitem>
18      <simpara>
19        etc.
20      </simpara>
21    </listitem>
22  </itemizedlist>
23  <para>
24    And any quickbook block markup.
25  </para>
26  <para>
27<programlisting><phrase role="identifier">std</phrase><phrase role="special">::</phrase><phrase role="identifier">string</phrase> <phrase role="identifier">foo</phrase><phrase role="special">()</phrase>
28<phrase role="special">{</phrase>
29    <phrase role="comment">// return 'em, foo man!</phrase>
30    <phrase role="keyword">return</phrase> <phrase role="string">&quot;foo&quot;</phrase><phrase role="special">;</phrase>
31<phrase role="special">}</phrase>
32</programlisting>
33  </para>
34  <para>
35    This is the Python <emphasis role="bold"><emphasis>foo</emphasis></emphasis>
36    function.
37  </para>
38  <para>
39    This description can have paragraphs...
40  </para>
41  <itemizedlist>
42    <listitem>
43      <simpara>
44        lists
45      </simpara>
46    </listitem>
47    <listitem>
48      <simpara>
49        etc.
50      </simpara>
51    </listitem>
52  </itemizedlist>
53  <para>
54    And any quickbook block markup.
55  </para>
56  <para>
57<programlisting><phrase role="keyword">def</phrase> <phrase role="identifier">foo</phrase><phrase role="special">():</phrase>
58    <phrase role="comment"># return 'em, foo man!</phrase>
59    <phrase role="keyword">return</phrase> <phrase role="string">&quot;foo&quot;</phrase>
60</programlisting>
61  </para>
62  <para>
63    This is the C <emphasis role="bold"><emphasis>foo</emphasis></emphasis> function.
64  </para>
65  <para>
66    This description can have paragraphs...
67  </para>
68  <itemizedlist>
69    <listitem>
70      <simpara>
71        lists
72      </simpara>
73    </listitem>
74    <listitem>
75      <simpara>
76        etc.
77      </simpara>
78    </listitem>
79  </itemizedlist>
80  <para>
81    And any quickbook block markup.
82  </para>
83  <para>
84<programlisting><phrase role="keyword">char</phrase><phrase role="special">*</phrase> <phrase role="identifier">foo</phrase><phrase role="special">()</phrase>
85<phrase role="special">{</phrase>
86    <phrase role="comment">// return 'em, foo man!</phrase>
87    <phrase role="keyword">return</phrase> <phrase role="string">&quot;foo&quot;</phrase><phrase role="special">;</phrase>
88<phrase role="special">}</phrase>
89</programlisting>
90  </para>
91  <para>
92<programlisting><phrase role="keyword">class</phrase> <phrase role="identifier">x</phrase>
93<phrase role="special">{</phrase>
94<phrase role="keyword">public</phrase><phrase role="special">:</phrase>
95
96    <co id="import.c0" linkends="import.c1" /><phrase role="identifier">x</phrase><phrase role="special">()</phrase> <phrase role="special">:</phrase> <phrase role="identifier">n</phrase><phrase role="special">(</phrase><phrase role="number">0</phrase><phrase role="special">)</phrase>
97    <phrase role="special">{</phrase>
98    <phrase role="special">}</phrase>
99
100    <co id="import.c2" linkends="import.c3" /><phrase role="special">~</phrase><phrase role="identifier">x</phrase><phrase role="special">()</phrase>
101    <phrase role="special">{</phrase>
102    <phrase role="special">}</phrase>
103
104    <co id="import.c4" linkends="import.c5" /><phrase role="keyword">int</phrase> <phrase role="identifier">get</phrase><phrase role="special">()</phrase> <phrase role="keyword">const</phrase>
105    <phrase role="special">{</phrase>
106        <phrase role="keyword">return</phrase> <phrase role="identifier">n</phrase><phrase role="special">;</phrase>
107    <phrase role="special">}</phrase>
108
109    <co id="import.c6" linkends="import.c7" /><phrase role="keyword">void</phrase> <phrase role="identifier">set</phrase><phrase role="special">(</phrase><phrase role="keyword">int</phrase> <phrase role="identifier">n_</phrase><phrase role="special">)</phrase>
110    <phrase role="special">{</phrase>
111        <phrase role="identifier">n</phrase> <phrase role="special">=</phrase> <phrase role="identifier">n_</phrase><phrase role="special">;</phrase>
112    <phrase role="special">}</phrase>
113<phrase role="special">};</phrase>
114</programlisting>
115  </para>
116  <calloutlist>
117    <callout arearefs="import.c0" id="import.c1">
118      <para>
119        Constructor
120      </para>
121    </callout>
122    <callout arearefs="import.c2" id="import.c3">
123      <para>
124        Destructor
125      </para>
126    </callout>
127    <callout arearefs="import.c4" id="import.c5">
128      <para>
129        Get the <code><phrase role="identifier">n</phrase></code> member variable
130      </para>
131    </callout>
132    <callout arearefs="import.c6" id="import.c7">
133      <para>
134        Set the <code><phrase role="identifier">n</phrase></code> member variable
135      </para>
136    </callout>
137  </calloutlist>
138</article>
139