~ubuntu-branches/ubuntu/vivid/kde-l10n-sv/vivid-proposed

« back to all changes in this revision

Viewing changes to 4/sv/docs/kdeedu/rocs/apiLinkedListstructure.docbook

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2015-01-21 12:33:46 UTC
  • mfrom: (1.1.83)
  • Revision ID: package-import@ubuntu.com-20150121123346-8xjzxlf5qv10hi2p
Tags: 4:14.12.2-0ubuntu1
* New upstream release, first version from KDE Applications
* Revert install to /usr/share/locale/
* Add debian/overlapping files to remove files that are in plasma5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<sect1>
 
2
<title
 
3
>Programmeringsgränssnittet för länkade listor</title>
 
4
<sect2>
 
5
<title
 
6
>Länkad liststruktur</title>
 
7
<para
 
8
>Ett listobjekt innehåller information om en datastruktur av typen <quote
 
9
>Linked List</quote
 
10
>. </para>
 
11
 
 
12
<sect3>
 
13
<title
 
14
>Egenskaper</title>
 
15
<itemizedlist>
 
16
    <listitem>
 
17
        <para
 
18
><emphasis
 
19
>name</emphasis
 
20
>:  </para>
 
21
        <para
 
22
>Den här datastrukturens unika namn.</para>
 
23
    </listitem>
 
24
</itemizedlist>
 
25
</sect3>
 
26
 
 
27
 
 
28
<sect3>
 
29
<title
 
30
>Metoder</title>
 
31
<variablelist>
 
32
 
 
33
    <varlistentry>
 
34
    <term
 
35
>head()</term>
 
36
    <listitem>
 
37
        <para
 
38
>Returnera listans huvudnod.</para>
 
39
    <funcsynopsis
 
40
><funcprototype
 
41
><funcdef
 
42
>ListNode <function
 
43
>head</function
 
44
></funcdef
 
45
> <paramdef
 
46
></paramdef
 
47
> </funcprototype>
 
48
    </funcsynopsis>
 
49
    </listitem>
 
50
    </varlistentry>
 
51
 
 
52
    <varlistentry>
 
53
    <term
 
54
>setHead(nod)</term>
 
55
    <listitem>
 
56
        <para
 
57
>Tilldela listans huvud.</para>
 
58
    <funcsynopsis
 
59
><funcprototype
 
60
><funcdef
 
61
>void <function
 
62
>setHead</function
 
63
></funcdef
 
64
> <paramdef
 
65
>ListNode <parameter
 
66
><replaceable
 
67
>nod</replaceable
 
68
></parameter
 
69
></paramdef
 
70
> </funcprototype>
 
71
    </funcsynopsis>
 
72
    </listitem>
 
73
    </varlistentry>
 
74
 
 
75
    <varlistentry>
 
76
    <term
 
77
>createNode(typ)</term>
 
78
    <listitem>
 
79
        <para
 
80
>Skapar en ny nod med den angivna typen och returnerar den skapade noden. Om typen inte är registrerad, skapas inte någon nod.</para>
 
81
    <funcsynopsis
 
82
><funcprototype
 
83
><funcdef
 
84
>ListNode <function
 
85
>createNode</function
 
86
></funcdef
 
87
> <paramdef
 
88
>int <parameter
 
89
><replaceable
 
90
>typ</replaceable
 
91
></parameter
 
92
></paramdef
 
93
> </funcprototype>
 
94
    </funcsynopsis>
 
95
    </listitem>
 
96
    </varlistentry>
 
97
 
 
98
    <varlistentry>
 
99
    <term
 
100
>createNode()</term>
 
101
    <listitem>
 
102
        <para
 
103
>Skapar en ny nod med förvald typ och returnerar den skapade noden.</para>
 
104
    <funcsynopsis
 
105
><funcprototype
 
106
><funcdef
 
107
>ListNode <function
 
108
>createNode</function
 
109
></funcdef
 
110
> <paramdef
 
111
></paramdef
 
112
> </funcprototype>
 
113
    </funcsynopsis>
 
114
    </listitem>
 
115
    </varlistentry>
 
116
</variablelist>
 
117
</sect3>
 
118
</sect2>
 
119
 
 
120
 
 
121
<sect2>
 
122
<title
 
123
>Listnod</title>
 
124
<para
 
125
>En nod är dataelementet i en länkad lista. </para>
 
126
 
 
127
<sect3>
 
128
<title
 
129
>Egenskaper</title>
 
130
<itemizedlist>
 
131
 
 
132
    <listitem>
 
133
        <para
 
134
><emphasis
 
135
>width</emphasis
 
136
>:  </para>
 
137
        <para
 
138
>Det här dataelementets storlek.</para>
 
139
    </listitem>
 
140
 
 
141
    <listitem>
 
142
        <para
 
143
><emphasis
 
144
>x</emphasis
 
145
>:  </para>
 
146
        <para
 
147
>Det här dataelementets X-koordinat.</para>
 
148
    </listitem>
 
149
 
 
150
    <listitem>
 
151
        <para
 
152
><emphasis
 
153
>y</emphasis
 
154
>:  </para>
 
155
        <para
 
156
>Det här dataelementets Y-koordinat.</para>
 
157
    </listitem>
 
158
 
 
159
    <listitem>
 
160
        <para
 
161
><emphasis
 
162
>id</emphasis
 
163
>:  </para>
 
164
        <para
 
165
>Det här dataelementets unika identifierare.</para>
 
166
    </listitem>
 
167
 
 
168
    <listitem>
 
169
        <para
 
170
><emphasis
 
171
>color</emphasis
 
172
>:  </para>
 
173
        <para
 
174
>Det här dataelementets färg angiven som ett hexadecimalt värde.</para>
 
175
    </listitem>
 
176
</itemizedlist>
 
177
</sect3>
 
178
 
 
179
 
 
180
<sect3>
 
181
<title
 
182
>Metoder</title>
 
183
<variablelist>
 
184
    <varlistentry>
 
185
    <term
 
186
>pointTo(mål)</term>
 
187
    <listitem>
 
188
        <para
 
189
>Tilldela pekaren till den här listans nod till målnoden.</para>
 
190
    <funcsynopsis
 
191
><funcprototype
 
192
><funcdef
 
193
>void <function
 
194
>pointTo</function
 
195
></funcdef
 
196
> <paramdef
 
197
>ListNode <parameter
 
198
><replaceable
 
199
>mål</replaceable
 
200
></parameter
 
201
></paramdef
 
202
> </funcprototype>
 
203
    </funcsynopsis>
 
204
    </listitem>
 
205
    </varlistentry>
 
206
</variablelist>
 
207
</sect3>
 
208
</sect2>
 
209
</sect1>