<?xml version='1.0' encoding='ISO-8859-1' standalone='yes'?>
<doxygen version="1.2.14">
  <compounddef id="AttrMap_8h" kind="file">
    <compoundname>AttrMap.h</compoundname>
    <includes local="no">vector</includes>
    <includes id="XMLString_8h" local="yes">XMLString.h</includes>
    <includes id="misc_8h" local="yes">misc.h</includes>
    <includes local="yes">AttrMap.cpp</includes>
    <includedby id="SAX__EventHandler_8h" local="yes">SAX_EventHandler.h</includedby>
    <includedby id="SAX__Parser_8h" local="yes">SAX_Parser.h</includedby>
    <incdepgraph>
      <node id="18">
        <label>AttrMap.h</label>
        <link id="AttrMap.h"/>
        <childnode id="19" relation="public-inheritance">
        </childnode>
        <childnode id="20" relation="public-inheritance">
        </childnode>
        <childnode id="24" relation="public-inheritance">
        </childnode>
        <childnode id="27" relation="public-inheritance">
        </childnode>
      </node>
      <node id="26">
        <label>DefaultTraits.h</label>
        <link id="DefaultTraits_8h"/>
        <childnode id="25" relation="public-inheritance">
        </childnode>
      </node>
      <node id="21">
        <label>string</label>
      </node>
      <node id="20">
        <label>XMLString.h</label>
        <link id="XMLString_8h"/>
        <childnode id="21" relation="public-inheritance">
        </childnode>
        <childnode id="22" relation="public-inheritance">
        </childnode>
        <childnode id="23" relation="public-inheritance">
        </childnode>
      </node>
      <node id="25">
        <label>classes.h</label>
        <link id="classes_8h"/>
        <childnode id="23" relation="public-inheritance">
        </childnode>
        <childnode id="21" relation="public-inheritance">
        </childnode>
      </node>
      <node id="19">
        <label>vector</label>
      </node>
      <node id="24">
        <label>misc.h</label>
        <link id="misc_8h"/>
        <childnode id="25" relation="public-inheritance">
        </childnode>
        <childnode id="26" relation="public-inheritance">
        </childnode>
      </node>
      <node id="22">
        <label>iostream</label>
      </node>
      <node id="23">
        <label>config.h</label>
        <link id="config_8h"/>
      </node>
      <node id="27">
        <label>AttrMap.cpp</label>
      </node>
    </incdepgraph>
    <invincdepgraph>
      <node id="28">
        <label>AttrMap.h</label>
        <link id="AttrMap.h"/>
        <childnode id="29" relation="public-inheritance">
        </childnode>
        <childnode id="30" relation="public-inheritance">
        </childnode>
      </node>
      <node id="31">
        <label>DOM_Parser.h</label>
        <link id="DOM__Parser_8h"/>
        <childnode id="32" relation="public-inheritance">
        </childnode>
      </node>
      <node id="30">
        <label>SAX_Parser.h</label>
        <link id="SAX__Parser_8h"/>
        <childnode id="31" relation="public-inheritance">
        </childnode>
        <childnode id="32" relation="public-inheritance">
        </childnode>
      </node>
      <node id="32">
        <label>MiX.h</label>
        <link id="MiX_8h"/>
      </node>
      <node id="29">
        <label>SAX_EventHandler.h</label>
        <link id="SAX__EventHandler_8h"/>
        <childnode id="30" relation="public-inheritance">
        </childnode>
      </node>
    </invincdepgraph>
    <innernamespace refid="namespaceMiX">MiX</innernamespace>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
    </detaileddescription>
    <programlisting>
