alpar@18
|
1 |
\input texinfo @c -*-texinfo-*-
|
alpar@18
|
2 |
@comment $Id: etikol.texi,v 1.1 2004/01/20 11:21:42 alpar Exp $
|
alpar@18
|
3 |
@comment %**start of header
|
alpar@18
|
4 |
@setfilename etikol.info
|
alpar@18
|
5 |
@include version.texi
|
alpar@18
|
6 |
@settitle GNU ETIK-OL Optimization Library @value{VERSION}
|
alpar@18
|
7 |
@syncodeindex pg cp
|
alpar@18
|
8 |
|
alpar@18
|
9 |
@c @ifnottex
|
alpar@18
|
10 |
@c @macro mref { nn, txt }
|
alpar@18
|
11 |
@c @ref{\nn\,\txt\}
|
alpar@18
|
12 |
@c @end macro
|
alpar@18
|
13 |
@c @end ifnottex
|
alpar@18
|
14 |
@c @iftex
|
alpar@18
|
15 |
@macro mref { nn, txt }
|
alpar@18
|
16 |
@ifnottex
|
alpar@18
|
17 |
@ref{\nn\,\txt\}
|
alpar@18
|
18 |
@end ifnottex
|
alpar@18
|
19 |
@tex
|
alpar@18
|
20 |
\txt\
|
alpar@18
|
21 |
@end tex
|
alpar@18
|
22 |
@end macro
|
alpar@18
|
23 |
@c @href{\nn\}{\txt\}
|
alpar@18
|
24 |
|
alpar@18
|
25 |
|
alpar@18
|
26 |
|
alpar@18
|
27 |
@c @ifplaintext
|
alpar@18
|
28 |
@c Whereas this text will only appear in plain text.
|
alpar@18
|
29 |
@c @end ifplaintext
|
alpar@18
|
30 |
@c @ifxml
|
alpar@18
|
31 |
@c And this will only appear in XML output.
|
alpar@18
|
32 |
@c @end ifxm
|
alpar@18
|
33 |
@c @ref{\nn\,\txt\}
|
alpar@18
|
34 |
|
alpar@18
|
35 |
|
alpar@18
|
36 |
@comment %**end of header
|
alpar@18
|
37 |
@copying
|
alpar@18
|
38 |
This manual is for GNU ETIL-OL Optimization Library
|
alpar@18
|
39 |
(version @value{VERSION}, @value{UPDATED}).
|
alpar@18
|
40 |
|
alpar@18
|
41 |
Copyright @copyright{} 2003 ETIK.
|
alpar@18
|
42 |
|
alpar@18
|
43 |
@quotation
|
alpar@18
|
44 |
Permission is granted to copy, distribute and/or modify this document
|
alpar@18
|
45 |
under the terms of the GNU Free Documentation License, Version 1.1 or
|
alpar@18
|
46 |
any later version published by the Free Software Foundation; with no
|
alpar@18
|
47 |
Invariant Sections, with the Front-Cover Texts being ``A GNU Manual,''
|
alpar@18
|
48 |
and with the Back-Cover Texts as in (a) below. A copy of the
|
alpar@18
|
49 |
license is included in the section entitled ``GNU Free Documentation
|
alpar@18
|
50 |
License.''
|
alpar@18
|
51 |
|
alpar@18
|
52 |
(a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
|
alpar@18
|
53 |
this GNU Manual, like GNU software. Copies published by the Free
|
alpar@18
|
54 |
Software Foundation raise funds for GNU development.''
|
alpar@18
|
55 |
@end quotation
|
alpar@18
|
56 |
@end copying
|
alpar@18
|
57 |
|
alpar@18
|
58 |
@dircategory Texinfo documentation system
|
alpar@18
|
59 |
@direntry
|
alpar@18
|
60 |
* ETIK-OL: ETIK-OL Optimization Library.
|
alpar@18
|
61 |
@end direntry
|
alpar@18
|
62 |
|
alpar@18
|
63 |
@titlepage
|
alpar@18
|
64 |
@title GNU ETIL-OL Optimization Library
|
alpar@18
|
65 |
@subtitle for version @value{VERSION}, @value{UPDATED}
|
alpar@18
|
66 |
@author ETIK Group
|
alpar@18
|
67 |
@page
|
alpar@18
|
68 |
@vskip 0pt plus 1filll
|
alpar@18
|
69 |
@insertcopying
|
alpar@18
|
70 |
@end titlepage
|
alpar@18
|
71 |
|
alpar@18
|
72 |
@contents
|
alpar@18
|
73 |
|
alpar@18
|
74 |
@ifnottex
|
alpar@18
|
75 |
@node Top
|
alpar@18
|
76 |
@top GNU ETIK-OL Library
|
alpar@18
|
77 |
|
alpar@18
|
78 |
@insertcopying
|
alpar@18
|
79 |
@end ifnottex
|
alpar@18
|
80 |
|
alpar@18
|
81 |
@menu
|
alpar@18
|
82 |
* Basic Concepts::
|
alpar@18
|
83 |
* Copying This Manual::
|
alpar@18
|
84 |
* Index::
|
alpar@18
|
85 |
@end menu
|
alpar@18
|
86 |
|
alpar@18
|
87 |
|
alpar@18
|
88 |
@node Basic Concepts
|
alpar@18
|
89 |
@chapter Basic Concepts
|
alpar@18
|
90 |
|
alpar@18
|
91 |
@menu
|
alpar@18
|
92 |
* The Full Feature Graph Class::
|
alpar@18
|
93 |
* The BFS algorithm::
|
alpar@18
|
94 |
@end menu
|
alpar@18
|
95 |
|
alpar@18
|
96 |
@include flf-graph.texi
|
alpar@18
|
97 |
|
alpar@18
|
98 |
@c @node A Full Feature Graph
|
alpar@18
|
99 |
@c @section A Full Feature Graph
|
alpar@18
|
100 |
@c @cindex Full Feature Graph
|
alpar@18
|
101 |
|
alpar@18
|
102 |
@node The BFS algorithm
|
alpar@18
|
103 |
@section The BFS algorithm
|
alpar@18
|
104 |
@cindex The BFS algorithm
|
alpar@18
|
105 |
|
alpar@18
|
106 |
@menu
|
alpar@18
|
107 |
* Iterator style BFS class::
|
alpar@18
|
108 |
* The BFS funcion::
|
alpar@18
|
109 |
@end menu
|
alpar@18
|
110 |
|
alpar@18
|
111 |
bla2
|
alpar@18
|
112 |
|
alpar@18
|
113 |
@node Iterator style BFS class
|
alpar@18
|
114 |
@subsection Iterator style BFS class
|
alpar@18
|
115 |
@cindex BFS algorithm
|
alpar@18
|
116 |
@cindex BFS concept
|
alpar@18
|
117 |
|
alpar@18
|
118 |
Here is a code example.
|
alpar@18
|
119 |
|
alpar@18
|
120 |
|
alpar@18
|
121 |
@quotation
|
alpar@18
|
122 |
@verbatim
|
alpar@18
|
123 |
class
|
alpar@18
|
124 |
{
|
alpar@18
|
125 |
public:
|
alpar@18
|
126 |
bfs_node_data<G> NodeType::*d;
|
alpar@18
|
127 |
typedef typename G::EdgeIterator value_type;
|
alpar@18
|
128 |
void Put(typename G::NodeIterator &i,
|
alpar@18
|
129 |
const value_type &t);
|
alpar@18
|
130 |
value_type Get(const typename G::NodeIterator &i) const;
|
alpar@18
|
131 |
} tree;
|
alpar@18
|
132 |
@end verbatim
|
alpar@18
|
133 |
@end quotation
|
alpar@18
|
134 |
|
alpar@18
|
135 |
|
alpar@18
|
136 |
The same code with a remark.
|
alpar@18
|
137 |
|
alpar@18
|
138 |
@comment @quotation
|
alpar@18
|
139 |
@example
|
alpar@18
|
140 |
class
|
alpar@18
|
141 |
@{
|
alpar@18
|
142 |
public:
|
alpar@18
|
143 |
bfs_node_data<G> NodeType::*d;
|
alpar@18
|
144 |
typedef typename G::EdgeIterator value_type;
|
alpar@18
|
145 |
void Put(typename G::NodeIterator &i,
|
alpar@18
|
146 |
const value_type &t); @r{This is a long funcion declaration.}
|
alpar@18
|
147 |
value_type Get(const typename G::NodeIterator &i) const;
|
alpar@18
|
148 |
@} tree;
|
alpar@18
|
149 |
@end example
|
alpar@18
|
150 |
@comment @end quotation
|
alpar@18
|
151 |
|
alpar@18
|
152 |
@node The BFS funcion
|
alpar@18
|
153 |
@subsection The BFS funcion
|
alpar@18
|
154 |
@cindex BFS algorithm
|
alpar@18
|
155 |
|
alpar@18
|
156 |
@enumerate
|
alpar@18
|
157 |
@item
|
alpar@18
|
158 |
This is the first item.
|
alpar@18
|
159 |
|
alpar@18
|
160 |
@item
|
alpar@18
|
161 |
This is the second item.
|
alpar@18
|
162 |
@end enumerate
|
alpar@18
|
163 |
|
alpar@18
|
164 |
|
alpar@18
|
165 |
@node Copying This Manual
|
alpar@18
|
166 |
@appendix Copying This Manual
|
alpar@18
|
167 |
|
alpar@18
|
168 |
@menu
|
alpar@18
|
169 |
* GNU Free Documentation License:: License for copying this manual.
|
alpar@18
|
170 |
@end menu
|
alpar@18
|
171 |
|
alpar@18
|
172 |
@include fdl.texi
|
alpar@18
|
173 |
|
alpar@18
|
174 |
|
alpar@18
|
175 |
@node Index
|
alpar@18
|
176 |
@unnumbered Concept Index
|
alpar@18
|
177 |
@printindex cp
|
alpar@18
|
178 |
|
alpar@18
|
179 |
@c @node Function Index
|
alpar@18
|
180 |
@unnumbered Function Index
|
alpar@18
|
181 |
@printindex fn
|
alpar@18
|
182 |
|
alpar@18
|
183 |
@c @node Type Index
|
alpar@18
|
184 |
@unnumbered Type Index
|
alpar@18
|
185 |
@printindex tp
|
alpar@18
|
186 |
|
alpar@18
|
187 |
@bye
|
alpar@18
|
188 |
|