113 lines
17 KiB
XML
113 lines
17 KiB
XML
|
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
||
|
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.6">
|
||
|
<compounddef id="nodevisitor_8hh" kind="file">
|
||
|
<compoundname>nodevisitor.hh</compoundname>
|
||
|
<includes refid="nodevisitor_8hpp" local="no">gecode/gist/nodevisitor.hpp</includes>
|
||
|
<incdepgraph>
|
||
|
<node id="7957">
|
||
|
<label>gecode/gist/nodevisitor.hpp</label>
|
||
|
<link refid="nodevisitor_8hpp_source"/>
|
||
|
</node>
|
||
|
<node id="7956">
|
||
|
<label>/usr/include/gecode/gist/nodevisitor.hh</label>
|
||
|
<link refid="nodevisitor.hh"/>
|
||
|
<childnode refid="7957" relation="include">
|
||
|
</childnode>
|
||
|
</node>
|
||
|
</incdepgraph>
|
||
|
<innerclass refid="classGecode_1_1Gist_1_1NodeVisitor" prot="public">Gecode::Gist::NodeVisitor</innerclass>
|
||
|
<innerclass refid="classGecode_1_1Gist_1_1PostorderNodeVisitor" prot="public">Gecode::Gist::PostorderNodeVisitor</innerclass>
|
||
|
<innerclass refid="classGecode_1_1Gist_1_1PreorderNodeVisitor" prot="public">Gecode::Gist::PreorderNodeVisitor</innerclass>
|
||
|
<innernamespace refid="namespaceGecode">Gecode</innernamespace>
|
||
|
<innernamespace refid="namespaceGecode_1_1Gist">Gecode::Gist</innernamespace>
|
||
|
<briefdescription>
|
||
|
</briefdescription>
|
||
|
<detaileddescription>
|
||
|
</detaileddescription>
|
||
|
<programlisting>
|
||
|
<codeline lineno="1"><highlight class="comment">/*<sp/>-*-<sp/>mode:<sp/>C++;<sp/>c-basic-offset:<sp/>2;<sp/>indent-tabs-mode:<sp/>nil<sp/>-*-<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="2"><highlight class="normal"></highlight><highlight class="comment">/*</highlight></codeline>
|
||
|
<codeline lineno="3"><highlight class="comment"><sp/>*<sp/><sp/>Main<sp/>authors:</highlight></codeline>
|
||
|
<codeline lineno="4"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Guido<sp/>Tack<sp/><tack@gecode.org></highlight></codeline>
|
||
|
<codeline lineno="5"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="6"><highlight class="comment"><sp/>*<sp/><sp/>Copyright:</highlight></codeline>
|
||
|
<codeline lineno="7"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Guido<sp/>Tack,<sp/>2006</highlight></codeline>
|
||
|
<codeline lineno="8"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="9"><highlight class="comment"><sp/>*<sp/><sp/>Last<sp/>modified:</highlight></codeline>
|
||
|
<codeline lineno="10"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>$Date:<sp/>2010-07-30<sp/>10:30:16<sp/>+0200<sp/>(Fri,<sp/>30<sp/>Jul<sp/>2010)<sp/>$<sp/>by<sp/>$Author:<sp/>tack<sp/>$</highlight></codeline>
|
||
|
<codeline lineno="11"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>$Revision:<sp/>11306<sp/>$</highlight></codeline>
|
||
|
<codeline lineno="12"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="13"><highlight class="comment"><sp/>*<sp/><sp/>This<sp/>file<sp/>is<sp/>part<sp/>of<sp/>Gecode,<sp/>the<sp/>generic<sp/>constraint</highlight></codeline>
|
||
|
<codeline lineno="14"><highlight class="comment"><sp/>*<sp/><sp/>development<sp/>environment:</highlight></codeline>
|
||
|
<codeline lineno="15"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>http://www.gecode.org</highlight></codeline>
|
||
|
<codeline lineno="16"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="17"><highlight class="comment"><sp/>*<sp/>Permission<sp/>is<sp/>hereby<sp/>granted,<sp/>free<sp/>of<sp/>charge,<sp/>to<sp/>any<sp/>person<sp/>obtaining</highlight></codeline>
|
||
|
<codeline lineno="18"><highlight class="comment"><sp/>*<sp/>a<sp/>copy<sp/>of<sp/>this<sp/>software<sp/>and<sp/>associated<sp/>documentation<sp/>files<sp/>(the</highlight></codeline>
|
||
|
<codeline lineno="19"><highlight class="comment"><sp/>*<sp/>"Software"),<sp/>to<sp/>deal<sp/>in<sp/>the<sp/>Software<sp/>without<sp/>restriction,<sp/>including</highlight></codeline>
|
||
|
<codeline lineno="20"><highlight class="comment"><sp/>*<sp/>without<sp/>limitation<sp/>the<sp/>rights<sp/>to<sp/>use,<sp/>copy,<sp/>modify,<sp/>merge,<sp/>publish,</highlight></codeline>
|
||
|
<codeline lineno="21"><highlight class="comment"><sp/>*<sp/>distribute,<sp/>sublicense,<sp/>and/or<sp/>sell<sp/>copies<sp/>of<sp/>the<sp/>Software,<sp/>and<sp/>to</highlight></codeline>
|
||
|
<codeline lineno="22"><highlight class="comment"><sp/>*<sp/>permit<sp/>persons<sp/>to<sp/>whom<sp/>the<sp/>Software<sp/>is<sp/>furnished<sp/>to<sp/>do<sp/>so,<sp/>subject<sp/>to</highlight></codeline>
|
||
|
<codeline lineno="23"><highlight class="comment"><sp/>*<sp/>the<sp/>following<sp/>conditions:</highlight></codeline>
|
||
|
<codeline lineno="24"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="25"><highlight class="comment"><sp/>*<sp/>The<sp/>above<sp/>copyright<sp/>notice<sp/>and<sp/>this<sp/>permission<sp/>notice<sp/>shall<sp/>be</highlight></codeline>
|
||
|
<codeline lineno="26"><highlight class="comment"><sp/>*<sp/>included<sp/>in<sp/>all<sp/>copies<sp/>or<sp/>substantial<sp/>portions<sp/>of<sp/>the<sp/>Software.</highlight></codeline>
|
||
|
<codeline lineno="27"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="28"><highlight class="comment"><sp/>*<sp/>THE<sp/>SOFTWARE<sp/>IS<sp/>PROVIDED<sp/>"AS<sp/>IS",<sp/>WITHOUT<sp/>WARRANTY<sp/>OF<sp/>ANY<sp/>KIND,</highlight></codeline>
|
||
|
<codeline lineno="29"><highlight class="comment"><sp/>*<sp/>EXPRESS<sp/>OR<sp/>IMPLIED,<sp/>INCLUDING<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO<sp/>THE<sp/>WARRANTIES<sp/>OF</highlight></codeline>
|
||
|
<codeline lineno="30"><highlight class="comment"><sp/>*<sp/>MERCHANTABILITY,<sp/>FITNESS<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE<sp/>AND</highlight></codeline>
|
||
|
<codeline lineno="31"><highlight class="comment"><sp/>*<sp/>NONINFRINGEMENT.<sp/>IN<sp/>NO<sp/>EVENT<sp/>SHALL<sp/>THE<sp/>AUTHORS<sp/>OR<sp/>COPYRIGHT<sp/>HOLDERS<sp/>BE</highlight></codeline>
|
||
|
<codeline lineno="32"><highlight class="comment"><sp/>*<sp/>LIABLE<sp/>FOR<sp/>ANY<sp/>CLAIM,<sp/>DAMAGES<sp/>OR<sp/>OTHER<sp/>LIABILITY,<sp/>WHETHER<sp/>IN<sp/>AN<sp/>ACTION</highlight></codeline>
|
||
|
<codeline lineno="33"><highlight class="comment"><sp/>*<sp/>OF<sp/>CONTRACT,<sp/>TORT<sp/>OR<sp/>OTHERWISE,<sp/>ARISING<sp/>FROM,<sp/>OUT<sp/>OF<sp/>OR<sp/>IN<sp/>CONNECTION</highlight></codeline>
|
||
|
<codeline lineno="34"><highlight class="comment"><sp/>*<sp/>WITH<sp/>THE<sp/>SOFTWARE<sp/>OR<sp/>THE<sp/>USE<sp/>OR<sp/>OTHER<sp/>DEALINGS<sp/>IN<sp/>THE<sp/>SOFTWARE.</highlight></codeline>
|
||
|
<codeline lineno="35"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="36"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="37"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="38"><highlight class="normal"></highlight><highlight class="preprocessor">#ifndef<sp/>GECODE_GIST_NODEVISITOR_HH</highlight></codeline>
|
||
|
<codeline lineno="39"><highlight class="preprocessor"></highlight><highlight class="preprocessor">#define<sp/>GECODE_GIST_NODEVISITOR_HH</highlight></codeline>
|
||
|
<codeline lineno="40"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="41"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">Gecode<sp/>{<sp/></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">Gist<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="42"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="44"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Cursor></highlight></codeline>
|
||
|
<codeline lineno="45" refid="classGecode_1_1Gist_1_1NodeVisitor" refkind="compound"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classGecode_1_1Gist_1_1NodeVisitor" kindref="compound">NodeVisitor</ref><sp/>{</highlight></codeline>
|
||
|
<codeline lineno="46"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">protected</highlight><highlight class="normal">:</highlight></codeline>
|
||
|
<codeline lineno="48" refid="classGecode_1_1Gist_1_1NodeVisitor_1a1b8ae25084dc5fd554d7bb79dae3831f" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/>Cursor<sp/><ref refid="classGecode_1_1Gist_1_1NodeVisitor_1a1b8ae25084dc5fd554d7bb79dae3831f" kindref="member">c</ref>;</highlight></codeline>
|
||
|
<codeline lineno="49"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
|
||
|
<codeline lineno="51"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Gist_1_1NodeVisitor_1a9b4cdf49f9a152431c807b917ec9253d" kindref="member">NodeVisitor</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>Cursor&<sp/>c0);</highlight></codeline>
|
||
|
<codeline lineno="53"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Gist_1_1NodeVisitor_1aaa48ba858b4dd010faf37bdd1d287944" kindref="member">setCursor</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>Cursor&<sp/>c0);</highlight></codeline>
|
||
|
<codeline lineno="55"><highlight class="normal"><sp/><sp/><sp/><sp/>Cursor&<sp/><ref refid="classGecode_1_1Gist_1_1NodeVisitor_1a8aa1a16f84407334f462429c395ae5d0" kindref="member">getCursor</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="56"><highlight class="normal"><sp/><sp/>};</highlight></codeline>
|
||
|
<codeline lineno="57"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="59"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Cursor></highlight></codeline>
|
||
|
<codeline lineno="60" refid="classGecode_1_1Gist_1_1PostorderNodeVisitor" refkind="compound"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classGecode_1_1Gist_1_1PostorderNodeVisitor" kindref="compound">PostorderNodeVisitor</ref><sp/>:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Gist_1_1NodeVisitor" kindref="compound">NodeVisitor</ref><Cursor><sp/>{</highlight></codeline>
|
||
|
<codeline lineno="61"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">protected</highlight><highlight class="normal">:</highlight></codeline>
|
||
|
<codeline lineno="62"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">using</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Gist_1_1NodeVisitor" kindref="compound">NodeVisitor<Cursor>::c</ref>;</highlight></codeline>
|
||
|
<codeline lineno="64"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Gist_1_1PostorderNodeVisitor_1a418abfc25fdfc5d8d5860dc127616326" kindref="member">moveToLeaf</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="65"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
|
||
|
<codeline lineno="67"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Gist_1_1PostorderNodeVisitor_1a010f86e243f5c426f19f8d3a192921f0" kindref="member">PostorderNodeVisitor</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>Cursor&<sp/><ref refid="classGecode_1_1Gist_1_1NodeVisitor_1a1b8ae25084dc5fd554d7bb79dae3831f" kindref="member">c</ref>);</highlight></codeline>
|
||
|
<codeline lineno="69"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Gist_1_1PostorderNodeVisitor_1a490ed923911d986f3da3acebd1a4133b" kindref="member">next</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="71"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Gist_1_1PostorderNodeVisitor_1a6034cffddd9839b8a22116169365cbfb" kindref="member">run</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="72"><highlight class="normal"><sp/><sp/>};</highlight></codeline>
|
||
|
<codeline lineno="73"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="75"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Cursor></highlight></codeline>
|
||
|
<codeline lineno="76" refid="classGecode_1_1Gist_1_1PreorderNodeVisitor" refkind="compound"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classGecode_1_1Gist_1_1PreorderNodeVisitor" kindref="compound">PreorderNodeVisitor</ref><sp/>:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Gist_1_1NodeVisitor" kindref="compound">NodeVisitor</ref><Cursor><sp/>{</highlight></codeline>
|
||
|
<codeline lineno="77"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">protected</highlight><highlight class="normal">:</highlight></codeline>
|
||
|
<codeline lineno="78"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">using</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Gist_1_1NodeVisitor" kindref="compound">NodeVisitor<Cursor>::c</ref>;</highlight></codeline>
|
||
|
<codeline lineno="80"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Gist_1_1PreorderNodeVisitor_1afb756ddfdb1a5b3493c23aaf48c1f31a" kindref="member">backtrack</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="81"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
|
||
|
<codeline lineno="83"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Gist_1_1PreorderNodeVisitor_1a41d8898d812d694fbe46f55622164336" kindref="member">PreorderNodeVisitor</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>Cursor&<sp/><ref refid="classGecode_1_1Gist_1_1NodeVisitor_1a1b8ae25084dc5fd554d7bb79dae3831f" kindref="member">c</ref>);</highlight></codeline>
|
||
|
<codeline lineno="85"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Gist_1_1PreorderNodeVisitor_1a6227ac2d91b2c056f1b2cb347b522a3a" kindref="member">next</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="87"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Gist_1_1PreorderNodeVisitor_1a6ba849bcb0fb80620afdafe24f925236" kindref="member">run</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="88"><highlight class="normal"><sp/><sp/>};</highlight></codeline>
|
||
|
<codeline lineno="89"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="90"><highlight class="normal">}}</highlight></codeline>
|
||
|
<codeline lineno="91"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="92"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><gecode/gist/nodevisitor.hpp></highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="93"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="94"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight></codeline>
|
||
|
<codeline lineno="95"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="96"><highlight class="normal"></highlight><highlight class="comment">//<sp/>STATISTICS:<sp/>gist-any</highlight><highlight class="normal"></highlight></codeline>
|
||
|
</programlisting>
|
||
|
<location file="/usr/include/gecode/gist/nodevisitor.hh"/>
|
||
|
</compounddef>
|
||
|
</doxygen>
|