<linenumber line="1"/><codeline><highlight class="comment">// -*- mode: C++ -*-</highlight></codeline>
<linenumber line="2"/><codeline><highlight class="preprocessor">#ifndef MiX_ATTRMAP_H_</highlight></codeline>
<linenumber line="3"/><codeline><highlight class="preprocessor"></highlight><highlight class="preprocessor">#define MiX_ATTRMAP_H_</highlight></codeline>
<linenumber line="4"/><codeline><highlight class="preprocessor"></highlight></codeline>
<linenumber line="5"/><codeline><highlight class="preprocessor">#include &lt;vector&gt;</highlight></codeline>
<linenumber line="6"/><codeline><highlight class="preprocessor">#include &quot;<ref refid="XMLString_8h" kindref="compound">XMLString.h</ref>&quot;</highlight></codeline>
<linenumber line="7"/><codeline><highlight class="preprocessor">#include &quot;<ref refid="misc_8h" kindref="compound">misc.h</ref>&quot;</highlight></codeline>
<linenumber line="8"/><codeline></codeline>
<linenumber line="9"/><codeline><highlight class="keyword">namespace </highlight>MiX{</codeline>
<linenumber line="10"/><codeline>  <highlight class="keyword">template</highlight> &lt;<highlight class="keyword">class</highlight> <highlight class="keywordtype">char</highlight>T,<highlight class="keyword">class</highlight> <highlight class="keywordtype">char</highlight>_traits,<highlight class="keyword">class</highlight> xml_traits&gt;</codeline>
<linenumber line="11" refid="classMiX_1_1AttrMap" kindref="compound"/><codeline>  <highlight class="keyword">class </highlight>AttrMap {</codeline>
<linenumber line="12"/><codeline>  <highlight class="keyword">public</highlight>:</codeline>
<linenumber line="13"/><codeline>    <ref refid="classMiX_1_1AttrMap_1a0" kindref="member">MiX_Template_Typedef</ref>(charT,char_traits,xml_traits);</codeline>
<linenumber line="14" refid="classMiX_1_1AttrMap_1s0" kindref="member"/><codeline>    <highlight class="keyword">typedef</highlight> std::pair&lt;string_type,string_type&gt; <ref refid="classMiX_1_1AttrMap_1s0" kindref="member">val_type</ref>;</codeline>
<linenumber line="15" refid="classMiX_1_1AttrMap_1s1" kindref="member"/><codeline>    <highlight class="keyword">typedef</highlight> std::vector&lt;val_type&gt; <ref refid="classMiX_1_1AttrMap_1s1" kindref="member">container_type</ref>;</codeline>
<linenumber line="16" refid="classMiX_1_1AttrMap_1s2" kindref="member"/><codeline>    <highlight class="keyword">typedef</highlight> <highlight class="keyword">typename</highlight> container_type::iterator <ref refid="classMiX_1_1AttrMap_1s2" kindref="member">iterator</ref>;</codeline>
<linenumber line="17" refid="classMiX_1_1AttrMap_1s3" kindref="member"/><codeline>    <highlight class="keyword">typedef</highlight> <highlight class="keyword">typename</highlight> container_type::const_iterator <ref refid="classMiX_1_1AttrMap_1s3" kindref="member">const_iterator</ref>;</codeline>
<linenumber line="18"/><codeline>  <highlight class="keyword">private</highlight>:</codeline>
<linenumber line="19"/><codeline>    <ref refid="classMiX_1_1AttrMap_1s1" kindref="member">container_type</ref> impl_;</codeline>
<linenumber line="20"/><codeline>    <highlight class="keyword">struct </highlight>search_by_key{</codeline>
<linenumber line="21"/><codeline>      string_type key_;</codeline>
<linenumber line="22"/><codeline>      search_by_key(<highlight class="keyword">const</highlight> string_type&amp; key) : key_(key) { };</codeline>
<linenumber line="23"/><codeline>      <highlight class="keywordtype">bool</highlight> operator()(<highlight class="keyword">const</highlight> val_type&amp; v){ <highlight class="keywordflow">return</highlight> v.first==key_; }</codeline>
<linenumber line="24"/><codeline>    };</codeline>
<linenumber line="25"/><codeline></codeline>
<linenumber line="26"/><codeline>  <highlight class="keyword">public</highlight>:</codeline>
<linenumber line="28" refid="classMiX_1_1AttrMap_1a1" kindref="member"/><codeline>    <ref refid="classMiX_1_1AttrMap_1a1" kindref="member">AttrMap</ref>(){ impl_.clear(); }</codeline>
<linenumber line="30" refid="classMiX_1_1AttrMap_1a2" kindref="member"/><codeline>    <ref refid="classMiX_1_1AttrMap_1s2" kindref="member">iterator</ref> <ref refid="classMiX_1_1AttrMap_1a2" kindref="member">begin</ref>() { <highlight class="keywordflow">return</highlight> impl_.begin(); }</codeline>
<linenumber line="32" refid="classMiX_1_1AttrMap_1a3" kindref="member"/><codeline>    <ref refid="classMiX_1_1AttrMap_1s2" kindref="member">iterator</ref> <ref refid="classMiX_1_1AttrMap_1a3" kindref="member">end</ref>() { <highlight class="keywordflow">return</highlight> impl_.end(); }</codeline>
<linenumber line="34" refid="classMiX_1_1AttrMap_1a4" kindref="member"/><codeline>    <ref refid="classMiX_1_1AttrMap_1s3" kindref="member">const_iterator</ref> <ref refid="classMiX_1_1AttrMap_1a2" kindref="member">begin</ref>()<highlight class="keyword">const</highlight>{ <highlight class="keywordflow">return</highlight> impl_.begin(); }</codeline>
<linenumber line="36" refid="classMiX_1_1AttrMap_1a5" kindref="member"/><codeline>    <ref refid="classMiX_1_1AttrMap_1s3" kindref="member">const_iterator</ref> <ref refid="classMiX_1_1AttrMap_1a3" kindref="member">end</ref>()<highlight class="keyword">const</highlight>{ <highlight class="keywordflow">return</highlight> impl_.end(); }</codeline>
<linenumber line="38" refid="classMiX_1_1AttrMap_1a6" kindref="member"/><codeline>    size_t <ref refid="classMiX_1_1AttrMap_1a6" kindref="member">size</ref>()<highlight class="keyword">const</highlight>{ <highlight class="keywordflow">return</highlight> impl_.size(); }</codeline>
<linenumber line="40" refid="classMiX_1_1AttrMap_1a7" kindref="member"/><codeline>    <highlight class="keywordtype">bool</highlight> <ref refid="classMiX_1_1AttrMap_1a7" kindref="member">empty</ref>()<highlight class="keyword">const</highlight>{ <highlight class="keywordflow">return</highlight> impl_.empty(); }</codeline>
<linenumber line="42" refid="classMiX_1_1AttrMap_1a8" kindref="member"/><codeline>    <highlight class="keywordtype">void</highlight> <ref refid="classMiX_1_1AttrMap_1a8" kindref="member">insert</ref>(<highlight class="keyword">const</highlight> <ref refid="classMiX_1_1AttrMap_1s0" kindref="member">val_type</ref>&amp; data){ impl_.push_back(data); }</codeline>
<linenumber line="44" refid="classMiX_1_1AttrMap_1a9" kindref="member"/><codeline>    <highlight class="keywordtype">void</highlight> <ref refid="classMiX_1_1AttrMap_1a9" kindref="member">clear</ref>(){ impl_.clear(); }</codeline>
<linenumber line="46" refid="classMiX_1_1AttrMap_1a10" kindref="member"/><codeline>    <ref refid="classMiX_1_1AttrMap_1s2" kindref="member">iterator</ref> <ref refid="classMiX_1_1AttrMap_1a10" kindref="member">find</ref>(<highlight class="keyword">const</highlight> string_type&amp; key){ </codeline>
<linenumber line="47"/><codeline>      <highlight class="keywordflow">return</highlight> find_if(<ref refid="classMiX_1_1AttrMap_1a2" kindref="member">begin</ref>(),<ref refid="classMiX_1_1AttrMap_1a3" kindref="member">end</ref>(),search_by_key(key));</codeline>
<linenumber line="48"/><codeline>    }</codeline>
<linenumber line="50" refid="classMiX_1_1AttrMap_1a11" kindref="member"/><codeline>    <ref refid="classMiX_1_1AttrMap_1s3" kindref="member">const_iterator</ref> <ref refid="classMiX_1_1AttrMap_1a10" kindref="member">find</ref>(<highlight class="keyword">const</highlight> string_type key)<highlight class="keyword">const</highlight>{ </codeline>
<linenumber line="51"/><codeline>      <highlight class="keywordflow">return</highlight> find_if(<ref refid="classMiX_1_1AttrMap_1a2" kindref="member">begin</ref>(),<ref refid="classMiX_1_1AttrMap_1a3" kindref="member">end</ref>(),search_by_key(key));</codeline>
<linenumber line="52"/><codeline>    }</codeline>
<linenumber line="54" refid="classMiX_1_1AttrMap_1a12" kindref="member"/><codeline>    <highlight class="keywordtype">void</highlight> <ref refid="classMiX_1_1AttrMap_1a12" kindref="member">erase</ref>(<highlight class="keyword">const</highlight> string_type key){</codeline>
<linenumber line="55"/><codeline>      <ref refid="classMiX_1_1AttrMap_1s2" kindref="member">iterator</ref> it = <ref refid="classMiX_1_1AttrMap_1a10" kindref="member">find</ref>(key);</codeline>
<linenumber line="56"/><codeline>      <highlight class="keywordflow">if</highlight>(it!=<ref refid="classMiX_1_1AttrMap_1a3" kindref="member">end</ref>()) impl_.erase(it);</codeline>
<linenumber line="57"/><codeline>    }</codeline>
<linenumber line="59"/><codeline>    string_type <ref refid="classMiX_1_1AttrMap_1a13" kindref="member">operator[]</ref>(<highlight class="keyword">const</highlight> string_type&amp; key) <highlight class="keyword">const</highlight>;</codeline>
<linenumber line="60"/><codeline>  };</codeline>
<linenumber line="61"/><codeline>}</codeline>
<linenumber line="62"/><codeline></codeline>
<linenumber line="63"/><codeline><highlight class="preprocessor">#ifndef MiX_ATTRMAP_CPP_</highlight></codeline>
<linenumber line="64"/><codeline><highlight class="preprocessor"></highlight><highlight class="preprocessor">#include &quot;AttrMap.cpp&quot;</highlight></codeline>
<linenumber line="65"/><codeline><highlight class="preprocessor">#endif</highlight></codeline>
<linenumber line="66"/><codeline><highlight class="preprocessor"></highlight></codeline>
<linenumber line="67"/><codeline><highlight class="preprocessor">#endif</highlight></codeline>
    </programlisting>
    <location file="/home/yotaro/prog/MiX-0.5.0/src/MiX/AttrMap.h"/>
  </compounddef>
</doxygen>
