doc-docbook/src/xml/osztaly-forma.xml
changeset 123 2d1da2e1644a
parent 66 cd56b9c11492
child 126 89c6e4687fcc
equal deleted inserted replaced
0:0981c87965b8 1:e5eaba409c60
     1 <!-- Az osztaly definialasahoz a docbook altal adott classsynopsys
     1 <etik:class>
     2      element nem tunik jonak, ugyhogy egyelore ime egy sima synopsys 
     2  <etik:name> 
     3      blokk, majd meg alakul... -->
     3   Osztaly neve
       
     4  </etik:name>
     4 
     5 
     5 <synopsis>
     6  <etik:description>
     6 <![CDATA[
     7  Ez itt egy tobbsoros, tobb reszes leiras arrol, hogy altalanossagban
     7 class Osztaly {
     8  mire is jo ez az osztaly.  Ez itt egy tobbsoros, tobb reszes leiras
     8 public:
     9  arrol, hogy altalanossagban mire is jo ez az osztaly.
     9   int x;
    10 <para>
       
    11  Ez itt az uj bekezdese a leirasnak, mert elofordulhat, hogy tobb
       
    12  bekezdesre erdemes tagolni az iromanyt.
       
    13 </para>
       
    14  </etik:description>
    10 
    15 
    11   Osztaly(int i = 5);
    16  <etik:example>
       
    17   Gyakran hasznos egy peldan bemutatni a mukodest. A kovetkezo egy
       
    18   egyszeru kis szemleltetes arra, hogy ezt milyen konnyen es gyorsan
       
    19   lehet hasznalni:
       
    20 <programlisting>
    12 
    21 
    13   virtual longlong metodus(double alfa, char* s);
    22 struct eqstr
       
    23 {
       
    24   bool operator()(const char* s1, const char* s2) const
       
    25   {
       
    26     return strcmp(s1, s2) == 0;
       
    27   }
       
    28 };
       
    29 
       
    30 
       
    31 void lookup(const map_type& Map, const char* str)
       
    32 {
       
    33 
    14 }
    34 }
    15 ]]>
       
    16 </synopsis>
       
    17 
    35 
    18 <!-- Igy nezne ez ki docbook markup-pal: (a komplexitasan kivul az a 
    36 </programlisting>
    19      baj vele, hogy bugosra fordul: 
    37  </etik:example>
    20  
       
    21 <classsynopsis language="C++">
       
    22   <ooclass>
       
    23     <classname>Osztaly neve</classname>
       
    24   </ooclass>
       
    25 
    38 
    26   <fieldsynopsis>
    39  <etik:definition>
    27     <modifier>public</modifier>
    40 Ez a definition szekcio arra van, hogy beleirjuk, hogy milyen fajlban
    28     <type>int</type>
    41 van definialva az aktualis osztaly.
    29     <varname>x</varname>
    42 Ez <xref linkend="tutorial"/> egy link a tutorialra.
    30   </fieldsynopsis>
    43  </etik:definition>
    31 
    44 
    32   <constructorsynopsis>
    45 <etik:template_params>
    33     <methodparam>
    46 <etik:template_param>
    34       <parameter><type>int</type>i</parameter>
    47 <etik:templ_name>
    35       <initializer>5</initializer>
    48 T
    36     </methodparam>
    49 </etik:templ_name>
    37   </constructorsynopsis>
    50 <etik:templ_description>
       
    51 Ez itt a T parameter. Ebben adod meg hogy milyen izekbol epitsunk kupacot.
       
    52 </etik:templ_description>
       
    53 <etik:templ_requirement>
       
    54 Legyen implementalva neki az osszehasonlito operator.
       
    55 </etik:templ_requirement>
       
    56 <etik:templ_default>
       
    57 Az nincs
       
    58 </etik:templ_default>
       
    59 </etik:template_param>
       
    60 <etik:template_param>
       
    61 <etik:templ_name>
       
    62 Af
       
    63 </etik:templ_name>
       
    64 <etik:templ_description>
       
    65 Az Af template parameter is egy olyan vacak, ami a generikussaghoz kell.
       
    66 </etik:templ_description>
       
    67 <etik:templ_requirement>
       
    68 Af szarmazzon az elemi osztalyokbol.
       
    69 </etik:templ_requirement>
       
    70 <etik:templ_default>
       
    71 0
       
    72 </etik:templ_default>
       
    73 </etik:template_param>
       
    74 </etik:template_params>
    38 
    75 
    39   <methodsynopsis>
       
    40     <modifier>virtual</modifier>
       
    41     <type>longlong</type>
       
    42    <methodname>a_metodus</methodname>
       
    43     <methodparam>
       
    44       <parameter><type>double</type>alfa</parameter>
       
    45     </methodparam>
       
    46     <methodparam>
       
    47       <parameter><type>char*</type>s</parameter>
       
    48     </methodparam>
       
    49   </methodsynopsis>
       
    50 
    76 
    51 </classsynopsis>
    77 <etik:members>
    52 -->
    78 <etik:member>
       
    79 <etik:m_name>
       
    80 iterator
       
    81 </etik:m_name>
       
    82 <etik:m_where_def>
       
    83 container
       
    84 </etik:m_where_def>
       
    85 <etik:m_description>
       
    86 Arra valo, hogy vegigiteraljunk vele.
       
    87 </etik:m_description>
       
    88 
       
    89 </etik:member>
       
    90 <etik:member>
       
    91 <etik:m_name>
       
    92 void push_back(const T&)
       
    93 </etik:m_name>
       
    94 <etik:m_where_def>
       
    95 Back Insertion Sequence
       
    96 </etik:m_where_def>
       
    97 <etik:m_description>
       
    98 Egy uj element tesz e vegere.
       
    99 </etik:m_description>
       
   100 
       
   101 </etik:member>
       
   102 </etik:members>
       
   103 
       
   104 
       
   105 
       
   106 
       
   107 </etik:class>
       
   108 
    53 
   109 
    54 <!-- Keep this comment at the end of the file
   110 <!-- Keep this comment at the end of the file
    55 Local variables:
   111 Local variables:
    56 mode: xml
   112 mode: xml
    57 sgml-omittag:nil
   113 sgml-omittag:nil
    60 sgml-general-insert-case:lower
   116 sgml-general-insert-case:lower
    61 sgml-minimize-attributes:nil
   117 sgml-minimize-attributes:nil
    62 sgml-always-quote-attributes:t
   118 sgml-always-quote-attributes:t
    63 sgml-indent-step:2
   119 sgml-indent-step:2
    64 sgml-indent-data:nil
   120 sgml-indent-data:nil
    65 sgml-parent-document:("graph-classes.xml" "sect1" "classsynopsis")
   121 sgml-parent-document:("graph-classes.xml" "sect1" "etik:class")
    66 sgml-exposed-tags:nil
   122 sgml-exposed-tags:nil
    67 sgml-local-catalogs:nil
   123 sgml-local-catalogs:nil
    68 sgml-local-ecat-files:nil
   124 sgml-local-ecat-files:nil
    69 End:
   125 End:
    70 -->
   126 -->