doc-docbook/src/xml/osztaly-forma.xml
changeset 123 2d1da2e1644a
parent 66 cd56b9c11492
child 126 89c6e4687fcc
     1.1 --- a/doc-docbook/src/xml/osztaly-forma.xml	Mon Feb 23 16:34:08 2004 +0000
     1.2 +++ b/doc-docbook/src/xml/osztaly-forma.xml	Mon Feb 23 16:38:49 2004 +0000
     1.3 @@ -1,55 +1,111 @@
     1.4 -<!-- Az osztaly definialasahoz a docbook altal adott classsynopsys
     1.5 -     element nem tunik jonak, ugyhogy egyelore ime egy sima synopsys 
     1.6 -     blokk, majd meg alakul... -->
     1.7 +<etik:class>
     1.8 + <etik:name> 
     1.9 +  Osztaly neve
    1.10 + </etik:name>
    1.11  
    1.12 -<synopsis>
    1.13 -<![CDATA[
    1.14 -class Osztaly {
    1.15 -public:
    1.16 -  int x;
    1.17 + <etik:description>
    1.18 + Ez itt egy tobbsoros, tobb reszes leiras arrol, hogy altalanossagban
    1.19 + mire is jo ez az osztaly.  Ez itt egy tobbsoros, tobb reszes leiras
    1.20 + arrol, hogy altalanossagban mire is jo ez az osztaly.
    1.21 +<para>
    1.22 + Ez itt az uj bekezdese a leirasnak, mert elofordulhat, hogy tobb
    1.23 + bekezdesre erdemes tagolni az iromanyt.
    1.24 +</para>
    1.25 + </etik:description>
    1.26  
    1.27 -  Osztaly(int i = 5);
    1.28 + <etik:example>
    1.29 +  Gyakran hasznos egy peldan bemutatni a mukodest. A kovetkezo egy
    1.30 +  egyszeru kis szemleltetes arra, hogy ezt milyen konnyen es gyorsan
    1.31 +  lehet hasznalni:
    1.32 +<programlisting>
    1.33  
    1.34 -  virtual longlong metodus(double alfa, char* s);
    1.35 +struct eqstr
    1.36 +{
    1.37 +  bool operator()(const char* s1, const char* s2) const
    1.38 +  {
    1.39 +    return strcmp(s1, s2) == 0;
    1.40 +  }
    1.41 +};
    1.42 +
    1.43 +
    1.44 +void lookup(const map_type& Map, const char* str)
    1.45 +{
    1.46 +
    1.47  }
    1.48 -]]>
    1.49 -</synopsis>
    1.50  
    1.51 -<!-- Igy nezne ez ki docbook markup-pal: (a komplexitasan kivul az a 
    1.52 -     baj vele, hogy bugosra fordul: 
    1.53 - 
    1.54 -<classsynopsis language="C++">
    1.55 -  <ooclass>
    1.56 -    <classname>Osztaly neve</classname>
    1.57 -  </ooclass>
    1.58 +</programlisting>
    1.59 + </etik:example>
    1.60  
    1.61 -  <fieldsynopsis>
    1.62 -    <modifier>public</modifier>
    1.63 -    <type>int</type>
    1.64 -    <varname>x</varname>
    1.65 -  </fieldsynopsis>
    1.66 + <etik:definition>
    1.67 +Ez a definition szekcio arra van, hogy beleirjuk, hogy milyen fajlban
    1.68 +van definialva az aktualis osztaly.
    1.69 +Ez <xref linkend="tutorial"/> egy link a tutorialra.
    1.70 + </etik:definition>
    1.71  
    1.72 -  <constructorsynopsis>
    1.73 -    <methodparam>
    1.74 -      <parameter><type>int</type>i</parameter>
    1.75 -      <initializer>5</initializer>
    1.76 -    </methodparam>
    1.77 -  </constructorsynopsis>
    1.78 +<etik:template_params>
    1.79 +<etik:template_param>
    1.80 +<etik:templ_name>
    1.81 +T
    1.82 +</etik:templ_name>
    1.83 +<etik:templ_description>
    1.84 +Ez itt a T parameter. Ebben adod meg hogy milyen izekbol epitsunk kupacot.
    1.85 +</etik:templ_description>
    1.86 +<etik:templ_requirement>
    1.87 +Legyen implementalva neki az osszehasonlito operator.
    1.88 +</etik:templ_requirement>
    1.89 +<etik:templ_default>
    1.90 +Az nincs
    1.91 +</etik:templ_default>
    1.92 +</etik:template_param>
    1.93 +<etik:template_param>
    1.94 +<etik:templ_name>
    1.95 +Af
    1.96 +</etik:templ_name>
    1.97 +<etik:templ_description>
    1.98 +Az Af template parameter is egy olyan vacak, ami a generikussaghoz kell.
    1.99 +</etik:templ_description>
   1.100 +<etik:templ_requirement>
   1.101 +Af szarmazzon az elemi osztalyokbol.
   1.102 +</etik:templ_requirement>
   1.103 +<etik:templ_default>
   1.104 +0
   1.105 +</etik:templ_default>
   1.106 +</etik:template_param>
   1.107 +</etik:template_params>
   1.108  
   1.109 -  <methodsynopsis>
   1.110 -    <modifier>virtual</modifier>
   1.111 -    <type>longlong</type>
   1.112 -   <methodname>a_metodus</methodname>
   1.113 -    <methodparam>
   1.114 -      <parameter><type>double</type>alfa</parameter>
   1.115 -    </methodparam>
   1.116 -    <methodparam>
   1.117 -      <parameter><type>char*</type>s</parameter>
   1.118 -    </methodparam>
   1.119 -  </methodsynopsis>
   1.120  
   1.121 -</classsynopsis>
   1.122 --->
   1.123 +<etik:members>
   1.124 +<etik:member>
   1.125 +<etik:m_name>
   1.126 +iterator
   1.127 +</etik:m_name>
   1.128 +<etik:m_where_def>
   1.129 +container
   1.130 +</etik:m_where_def>
   1.131 +<etik:m_description>
   1.132 +Arra valo, hogy vegigiteraljunk vele.
   1.133 +</etik:m_description>
   1.134 +
   1.135 +</etik:member>
   1.136 +<etik:member>
   1.137 +<etik:m_name>
   1.138 +void push_back(const T&)
   1.139 +</etik:m_name>
   1.140 +<etik:m_where_def>
   1.141 +Back Insertion Sequence
   1.142 +</etik:m_where_def>
   1.143 +<etik:m_description>
   1.144 +Egy uj element tesz e vegere.
   1.145 +</etik:m_description>
   1.146 +
   1.147 +</etik:member>
   1.148 +</etik:members>
   1.149 +
   1.150 +
   1.151 +
   1.152 +
   1.153 +</etik:class>
   1.154 +
   1.155  
   1.156  <!-- Keep this comment at the end of the file
   1.157  Local variables:
   1.158 @@ -62,7 +118,7 @@
   1.159  sgml-always-quote-attributes:t
   1.160  sgml-indent-step:2
   1.161  sgml-indent-data:nil
   1.162 -sgml-parent-document:("graph-classes.xml" "sect1" "classsynopsis")
   1.163 +sgml-parent-document:("graph-classes.xml" "sect1" "etik:class")
   1.164  sgml-exposed-tags:nil
   1.165  sgml-local-catalogs:nil
   1.166  sgml-local-ecat-files:nil