1480 lines
112 KiB
XML
1480 lines
112 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="nvalues_2int-base_8hpp" kind="file">
|
|
<compoundname>int-base.hpp</compoundname>
|
|
<includes refid="int_2distinct_8hh" local="no">gecode/int/distinct.hh</includes>
|
|
<includedby refid="nvalues_8hh" local="no">/usr/include/gecode/int/nvalues.hh</includedby>
|
|
<incdepgraph>
|
|
<node id="11654">
|
|
<label>/usr/include/gecode/int/nvalues/int-base.hpp</label>
|
|
<link refid="nvalues/int-base.hpp"/>
|
|
<childnode refid="11655" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11672">
|
|
<label>gecode/support/cast.hpp</label>
|
|
<link refid="cast_8hpp_source"/>
|
|
</node>
|
|
<node id="11764">
|
|
<label>gecode/iter/values-ranges.hpp</label>
|
|
<link refid="values-ranges_8hpp_source"/>
|
|
</node>
|
|
<node id="11786">
|
|
<label>gecode/int/div.hh</label>
|
|
<link refid="div_8hh_source"/>
|
|
<childnode refid="11656" relation="include">
|
|
</childnode>
|
|
<childnode refid="11787" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11785">
|
|
<label>gecode/int/view/scale.hpp</label>
|
|
<link refid="int_2view_2scale_8hpp_source"/>
|
|
<childnode refid="11786" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11753">
|
|
<label>gecode/iter/ranges-rangelist.hpp</label>
|
|
<link refid="ranges-rangelist_8hpp_source"/>
|
|
</node>
|
|
<node id="11812">
|
|
<label>gecode/int/view-val-graph/node.hpp</label>
|
|
<link refid="int_2view-val-graph_2node_8hpp_source"/>
|
|
</node>
|
|
<node id="11726">
|
|
<label>gecode/kernel/brancher-val-sel-commit.hpp</label>
|
|
<link refid="brancher-val-sel-commit_8hpp_source"/>
|
|
</node>
|
|
<node id="11759">
|
|
<label>gecode/iter/values-map.hpp</label>
|
|
<link refid="values-map_8hpp_source"/>
|
|
</node>
|
|
<node id="11744">
|
|
<label>gecode/iter/ranges-negative.hpp</label>
|
|
<link refid="ranges-negative_8hpp_source"/>
|
|
<childnode refid="11675" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11688">
|
|
<label>gecode/support/static-stack.hpp</label>
|
|
<link refid="static-stack_8hpp_source"/>
|
|
</node>
|
|
<node id="11728">
|
|
<label>gecode/kernel/var-imp.hpp</label>
|
|
<link refid="kernel_2var-imp_8hpp_source"/>
|
|
</node>
|
|
<node id="11686">
|
|
<label>gecode/support/random.hpp</label>
|
|
<link refid="random_8hpp_source"/>
|
|
</node>
|
|
<node id="11817">
|
|
<label>gecode/int/rel/nq.hpp</label>
|
|
<link refid="int_2rel_2nq_8hpp_source"/>
|
|
<childnode refid="11675" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11730">
|
|
<label>limits</label>
|
|
</node>
|
|
<node id="11704">
|
|
<label>gecode/kernel/var.hpp</label>
|
|
<link refid="kernel_2var_8hpp_source"/>
|
|
</node>
|
|
<node id="11789">
|
|
<label>gecode/int/view/bool.hpp</label>
|
|
<link refid="int_2view_2bool_8hpp_source"/>
|
|
</node>
|
|
<node id="11768">
|
|
<label>gecode/iter/ranges-size.hpp</label>
|
|
<link refid="ranges-size_8hpp_source"/>
|
|
</node>
|
|
<node id="11689">
|
|
<label>gecode/support/thread/none.hpp</label>
|
|
<link refid="none_8hpp_source"/>
|
|
</node>
|
|
<node id="11708">
|
|
<label>iterator</label>
|
|
</node>
|
|
<node id="11736">
|
|
<label>gecode/iter/ranges-array.hpp</label>
|
|
<link refid="ranges-array_8hpp_source"/>
|
|
</node>
|
|
<node id="11691">
|
|
<label>gecode/support/timer.hpp</label>
|
|
<link refid="timer_8hpp_source"/>
|
|
</node>
|
|
<node id="11655">
|
|
<label>gecode/int/distinct.hh</label>
|
|
<link refid="int_2distinct_8hh_source"/>
|
|
<childnode refid="11656" relation="include">
|
|
</childnode>
|
|
<childnode refid="11808" relation="include">
|
|
</childnode>
|
|
<childnode refid="11815" relation="include">
|
|
</childnode>
|
|
<childnode refid="11820" relation="include">
|
|
</childnode>
|
|
<childnode refid="11821" relation="include">
|
|
</childnode>
|
|
<childnode refid="11822" relation="include">
|
|
</childnode>
|
|
<childnode refid="11823" relation="include">
|
|
</childnode>
|
|
<childnode refid="11824" relation="include">
|
|
</childnode>
|
|
<childnode refid="11825" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11690">
|
|
<label>gecode/support/thread/thread.hpp</label>
|
|
<link refid="thread_2thread_8hpp_source"/>
|
|
</node>
|
|
<node id="11752">
|
|
<label>gecode/iter/ranges-singleton-append.hpp</label>
|
|
<link refid="ranges-singleton-append_8hpp_source"/>
|
|
</node>
|
|
<node id="11746">
|
|
<label>gecode/iter/ranges-positive.hpp</label>
|
|
<link refid="ranges-positive_8hpp_source"/>
|
|
<childnode refid="11675" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11725">
|
|
<label>gecode/kernel/brancher-val-commit.hpp</label>
|
|
<link refid="brancher-val-commit_8hpp_source"/>
|
|
</node>
|
|
<node id="11777">
|
|
<label>gecode/int/view/iter.hpp</label>
|
|
<link refid="int_2view_2iter_8hpp_source"/>
|
|
</node>
|
|
<node id="11820">
|
|
<label>gecode/int/distinct/val.hpp</label>
|
|
<link refid="int_2distinct_2val_8hpp_source"/>
|
|
</node>
|
|
<node id="11815">
|
|
<label>gecode/int/rel.hh</label>
|
|
<link refid="int_2rel_8hh_source"/>
|
|
<childnode refid="11656" relation="include">
|
|
</childnode>
|
|
<childnode refid="11816" relation="include">
|
|
</childnode>
|
|
<childnode refid="11817" relation="include">
|
|
</childnode>
|
|
<childnode refid="11818" relation="include">
|
|
</childnode>
|
|
<childnode refid="11819" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11715">
|
|
<label>gecode/kernel/afc.hpp</label>
|
|
<link refid="kernel_2afc_8hpp_source"/>
|
|
</node>
|
|
<node id="11700">
|
|
<label>gecode/kernel/var-type.hpp</label>
|
|
<link refid="var-type_8hpp_source"/>
|
|
</node>
|
|
<node id="11692">
|
|
<label>gecode/support/hw-rnd.hpp</label>
|
|
<link refid="hw-rnd_8hpp_source"/>
|
|
</node>
|
|
<node id="11756">
|
|
<label>gecode/iter/values-bitsetoffset.hpp</label>
|
|
<link refid="values-bitsetoffset_8hpp_source"/>
|
|
</node>
|
|
<node id="11680">
|
|
<label>cmath</label>
|
|
</node>
|
|
<node id="11665">
|
|
<label>cassert</label>
|
|
</node>
|
|
<node id="11722">
|
|
<label>gecode/kernel/brancher-view-sel.hpp</label>
|
|
<link refid="brancher-view-sel_8hpp_source"/>
|
|
</node>
|
|
<node id="11729">
|
|
<label>gecode/kernel/allocators.hpp</label>
|
|
<link refid="allocators_8hpp_source"/>
|
|
<childnode refid="11730" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11825">
|
|
<label>gecode/int/distinct/dom.hpp</label>
|
|
<link refid="distinct_2dom_8hpp_source"/>
|
|
<childnode refid="11657" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11797">
|
|
<label>gecode/int/int-set-2.hpp</label>
|
|
<link refid="int-set-2_8hpp_source"/>
|
|
</node>
|
|
<node id="11707">
|
|
<label>cstdarg</label>
|
|
</node>
|
|
<node id="11678">
|
|
<label>gecode/support/bitset-base.hpp</label>
|
|
<link refid="bitset-base_8hpp_source"/>
|
|
<childnode refid="11657" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11710">
|
|
<label>gecode/kernel/shared-array.hpp</label>
|
|
<link refid="shared-array_8hpp_source"/>
|
|
<childnode refid="11707" relation="include">
|
|
</childnode>
|
|
<childnode refid="11659" relation="include">
|
|
</childnode>
|
|
<childnode refid="11709" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11788">
|
|
<label>gecode/int/view/cached.hpp</label>
|
|
<link refid="int_2view_2cached_8hpp_source"/>
|
|
</node>
|
|
<node id="11701">
|
|
<label>gecode/kernel/modevent.hpp</label>
|
|
<link refid="modevent_8hpp_source"/>
|
|
</node>
|
|
<node id="11694">
|
|
<label>gecode/kernel/memory-config.hpp</label>
|
|
<link refid="memory-config_8hpp_source"/>
|
|
</node>
|
|
<node id="11806">
|
|
<label>gecode/int/branch/val.hpp</label>
|
|
<link refid="int_2branch_2val_8hpp_source"/>
|
|
</node>
|
|
<node id="11677">
|
|
<label>gecode/support/int-type.hpp</label>
|
|
<link refid="int-type_8hpp_source"/>
|
|
<childnode refid="11657" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11823">
|
|
<label>gecode/int/distinct/graph.hpp</label>
|
|
<link refid="distinct_2graph_8hpp_source"/>
|
|
<childnode refid="11657" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11763">
|
|
<label>gecode/iter/values-positive.hpp</label>
|
|
<link refid="values-positive_8hpp_source"/>
|
|
</node>
|
|
<node id="11658">
|
|
<label>cfloat</label>
|
|
</node>
|
|
<node id="11814">
|
|
<label>gecode/int/view-val-graph/graph.hpp</label>
|
|
<link refid="view-val-graph_2graph_8hpp_source"/>
|
|
<childnode refid="11657" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11769">
|
|
<label>gecode/int/exception.hpp</label>
|
|
<link refid="int_2exception_8hpp_source"/>
|
|
</node>
|
|
<node id="11670">
|
|
<label>gecode/support/exception.hpp</label>
|
|
<link refid="support_2exception_8hpp_source"/>
|
|
<childnode refid="11671" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11671">
|
|
<label>exception</label>
|
|
</node>
|
|
<node id="11824">
|
|
<label>gecode/int/distinct/dom-ctrl.hpp</label>
|
|
<link refid="dom-ctrl_8hpp_source"/>
|
|
<childnode refid="11657" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11742">
|
|
<label>gecode/iter/ranges-map.hpp</label>
|
|
<link refid="ranges-map_8hpp_source"/>
|
|
</node>
|
|
<node id="11703">
|
|
<label>gecode/kernel/region.hpp</label>
|
|
<link refid="region_8hpp_source"/>
|
|
</node>
|
|
<node id="11676">
|
|
<label>gecode/support/marked-pointer.hpp</label>
|
|
<link refid="marked-pointer_8hpp_source"/>
|
|
<childnode refid="11662" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11673">
|
|
<label>gecode/support/thread.hpp</label>
|
|
<link refid="thread_8hpp_source"/>
|
|
<childnode refid="11662" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11661">
|
|
<label>gecode/kernel.hh</label>
|
|
<link refid="kernel_8hh_source"/>
|
|
<childnode refid="11662" relation="include">
|
|
</childnode>
|
|
<childnode refid="11663" relation="include">
|
|
</childnode>
|
|
<childnode refid="11664" relation="include">
|
|
</childnode>
|
|
<childnode refid="11665" relation="include">
|
|
</childnode>
|
|
<childnode refid="11666" relation="include">
|
|
</childnode>
|
|
<childnode refid="11668" relation="include">
|
|
</childnode>
|
|
<childnode refid="11693" relation="include">
|
|
</childnode>
|
|
<childnode refid="11694" relation="include">
|
|
</childnode>
|
|
<childnode refid="11695" relation="include">
|
|
</childnode>
|
|
<childnode refid="11696" relation="include">
|
|
</childnode>
|
|
<childnode refid="11697" relation="include">
|
|
</childnode>
|
|
<childnode refid="11698" relation="include">
|
|
</childnode>
|
|
<childnode refid="11699" relation="include">
|
|
</childnode>
|
|
<childnode refid="11701" relation="include">
|
|
</childnode>
|
|
<childnode refid="11702" relation="include">
|
|
</childnode>
|
|
<childnode refid="11703" relation="include">
|
|
</childnode>
|
|
<childnode refid="11704" relation="include">
|
|
</childnode>
|
|
<childnode refid="11705" relation="include">
|
|
</childnode>
|
|
<childnode refid="11706" relation="include">
|
|
</childnode>
|
|
<childnode refid="11710" relation="include">
|
|
</childnode>
|
|
<childnode refid="11711" relation="include">
|
|
</childnode>
|
|
<childnode refid="11713" relation="include">
|
|
</childnode>
|
|
<childnode refid="11714" relation="include">
|
|
</childnode>
|
|
<childnode refid="11715" relation="include">
|
|
</childnode>
|
|
<childnode refid="11716" relation="include">
|
|
</childnode>
|
|
<childnode refid="11717" relation="include">
|
|
</childnode>
|
|
<childnode refid="11718" relation="include">
|
|
</childnode>
|
|
<childnode refid="11719" relation="include">
|
|
</childnode>
|
|
<childnode refid="11720" relation="include">
|
|
</childnode>
|
|
<childnode refid="11721" relation="include">
|
|
</childnode>
|
|
<childnode refid="11722" relation="include">
|
|
</childnode>
|
|
<childnode refid="11723" relation="include">
|
|
</childnode>
|
|
<childnode refid="11724" relation="include">
|
|
</childnode>
|
|
<childnode refid="11725" relation="include">
|
|
</childnode>
|
|
<childnode refid="11726" relation="include">
|
|
</childnode>
|
|
<childnode refid="11727" relation="include">
|
|
</childnode>
|
|
<childnode refid="11728" relation="include">
|
|
</childnode>
|
|
<childnode refid="11729" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11771">
|
|
<label>gecode/int/int-set-1.hpp</label>
|
|
<link refid="int-set-1_8hpp_source"/>
|
|
<childnode refid="11709" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11716">
|
|
<label>gecode/kernel/branch-traits.hpp</label>
|
|
<link refid="branch-traits_8hpp_source"/>
|
|
</node>
|
|
<node id="11782">
|
|
<label>gecode/int/view/zero.hpp</label>
|
|
<link refid="zero_8hpp_source"/>
|
|
</node>
|
|
<node id="11738">
|
|
<label>gecode/iter/ranges-compl.hpp</label>
|
|
<link refid="ranges-compl_8hpp_source"/>
|
|
</node>
|
|
<node id="11800">
|
|
<label>gecode/int/extensional/dfa.hpp</label>
|
|
<link refid="dfa_8hpp_source"/>
|
|
<childnode refid="11709" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11706">
|
|
<label>gecode/kernel/array.hpp</label>
|
|
<link refid="kernel_2array_8hpp_source"/>
|
|
<childnode refid="11707" relation="include">
|
|
</childnode>
|
|
<childnode refid="11659" relation="include">
|
|
</childnode>
|
|
<childnode refid="11708" relation="include">
|
|
</childnode>
|
|
<childnode refid="11660" relation="include">
|
|
</childnode>
|
|
<childnode refid="11709" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11803">
|
|
<label>gecode/int/branch/afc.hpp</label>
|
|
<link refid="int_2branch_2afc_8hpp_source"/>
|
|
</node>
|
|
<node id="11720">
|
|
<label>gecode/kernel/branch-val.hpp</label>
|
|
<link refid="branch-val_8hpp_source"/>
|
|
</node>
|
|
<node id="11685">
|
|
<label>gecode/support/dynamic-stack.hpp</label>
|
|
<link refid="dynamic-stack_8hpp_source"/>
|
|
</node>
|
|
<node id="11747">
|
|
<label>gecode/iter/ranges-scale.hpp</label>
|
|
<link refid="ranges-scale_8hpp_source"/>
|
|
<childnode refid="11680" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11697">
|
|
<label>gecode/kernel/archive.hpp</label>
|
|
<link refid="archive_8hpp_source"/>
|
|
</node>
|
|
<node id="11702">
|
|
<label>gecode/kernel/range-list.hpp</label>
|
|
<link refid="range-list_8hpp_source"/>
|
|
</node>
|
|
<node id="11758">
|
|
<label>gecode/iter/values-inter.hpp</label>
|
|
<link refid="values-inter_8hpp_source"/>
|
|
</node>
|
|
<node id="11721">
|
|
<label>gecode/kernel/brancher-merit.hpp</label>
|
|
<link refid="brancher-merit_8hpp_source"/>
|
|
</node>
|
|
<node id="11667">
|
|
<label>gecode/support/config.hpp</label>
|
|
<link refid="support_2config_8hpp_source"/>
|
|
</node>
|
|
<node id="11794">
|
|
<label>gecode/int/view/bool-test.hpp</label>
|
|
<link refid="bool-test_8hpp_source"/>
|
|
</node>
|
|
<node id="11751">
|
|
<label>gecode/iter/ranges-add.hpp</label>
|
|
<link refid="ranges-add_8hpp_source"/>
|
|
</node>
|
|
<node id="11776">
|
|
<label>gecode/int/view.hpp</label>
|
|
<link refid="int_2view_8hpp_source"/>
|
|
<childnode refid="11659" relation="include">
|
|
</childnode>
|
|
<childnode refid="11777" relation="include">
|
|
</childnode>
|
|
<childnode refid="11778" relation="include">
|
|
</childnode>
|
|
<childnode refid="11779" relation="include">
|
|
</childnode>
|
|
<childnode refid="11780" relation="include">
|
|
</childnode>
|
|
<childnode refid="11781" relation="include">
|
|
</childnode>
|
|
<childnode refid="11782" relation="include">
|
|
</childnode>
|
|
<childnode refid="11783" relation="include">
|
|
</childnode>
|
|
<childnode refid="11784" relation="include">
|
|
</childnode>
|
|
<childnode refid="11785" relation="include">
|
|
</childnode>
|
|
<childnode refid="11788" relation="include">
|
|
</childnode>
|
|
<childnode refid="11789" relation="include">
|
|
</childnode>
|
|
<childnode refid="11790" relation="include">
|
|
</childnode>
|
|
<childnode refid="11791" relation="include">
|
|
</childnode>
|
|
<childnode refid="11792" relation="include">
|
|
</childnode>
|
|
<childnode refid="11793" relation="include">
|
|
</childnode>
|
|
<childnode refid="11794" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11757">
|
|
<label>gecode/iter/values-list.hpp</label>
|
|
<link refid="values-list_8hpp_source"/>
|
|
</node>
|
|
<node id="11760">
|
|
<label>gecode/iter/values-minus.hpp</label>
|
|
<link refid="values-minus_8hpp_source"/>
|
|
</node>
|
|
<node id="11718">
|
|
<label>gecode/kernel/branch-var.hpp</label>
|
|
<link refid="branch-var_8hpp_source"/>
|
|
</node>
|
|
<node id="11818">
|
|
<label>gecode/int/rel/lq-le.hpp</label>
|
|
<link refid="int_2rel_2lq-le_8hpp_source"/>
|
|
</node>
|
|
<node id="11695">
|
|
<label>gecode/kernel/memory-manager.hpp</label>
|
|
<link refid="memory-manager_8hpp_source"/>
|
|
</node>
|
|
<node id="11770">
|
|
<label>gecode/int/limits.hpp</label>
|
|
<link refid="int_2limits_8hpp_source"/>
|
|
</node>
|
|
<node id="11684">
|
|
<label>gecode/support/dynamic-queue.hpp</label>
|
|
<link refid="dynamic-queue_8hpp_source"/>
|
|
</node>
|
|
<node id="11795">
|
|
<label>gecode/int/propagator.hpp</label>
|
|
<link refid="int_2propagator_8hpp_source"/>
|
|
</node>
|
|
<node id="11802">
|
|
<label>gecode/int/branch/traits.hpp</label>
|
|
<link refid="int_2branch_2traits_8hpp_source"/>
|
|
</node>
|
|
<node id="11766">
|
|
<label>gecode/iter/values-union.hpp</label>
|
|
<link refid="values-union_8hpp_source"/>
|
|
</node>
|
|
<node id="11696">
|
|
<label>gecode/kernel/macros.hpp</label>
|
|
<link refid="kernel_2macros_8hpp_source"/>
|
|
</node>
|
|
<node id="11745">
|
|
<label>gecode/iter/ranges-offset.hpp</label>
|
|
<link refid="ranges-offset_8hpp_source"/>
|
|
</node>
|
|
<node id="11712">
|
|
<label>ctime</label>
|
|
</node>
|
|
<node id="11784">
|
|
<label>gecode/int/view/offset.hpp</label>
|
|
<link refid="int_2view_2offset_8hpp_source"/>
|
|
</node>
|
|
<node id="11754">
|
|
<label>gecode/iter/values-array.hpp</label>
|
|
<link refid="values-array_8hpp_source"/>
|
|
</node>
|
|
<node id="11809">
|
|
<label>gecode/int/view-val-graph/comb-ptr-flag.hpp</label>
|
|
<link refid="comb-ptr-flag_8hpp_source"/>
|
|
</node>
|
|
<node id="11805">
|
|
<label>gecode/int/branch/var.hpp</label>
|
|
<link refid="int_2branch_2var_8hpp_source"/>
|
|
</node>
|
|
<node id="11748">
|
|
<label>gecode/iter/ranges-singleton.hpp</label>
|
|
<link refid="ranges-singleton_8hpp_source"/>
|
|
</node>
|
|
<node id="11660">
|
|
<label>vector</label>
|
|
</node>
|
|
<node id="11819">
|
|
<label>gecode/int/rel/lex.hpp</label>
|
|
<link refid="lex_8hpp_source"/>
|
|
</node>
|
|
<node id="11791">
|
|
<label>gecode/int/view/print.hpp</label>
|
|
<link refid="int_2view_2print_8hpp_source"/>
|
|
<childnode refid="11709" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11714">
|
|
<label>gecode/kernel/advisor.hpp</label>
|
|
<link refid="advisor_8hpp_source"/>
|
|
</node>
|
|
<node id="11808">
|
|
<label>gecode/int/view-val-graph.hh</label>
|
|
<link refid="view-val-graph_8hh_source"/>
|
|
<childnode refid="11656" relation="include">
|
|
</childnode>
|
|
<childnode refid="11809" relation="include">
|
|
</childnode>
|
|
<childnode refid="11810" relation="include">
|
|
</childnode>
|
|
<childnode refid="11811" relation="include">
|
|
</childnode>
|
|
<childnode refid="11812" relation="include">
|
|
</childnode>
|
|
<childnode refid="11813" relation="include">
|
|
</childnode>
|
|
<childnode refid="11814" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11801">
|
|
<label>gecode/int/extensional/tuple-set.hpp</label>
|
|
<link refid="tuple-set_8hpp_source"/>
|
|
<childnode refid="11709" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11813">
|
|
<label>gecode/int/view-val-graph/iter-prune-val.hpp</label>
|
|
<link refid="iter-prune-val_8hpp_source"/>
|
|
</node>
|
|
<node id="11811">
|
|
<label>gecode/int/view-val-graph/edge.hpp</label>
|
|
<link refid="edge_8hpp_source"/>
|
|
</node>
|
|
<node id="11727">
|
|
<label>gecode/kernel/brancher-view-val.hpp</label>
|
|
<link refid="brancher-view-val_8hpp_source"/>
|
|
</node>
|
|
<node id="11780">
|
|
<label>gecode/int/view/int.hpp</label>
|
|
<link refid="int_2view_2int_8hpp_source"/>
|
|
</node>
|
|
<node id="11793">
|
|
<label>gecode/int/view/rel-test.hpp</label>
|
|
<link refid="int_2view_2rel-test_8hpp_source"/>
|
|
</node>
|
|
<node id="11709">
|
|
<label>sstream</label>
|
|
</node>
|
|
<node id="11796">
|
|
<label>gecode/int/array-traits.hpp</label>
|
|
<link refid="int_2array-traits_8hpp_source"/>
|
|
</node>
|
|
<node id="11724">
|
|
<label>gecode/kernel/brancher-val-sel.hpp</label>
|
|
<link refid="brancher-val-sel_8hpp_source"/>
|
|
</node>
|
|
<node id="11713">
|
|
<label>gecode/kernel/propagator.hpp</label>
|
|
<link refid="kernel_2propagator_8hpp_source"/>
|
|
</node>
|
|
<node id="11810">
|
|
<label>gecode/int/view-val-graph/bi-link.hpp</label>
|
|
<link refid="bi-link_8hpp_source"/>
|
|
</node>
|
|
<node id="11682">
|
|
<label>gecode/support/block-allocator.hpp</label>
|
|
<link refid="block-allocator_8hpp_source"/>
|
|
</node>
|
|
<node id="11787">
|
|
<label>gecode/int/div.hpp</label>
|
|
<link refid="int_2div_8hpp_source"/>
|
|
</node>
|
|
<node id="11762">
|
|
<label>gecode/iter/values-offset.hpp</label>
|
|
<link refid="values-offset_8hpp_source"/>
|
|
</node>
|
|
<node id="11798">
|
|
<label>gecode/int/array.hpp</label>
|
|
<link refid="int_2array_8hpp_source"/>
|
|
</node>
|
|
<node id="11717">
|
|
<label>gecode/kernel/activity.hpp</label>
|
|
<link refid="kernel_2activity_8hpp_source"/>
|
|
</node>
|
|
<node id="11656">
|
|
<label>gecode/int.hh</label>
|
|
<link refid="int_8hh_source"/>
|
|
<childnode refid="11657" relation="include">
|
|
</childnode>
|
|
<childnode refid="11658" relation="include">
|
|
</childnode>
|
|
<childnode refid="11659" relation="include">
|
|
</childnode>
|
|
<childnode refid="11660" relation="include">
|
|
</childnode>
|
|
<childnode refid="11661" relation="include">
|
|
</childnode>
|
|
<childnode refid="11731" relation="include">
|
|
</childnode>
|
|
<childnode refid="11668" relation="include">
|
|
</childnode>
|
|
<childnode refid="11769" relation="include">
|
|
</childnode>
|
|
<childnode refid="11770" relation="include">
|
|
</childnode>
|
|
<childnode refid="11771" relation="include">
|
|
</childnode>
|
|
<childnode refid="11772" relation="include">
|
|
</childnode>
|
|
<childnode refid="11776" relation="include">
|
|
</childnode>
|
|
<childnode refid="11795" relation="include">
|
|
</childnode>
|
|
<childnode refid="11796" relation="include">
|
|
</childnode>
|
|
<childnode refid="11797" relation="include">
|
|
</childnode>
|
|
<childnode refid="11798" relation="include">
|
|
</childnode>
|
|
<childnode refid="11799" relation="include">
|
|
</childnode>
|
|
<childnode refid="11800" relation="include">
|
|
</childnode>
|
|
<childnode refid="11801" relation="include">
|
|
</childnode>
|
|
<childnode refid="11802" relation="include">
|
|
</childnode>
|
|
<childnode refid="11803" relation="include">
|
|
</childnode>
|
|
<childnode refid="11804" relation="include">
|
|
</childnode>
|
|
<childnode refid="11805" relation="include">
|
|
</childnode>
|
|
<childnode refid="11806" relation="include">
|
|
</childnode>
|
|
<childnode refid="11807" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11663">
|
|
<label>cstdlib</label>
|
|
</node>
|
|
<node id="11679">
|
|
<label>gecode/support/bitset.hpp</label>
|
|
<link refid="bitset_8hpp_source"/>
|
|
<childnode refid="11657" relation="include">
|
|
</childnode>
|
|
<childnode refid="11680" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11779">
|
|
<label>gecode/int/var/bool.hpp</label>
|
|
<link refid="int_2var_2bool_8hpp_source"/>
|
|
</node>
|
|
<node id="11668">
|
|
<label>gecode/support/auto-link.hpp</label>
|
|
<link refid="auto-link_8hpp_source"/>
|
|
</node>
|
|
<node id="11807">
|
|
<label>gecode/int/branch/assign.hpp</label>
|
|
<link refid="int_2branch_2assign_8hpp_source"/>
|
|
</node>
|
|
<node id="11659">
|
|
<label>iostream</label>
|
|
</node>
|
|
<node id="11693">
|
|
<label>gecode/kernel/exception.hpp</label>
|
|
<link refid="kernel_2exception_8hpp_source"/>
|
|
</node>
|
|
<node id="11790">
|
|
<label>gecode/int/view/neg-bool.hpp</label>
|
|
<link refid="neg-bool_8hpp_source"/>
|
|
</node>
|
|
<node id="11743">
|
|
<label>gecode/iter/ranges-minus.hpp</label>
|
|
<link refid="ranges-minus_8hpp_source"/>
|
|
</node>
|
|
<node id="11761">
|
|
<label>gecode/iter/values-negative.hpp</label>
|
|
<link refid="values-negative_8hpp_source"/>
|
|
</node>
|
|
<node id="11669">
|
|
<label>gecode/support/macros.hpp</label>
|
|
<link refid="support_2macros_8hpp_source"/>
|
|
</node>
|
|
<node id="11705">
|
|
<label>gecode/kernel/view.hpp</label>
|
|
<link refid="kernel_2view_8hpp_source"/>
|
|
</node>
|
|
<node id="11719">
|
|
<label>gecode/kernel/branch-tiebreak.hpp</label>
|
|
<link refid="branch-tiebreak_8hpp_source"/>
|
|
</node>
|
|
<node id="11662">
|
|
<label>cstddef</label>
|
|
</node>
|
|
<node id="11657">
|
|
<label>climits</label>
|
|
</node>
|
|
<node id="11765">
|
|
<label>gecode/iter/values-singleton.hpp</label>
|
|
<link refid="values-singleton_8hpp_source"/>
|
|
</node>
|
|
<node id="11699">
|
|
<label>gecode/kernel/core.hpp</label>
|
|
<link refid="core_8hpp_source"/>
|
|
<childnode refid="11659" relation="include">
|
|
</childnode>
|
|
<childnode refid="11700" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11741">
|
|
<label>gecode/iter/ranges-inter.hpp</label>
|
|
<link refid="ranges-inter_8hpp_source"/>
|
|
<childnode refid="11675" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11735">
|
|
<label>gecode/iter/ranges-append.hpp</label>
|
|
<link refid="ranges-append_8hpp_source"/>
|
|
</node>
|
|
<node id="11732">
|
|
<label>gecode/iter/ranges-operations.hpp</label>
|
|
<link refid="ranges-operations_8hpp_source"/>
|
|
</node>
|
|
<node id="11666">
|
|
<label>gecode/support.hh</label>
|
|
<link refid="support_8hh_source"/>
|
|
<childnode refid="11665" relation="include">
|
|
</childnode>
|
|
<childnode refid="11667" relation="include">
|
|
</childnode>
|
|
<childnode refid="11668" relation="include">
|
|
</childnode>
|
|
<childnode refid="11669" relation="include">
|
|
</childnode>
|
|
<childnode refid="11670" relation="include">
|
|
</childnode>
|
|
<childnode refid="11672" relation="include">
|
|
</childnode>
|
|
<childnode refid="11673" relation="include">
|
|
</childnode>
|
|
<childnode refid="11674" relation="include">
|
|
</childnode>
|
|
<childnode refid="11676" relation="include">
|
|
</childnode>
|
|
<childnode refid="11677" relation="include">
|
|
</childnode>
|
|
<childnode refid="11678" relation="include">
|
|
</childnode>
|
|
<childnode refid="11679" relation="include">
|
|
</childnode>
|
|
<childnode refid="11681" relation="include">
|
|
</childnode>
|
|
<childnode refid="11682" relation="include">
|
|
</childnode>
|
|
<childnode refid="11683" relation="include">
|
|
</childnode>
|
|
<childnode refid="11684" relation="include">
|
|
</childnode>
|
|
<childnode refid="11685" relation="include">
|
|
</childnode>
|
|
<childnode refid="11686" relation="include">
|
|
</childnode>
|
|
<childnode refid="11687" relation="include">
|
|
</childnode>
|
|
<childnode refid="11688" relation="include">
|
|
</childnode>
|
|
<childnode refid="11689" relation="include">
|
|
</childnode>
|
|
<childnode refid="11690" relation="include">
|
|
</childnode>
|
|
<childnode refid="11691" relation="include">
|
|
</childnode>
|
|
<childnode refid="11692" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11804">
|
|
<label>gecode/int/branch/activity.hpp</label>
|
|
<link refid="int_2branch_2activity_8hpp_source"/>
|
|
</node>
|
|
<node id="11774">
|
|
<label>gecode/int/var-imp/int.hpp</label>
|
|
<link refid="int_2var-imp_2int_8hpp_source"/>
|
|
</node>
|
|
<node id="11772">
|
|
<label>gecode/int/var-imp.hpp</label>
|
|
<link refid="int_2var-imp_8hpp_source"/>
|
|
<childnode refid="11680" relation="include">
|
|
</childnode>
|
|
<childnode refid="11773" relation="include">
|
|
</childnode>
|
|
<childnode refid="11774" relation="include">
|
|
</childnode>
|
|
<childnode refid="11775" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11737">
|
|
<label>gecode/iter/ranges-cache.hpp</label>
|
|
<link refid="ranges-cache_8hpp_source"/>
|
|
</node>
|
|
<node id="11683">
|
|
<label>gecode/support/dynamic-array.hpp</label>
|
|
<link refid="dynamic-array_8hpp_source"/>
|
|
<childnode refid="11675" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11781">
|
|
<label>gecode/int/view/constint.hpp</label>
|
|
<link refid="constint_8hpp_source"/>
|
|
</node>
|
|
<node id="11767">
|
|
<label>gecode/iter/values-unique.hpp</label>
|
|
<link refid="values-unique_8hpp_source"/>
|
|
</node>
|
|
<node id="11739">
|
|
<label>gecode/iter/ranges-diff.hpp</label>
|
|
<link refid="ranges-diff_8hpp_source"/>
|
|
</node>
|
|
<node id="11822">
|
|
<label>gecode/int/distinct/ter-dom.hpp</label>
|
|
<link refid="ter-dom_8hpp_source"/>
|
|
</node>
|
|
<node id="11687">
|
|
<label>gecode/support/sort.hpp</label>
|
|
<link refid="support_2sort_8hpp_source"/>
|
|
<childnode refid="11675" relation="include">
|
|
</childnode>
|
|
<childnode refid="11657" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11773">
|
|
<label>gecode/int/var-imp/delta.hpp</label>
|
|
<link refid="int_2var-imp_2delta_8hpp_source"/>
|
|
</node>
|
|
<node id="11711">
|
|
<label>gecode/kernel/rnd.hpp</label>
|
|
<link refid="rnd_8hpp_source"/>
|
|
<childnode refid="11712" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11675">
|
|
<label>algorithm</label>
|
|
</node>
|
|
<node id="11723">
|
|
<label>gecode/kernel/brancher-view.hpp</label>
|
|
<link refid="brancher-view_8hpp_source"/>
|
|
</node>
|
|
<node id="11816">
|
|
<label>gecode/int/rel/eq.hpp</label>
|
|
<link refid="int_2rel_2eq_8hpp_source"/>
|
|
</node>
|
|
<node id="11755">
|
|
<label>gecode/iter/values-bitset.hpp</label>
|
|
<link refid="values-bitset_8hpp_source"/>
|
|
</node>
|
|
<node id="11698">
|
|
<label>gecode/kernel/global-afc.hpp</label>
|
|
<link refid="global-afc_8hpp_source"/>
|
|
<childnode refid="11680" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11740">
|
|
<label>gecode/iter/ranges-empty.hpp</label>
|
|
<link refid="ranges-empty_8hpp_source"/>
|
|
</node>
|
|
<node id="11778">
|
|
<label>gecode/int/var/int.hpp</label>
|
|
<link refid="int_2var_2int_8hpp_source"/>
|
|
</node>
|
|
<node id="11731">
|
|
<label>gecode/iter.hh</label>
|
|
<link refid="iter_8hh_source"/>
|
|
<childnode refid="11661" relation="include">
|
|
</childnode>
|
|
<childnode refid="11732" relation="include">
|
|
</childnode>
|
|
<childnode refid="11733" relation="include">
|
|
</childnode>
|
|
<childnode refid="11734" relation="include">
|
|
</childnode>
|
|
<childnode refid="11735" relation="include">
|
|
</childnode>
|
|
<childnode refid="11736" relation="include">
|
|
</childnode>
|
|
<childnode refid="11737" relation="include">
|
|
</childnode>
|
|
<childnode refid="11738" relation="include">
|
|
</childnode>
|
|
<childnode refid="11739" relation="include">
|
|
</childnode>
|
|
<childnode refid="11740" relation="include">
|
|
</childnode>
|
|
<childnode refid="11741" relation="include">
|
|
</childnode>
|
|
<childnode refid="11742" relation="include">
|
|
</childnode>
|
|
<childnode refid="11743" relation="include">
|
|
</childnode>
|
|
<childnode refid="11744" relation="include">
|
|
</childnode>
|
|
<childnode refid="11745" relation="include">
|
|
</childnode>
|
|
<childnode refid="11746" relation="include">
|
|
</childnode>
|
|
<childnode refid="11747" relation="include">
|
|
</childnode>
|
|
<childnode refid="11748" relation="include">
|
|
</childnode>
|
|
<childnode refid="11749" relation="include">
|
|
</childnode>
|
|
<childnode refid="11750" relation="include">
|
|
</childnode>
|
|
<childnode refid="11751" relation="include">
|
|
</childnode>
|
|
<childnode refid="11752" relation="include">
|
|
</childnode>
|
|
<childnode refid="11753" relation="include">
|
|
</childnode>
|
|
<childnode refid="11754" relation="include">
|
|
</childnode>
|
|
<childnode refid="11755" relation="include">
|
|
</childnode>
|
|
<childnode refid="11756" relation="include">
|
|
</childnode>
|
|
<childnode refid="11757" relation="include">
|
|
</childnode>
|
|
<childnode refid="11758" relation="include">
|
|
</childnode>
|
|
<childnode refid="11759" relation="include">
|
|
</childnode>
|
|
<childnode refid="11760" relation="include">
|
|
</childnode>
|
|
<childnode refid="11761" relation="include">
|
|
</childnode>
|
|
<childnode refid="11762" relation="include">
|
|
</childnode>
|
|
<childnode refid="11763" relation="include">
|
|
</childnode>
|
|
<childnode refid="11764" relation="include">
|
|
</childnode>
|
|
<childnode refid="11765" relation="include">
|
|
</childnode>
|
|
<childnode refid="11766" relation="include">
|
|
</childnode>
|
|
<childnode refid="11767" relation="include">
|
|
</childnode>
|
|
<childnode refid="11768" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11821">
|
|
<label>gecode/int/distinct/bnd.hpp</label>
|
|
<link refid="distinct_2bnd_8hpp_source"/>
|
|
</node>
|
|
<node id="11750">
|
|
<label>gecode/iter/ranges-values.hpp</label>
|
|
<link refid="ranges-values_8hpp_source"/>
|
|
</node>
|
|
<node id="11775">
|
|
<label>gecode/int/var-imp/bool.hpp</label>
|
|
<link refid="int_2var-imp_2bool_8hpp_source"/>
|
|
</node>
|
|
<node id="11664">
|
|
<label>cstring</label>
|
|
</node>
|
|
<node id="11799">
|
|
<label>gecode/int/reify.hpp</label>
|
|
<link refid="reify_8hpp_source"/>
|
|
</node>
|
|
<node id="11749">
|
|
<label>gecode/iter/ranges-union.hpp</label>
|
|
<link refid="ranges-union_8hpp_source"/>
|
|
<childnode refid="11675" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11783">
|
|
<label>gecode/int/view/minus.hpp</label>
|
|
<link refid="int_2view_2minus_8hpp_source"/>
|
|
</node>
|
|
<node id="11733">
|
|
<label>gecode/iter/ranges-minmax.hpp</label>
|
|
<link refid="ranges-minmax_8hpp_source"/>
|
|
</node>
|
|
<node id="11681">
|
|
<label>gecode/support/bitset-offset.hpp</label>
|
|
<link refid="bitset-offset_8hpp_source"/>
|
|
<childnode refid="11657" relation="include">
|
|
</childnode>
|
|
<childnode refid="11680" relation="include">
|
|
</childnode>
|
|
<childnode refid="11659" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11674">
|
|
<label>gecode/support/heap.hpp</label>
|
|
<link refid="heap_8hpp_source"/>
|
|
<childnode refid="11664" relation="include">
|
|
</childnode>
|
|
<childnode refid="11663" relation="include">
|
|
</childnode>
|
|
<childnode refid="11675" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11792">
|
|
<label>gecode/int/var/print.hpp</label>
|
|
<link refid="int_2var_2print_8hpp_source"/>
|
|
</node>
|
|
<node id="11734">
|
|
<label>gecode/iter/ranges-list.hpp</label>
|
|
<link refid="ranges-list_8hpp_source"/>
|
|
</node>
|
|
</incdepgraph>
|
|
<invincdepgraph>
|
|
<node id="11826">
|
|
<label>/usr/include/gecode/int/nvalues/int-base.hpp</label>
|
|
<link refid="nvalues/int-base.hpp"/>
|
|
<childnode refid="11827" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="11827">
|
|
<label>/usr/include/gecode/int/nvalues.hh</label>
|
|
<link refid="nvalues_8hh_source"/>
|
|
</node>
|
|
</invincdepgraph>
|
|
<innernamespace refid="namespaceGecode">Gecode</innernamespace>
|
|
<innernamespace refid="namespaceGecode_1_1Int">Gecode::Int</innernamespace>
|
|
<innernamespace refid="namespaceGecode_1_1Int_1_1NValues">Gecode::Int::NValues</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/>Christian<sp/>Schulte<sp/><schulte@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/>Christian<sp/>Schulte,<sp/>2011</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/>2012-09-07<sp/>17:31:22<sp/>+0200<sp/>(Fri,<sp/>07<sp/>Sep<sp/>2012)<sp/>$<sp/>by<sp/>$Author:<sp/>schulte<sp/>$</highlight></codeline>
|
|
<codeline lineno="11"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>$Revision:<sp/>13068<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/><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/><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/><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/><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/><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/><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/><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/><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/><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/><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/><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/><sp/>MERCHANTABILITY,<sp/>FITNESS<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE<sp/>AND</highlight></codeline>
|
|
<codeline lineno="31"><highlight class="comment"><sp/>*<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/><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/><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/><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">#include<sp/><gecode/int/distinct.hh></highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="39"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="40"><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">Int<sp/>{<sp/></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">NValues<sp/>{</highlight></codeline>
|
|
<codeline lineno="41"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="42"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>VY></highlight></codeline>
|
|
<codeline lineno="43"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="44" refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1a39d66b202944aaf3dd908cea0f36e62f" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1a39d66b202944aaf3dd908cea0f36e62f" kindref="member">IntBase<VY>::IntBase</ref>(<ref refid="classGecode_1_1Home" kindref="compound">Home</ref><sp/>home,<sp/><ref refid="classGecode_1_1Int_1_1ValSet" kindref="compound">ValSet</ref>&<sp/>vs0,<sp/><ref refid="classGecode_1_1ViewArray" kindref="compound">ViewArray<IntView></ref>&<sp/>x,<sp/>VY<sp/>y)</highlight></codeline>
|
|
<codeline lineno="45"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/><ref refid="classGecode_1_1MixNaryOnePropagator" kindref="compound">MixNaryOnePropagator</ref><<ref refid="classGecode_1_1Int_1_1IntView" kindref="compound">IntView</ref>,PC_INT_DOM,VY,PC_INT_BND>(home,x,y),</highlight></codeline>
|
|
<codeline lineno="46"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>vs(vs0)<sp/>{}</highlight></codeline>
|
|
<codeline lineno="47"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="48"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>VY></highlight></codeline>
|
|
<codeline lineno="49"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="50" refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1ac9f297c936d9e3b70cd7d4ed84d69978" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1a39d66b202944aaf3dd908cea0f36e62f" kindref="member">IntBase<VY>::IntBase</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>share,<sp/><ref refid="classGecode_1_1Int_1_1NValues_1_1IntBase" kindref="compound">IntBase<VY></ref>&<sp/>p)</highlight></codeline>
|
|
<codeline lineno="51"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/><ref refid="classGecode_1_1MixNaryOnePropagator" kindref="compound">MixNaryOnePropagator</ref><<ref refid="classGecode_1_1Int_1_1IntView" kindref="compound">IntView</ref>,PC_INT_DOM,VY,PC_INT_BND>(home,<sp/>share,<sp/>p)<sp/>{</highlight></codeline>
|
|
<codeline lineno="52"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1a13d51f6210b763f4ace142cbec971d21" kindref="member">vs</ref>.<ref refid="classGecode_1_1Int_1_1ValSet_1aae773ebb09abfc685c8f79fcaac6c348" kindref="member">update</ref>(home,<sp/>share,<sp/>p.<ref refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1a13d51f6210b763f4ace142cbec971d21" kindref="member">vs</ref>);</highlight></codeline>
|
|
<codeline lineno="53"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="54"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="55"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>VY></highlight></codeline>
|
|
<codeline lineno="56"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">size_t</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="57" refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1a08c00b2b6be568a73f2d5c4c6eae7dff" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1a08c00b2b6be568a73f2d5c4c6eae7dff" kindref="member">IntBase<VY>::dispose</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home)<sp/>{</highlight></codeline>
|
|
<codeline lineno="58"><highlight class="normal"><sp/><sp/><sp/><sp/>vs.dispose(home);</highlight></codeline>
|
|
<codeline lineno="59"><highlight class="normal"><sp/><sp/><sp/><sp/>(void)<sp/><ref refid="classGecode_1_1MixNaryOnePropagator" kindref="compound">MixNaryOnePropagator<IntView,PC_INT_DOM,VY,PC_INT_BND></ref></highlight></codeline>
|
|
<codeline lineno="60"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>::dispose(home);</highlight></codeline>
|
|
<codeline lineno="61"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(*this);</highlight></codeline>
|
|
<codeline lineno="62"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="63"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="64"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>VY></highlight></codeline>
|
|
<codeline lineno="65"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1PropCost" kindref="compound">PropCost</ref><sp/></highlight></codeline>
|
|
<codeline lineno="66" refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1a7c6dbc50dd3306e658169bc7fc811f63" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1a7c6dbc50dd3306e658169bc7fc811f63" kindref="member">IntBase<VY>::cost</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a129e41c1d037528010d7b6706495a560" kindref="member">ModEventDelta</ref>&)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="67"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1PropCost_1ab9758f7a6301e1f3e1010762465b085a" kindref="member">PropCost::quadratic</ref>(<ref refid="classGecode_1_1PropCost_1ad1bebae59ea373495c5bf51ffc249dcdada52d4d3b08e9888c5063df5140e12e2" kindref="member">PropCost::HI</ref>,<sp/>x.size());</highlight></codeline>
|
|
<codeline lineno="68"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="69"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="70"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>VY></highlight></codeline>
|
|
<codeline lineno="71"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="72" refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1a8dd30043eb704788b4b9703e820f9680" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1a8dd30043eb704788b4b9703e820f9680" kindref="member">IntBase<VY>::add</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home)<sp/>{</highlight></codeline>
|
|
<codeline lineno="73"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>n=x.size();</highlight></codeline>
|
|
<codeline lineno="74"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=n;<sp/>i--;<sp/>)</highlight></codeline>
|
|
<codeline lineno="75"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(x[i].assigned())<sp/>{</highlight></codeline>
|
|
<codeline lineno="76"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>vs.add(home,<sp/>x[i].val());</highlight></codeline>
|
|
<codeline lineno="77"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>x[i]<sp/>=<sp/>x[--n];</highlight></codeline>
|
|
<codeline lineno="78"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="79"><highlight class="normal"><sp/><sp/><sp/><sp/>x.size(n);</highlight></codeline>
|
|
<codeline lineno="80"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="81"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="82"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>VY></highlight></codeline>
|
|
<codeline lineno="83"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="84" refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1a6055bc6d6ef3ae3c652a3e7789992928" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1a6055bc6d6ef3ae3c652a3e7789992928" kindref="member">IntBase<VY>::disjoint</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/><ref refid="classGecode_1_1Region" kindref="compound">Region</ref>&<sp/>r,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">*&<sp/>dis,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&<sp/>n_dis)<sp/>{</highlight></codeline>
|
|
<codeline lineno="85"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Compute<sp/>positions<sp/>of<sp/>disjoint<sp/>views</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="86"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>n=x.size();</highlight></codeline>
|
|
<codeline lineno="87"><highlight class="normal"><sp/><sp/><sp/><sp/>dis<sp/>=<sp/>r.<ref refid="classGecode_1_1Region_1a167cff2d16f08d890fff11f80e519233" kindref="member">alloc</ref><</highlight><highlight class="keywordtype">int</highlight><highlight class="normal">>(n);<sp/>n_dis<sp/>=<sp/>0;</highlight></codeline>
|
|
<codeline lineno="88"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="89"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=0;</highlight></codeline>
|
|
<codeline lineno="90"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>(i<sp/><<sp/>n)</highlight></codeline>
|
|
<codeline lineno="91"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">switch</highlight><highlight class="normal"><sp/>(vs.compare(x[i]))<sp/>{</highlight></codeline>
|
|
<codeline lineno="92"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/><ref refid="group__FuncIterRangesOp_1gga231b2059e20903d95675dab6351c0694a2638a08c99d74d5c11119e1c3aa82056" kindref="member">Iter::Ranges::CS_SUBSET</ref>:</highlight></codeline>
|
|
<codeline lineno="93"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>All<sp/>values<sp/>are<sp/>already<sp/>contained<sp/>in<sp/>vs,<sp/>eliminate<sp/>x[i]</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="94"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>x[i].cancel(home,<sp/>*</highlight><highlight class="keyword">this</highlight><highlight class="normal">,<sp/>PC_INT_DOM);</highlight></codeline>
|
|
<codeline lineno="95"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>x[i]<sp/>=<sp/>x[--n];<sp/></highlight></codeline>
|
|
<codeline lineno="96"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="97"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/><ref refid="group__FuncIterRangesOp_1gga231b2059e20903d95675dab6351c0694a5dbce948b4886b5ad1caf216d1ca4d3d" kindref="member">Iter::Ranges::CS_DISJOINT</ref>:</highlight></codeline>
|
|
<codeline lineno="98"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>dis[n_dis++]<sp/>=<sp/>i++;<sp/></highlight></codeline>
|
|
<codeline lineno="99"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="100"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/><ref refid="group__FuncIterRangesOp_1gga231b2059e20903d95675dab6351c0694a1823ed20e48255de4d5a0cf6644e8fa7" kindref="member">Iter::Ranges::CS_NONE</ref>:</highlight></codeline>
|
|
<codeline lineno="101"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>i++;</highlight></codeline>
|
|
<codeline lineno="102"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="103"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">:</highlight></codeline>
|
|
<codeline lineno="104"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_NEVER;</highlight></codeline>
|
|
<codeline lineno="105"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="106"><highlight class="normal"><sp/><sp/><sp/><sp/>x.size(n);</highlight></codeline>
|
|
<codeline lineno="107"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="108"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="109"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>VY></highlight></codeline>
|
|
<codeline lineno="110"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="111" refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1a8eab01dadfd1cbed585b9cfc88a0eeab" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1a8eab01dadfd1cbed585b9cfc88a0eeab" kindref="member">IntBase<VY>::eliminate</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home)<sp/>{</highlight></codeline>
|
|
<codeline lineno="112"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>n=x.size();</highlight></codeline>
|
|
<codeline lineno="113"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=n;<sp/>i--;<sp/>)</highlight></codeline>
|
|
<codeline lineno="114"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(vs.subset(x[i]))<sp/>{</highlight></codeline>
|
|
<codeline lineno="115"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>All<sp/>values<sp/>are<sp/>already<sp/>contained<sp/>in<sp/>vs,<sp/>eliminate<sp/>x[i]</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="116"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>x[i].cancel(home,<sp/>*</highlight><highlight class="keyword">this</highlight><highlight class="normal">,<sp/>PC_INT_DOM);</highlight></codeline>
|
|
<codeline lineno="117"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>x[i]<sp/>=<sp/>x[--n];<sp/></highlight></codeline>
|
|
<codeline lineno="118"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="119"><highlight class="normal"><sp/><sp/><sp/><sp/>x.size(n);</highlight></codeline>
|
|
<codeline lineno="120"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="121"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="122"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>VY></highlight></codeline>
|
|
<codeline lineno="123"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="124" refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1a02712ec9416d24454b0fa91ba3ab1ccc" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1a02712ec9416d24454b0fa91ba3ab1ccc" kindref="member">IntBase<VY>::size</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="125"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Region" kindref="compound">Region</ref><sp/>r(home);</highlight></codeline>
|
|
<codeline lineno="126"><highlight class="normal"><sp/><sp/><sp/><sp/>assert(x.size()<sp/>><sp/>0);</highlight></codeline>
|
|
<codeline lineno="127"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1_1Ranges" kindref="compound">ValSet::Ranges</ref><sp/>vsr(vs);</highlight></codeline>
|
|
<codeline lineno="128"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1ViewRanges_3_01IntView_01_4" kindref="compound">ViewRanges<IntView></ref><sp/>xr(x[x.size()-1]);</highlight></codeline>
|
|
<codeline lineno="129"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Iter_1_1Ranges_1_1NaryUnion" kindref="compound">Iter::Ranges::NaryUnion</ref><sp/>u(r,vsr,xr);</highlight></codeline>
|
|
<codeline lineno="130"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=x.size()-1;<sp/>i--;<sp/>)<sp/>{</highlight></codeline>
|
|
<codeline lineno="131"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1ViewRanges_3_01IntView_01_4" kindref="compound">ViewRanges<IntView></ref><sp/>xir(x[i]);</highlight></codeline>
|
|
<codeline lineno="132"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>u<sp/>|=<sp/>xir;</highlight></codeline>
|
|
<codeline lineno="133"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="134"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>s<sp/>=<sp/><ref refid="group__FuncIterRangesOp_1ga9f9ab6d72452ad86b95cd65abf463161" kindref="member">Iter::Ranges::size</ref>(u);</highlight></codeline>
|
|
<codeline lineno="135"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="136"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>To<sp/>avoid<sp/>overflow</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="137"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(static_cast<unsigned<sp/>int>(x.size()+vs.size())<sp/><<sp/>s)</highlight></codeline>
|
|
<codeline lineno="138"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>x.size()<sp/>+<sp/>vs.size();</highlight></codeline>
|
|
<codeline lineno="139"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="140"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">static_cast<</highlight><highlight class="keywordtype">int</highlight><highlight class="keyword">></highlight><highlight class="normal">(s);</highlight></codeline>
|
|
<codeline lineno="141"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="142"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="143"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>VY></highlight></codeline>
|
|
<codeline lineno="144"><highlight class="normal"><sp/><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
|
|
<codeline lineno="145" refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1abfd2509cf1112fde73d1581c449dcb4f" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1abfd2509cf1112fde73d1581c449dcb4f" kindref="member">IntBase<VY>::all_in_valset</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home)<sp/>{</highlight></codeline>
|
|
<codeline lineno="146"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=x.size();<sp/>i--;<sp/>)<sp/>{</highlight></codeline>
|
|
<codeline lineno="147"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1_1Ranges" kindref="compound">ValSet::Ranges</ref><sp/>vsr(vs);</highlight></codeline>
|
|
<codeline lineno="148"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(x[i].inter_r(home,<sp/>vsr,<sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">));</highlight></codeline>
|
|
<codeline lineno="149"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="150"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>home.<ref refid="group__TaskActorStatus_1gafc19cbf71ed90a9e0b414b875103f4c7" kindref="member">ES_SUBSUMED</ref>(*</highlight><highlight class="keyword">this</highlight><highlight class="normal">);</highlight></codeline>
|
|
<codeline lineno="151"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="152"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="153"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>VY></highlight></codeline>
|
|
<codeline lineno="154"><highlight class="normal"><sp/><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
|
|
<codeline lineno="155" refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1a32cbe7be92e4639da76780f4a3913712" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1a32cbe7be92e4639da76780f4a3913712" kindref="member">IntBase<VY>::prune_lower</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">*<sp/>dis,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>n_dis)<sp/>{</highlight></codeline>
|
|
<codeline lineno="156"><highlight class="normal"><sp/><sp/><sp/><sp/>assert(n_dis<sp/>><sp/>0);</highlight></codeline>
|
|
<codeline lineno="157"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="158"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>At<sp/>least<sp/>one<sp/>more<sp/>value<sp/>will<sp/>be<sp/>needed</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="159"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(y.gq(home,vs.size()<sp/>+<sp/>1));</highlight></codeline>
|
|
<codeline lineno="160"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="161"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Region" kindref="compound">Region</ref><sp/>r(home);</highlight></codeline>
|
|
<codeline lineno="162"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="163"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Only<sp/>one<sp/>additional<sp/>value<sp/>is<sp/>allowed</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="164"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(y.max()<sp/>==<sp/>vs.size()<sp/>+<sp/>1)<sp/>{</highlight></codeline>
|
|
<codeline lineno="165"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Compute<sp/>possible<sp/>values</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="166"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1ViewRanges_3_01IntView_01_4" kindref="compound">ViewRanges<IntView></ref>*<sp/>r_dis<sp/>=<sp/>r.<ref refid="classGecode_1_1Region_1a167cff2d16f08d890fff11f80e519233" kindref="member">alloc</ref><<ref refid="classGecode_1_1Int_1_1ViewRanges_3_01IntView_01_4" kindref="compound">ViewRanges<IntView></ref><sp/>>(n_dis);</highlight></codeline>
|
|
<codeline lineno="167"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=n_dis;<sp/>i--;<sp/>)</highlight></codeline>
|
|
<codeline lineno="168"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>r_dis[i]<sp/>=<sp/><ref refid="classGecode_1_1Int_1_1ViewRanges_3_01IntView_01_4" kindref="compound">ViewRanges<IntView></ref>(x[dis[i]]);</highlight></codeline>
|
|
<codeline lineno="169"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Iter_1_1Ranges_1_1NaryInter" kindref="compound">Iter::Ranges::NaryInter</ref><sp/>iv(r,<sp/>r_dis,<sp/>n_dis);</highlight></codeline>
|
|
<codeline lineno="170"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Is<sp/>there<sp/>a<sp/>common<sp/>value<sp/>at<sp/>all?</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="171"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!iv())</highlight></codeline>
|
|
<codeline lineno="172"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a839b40c2e7ccebb2e61e92e274833089" kindref="member">ES_FAILED</ref>;</highlight></codeline>
|
|
<codeline lineno="173"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1_1Ranges" kindref="compound">ValSet::Ranges</ref><sp/>vsr(vs);</highlight></codeline>
|
|
<codeline lineno="174"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Iter_1_1Ranges_1_1NaryUnion" kindref="compound">Iter::Ranges::NaryUnion</ref><sp/>pv(r,iv,vsr);</highlight></codeline>
|
|
<codeline lineno="175"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Enforce<sp/>common<sp/>values</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="176"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=x.size();<sp/>i--;<sp/>)<sp/>{</highlight></codeline>
|
|
<codeline lineno="177"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>pv.<ref refid="classGecode_1_1Iter_1_1Ranges_1_1RangeListIter_1ab5d71b116cf715dadb7926e6dcc31c7d" kindref="member">reset</ref>();</highlight></codeline>
|
|
<codeline lineno="178"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(x[i].inter_r(home,<sp/>pv,<sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">));</highlight></codeline>
|
|
<codeline lineno="179"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="180"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a01d6fb1ec70479e8e413d5ecfd63e303" kindref="member">ES_OK</ref>;</highlight></codeline>
|
|
<codeline lineno="181"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="182"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="183"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Compute<sp/>independent<sp/>set<sp/>for<sp/>lower<sp/>bound</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="184"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>ovl<sp/>is<sp/>a<sp/>bit-matrix<sp/>defining<sp/>whether<sp/>two<sp/>views<sp/>overlap</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="185"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1NValues_1_1SymBitMatrix" kindref="compound">SymBitMatrix</ref><sp/>ovl(r,x.size());</highlight></codeline>
|
|
<codeline lineno="186"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>deg[i]<sp/>is<sp/>the<sp/>degree<sp/>of<sp/>x[i]</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="187"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">*<sp/>deg<sp/>=<sp/>r.<ref refid="classGecode_1_1Region_1a167cff2d16f08d890fff11f80e519233" kindref="member">alloc</ref><</highlight><highlight class="keywordtype">int</highlight><highlight class="normal">>(x.size());</highlight></codeline>
|
|
<codeline lineno="188"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>ovl_i[i]<sp/>is<sp/>an<sp/>array<sp/>of<sp/>indices<sp/>j<sp/>such<sp/>that<sp/>x[j]<sp/>overlaps<sp/>with<sp/>x[i]</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="189"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">**<sp/>ovl_i<sp/>=<sp/>r.<ref refid="classGecode_1_1Region_1a167cff2d16f08d890fff11f80e519233" kindref="member">alloc</ref><</highlight><highlight class="keywordtype">int</highlight><highlight class="normal">*>(x.size());</highlight></codeline>
|
|
<codeline lineno="190"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>n_ovl_i[i]<sp/>defines<sp/>how<sp/>many<sp/>integers<sp/>are<sp/>stored<sp/>for<sp/>ovl_i[i]</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="191"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">*<sp/>n_ovl_i<sp/>=<sp/>r.<ref refid="classGecode_1_1Region_1a167cff2d16f08d890fff11f80e519233" kindref="member">alloc</ref><</highlight><highlight class="keywordtype">int</highlight><highlight class="normal">>(x.size());</highlight></codeline>
|
|
<codeline lineno="192"><highlight class="normal"><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
|
<codeline lineno="193"><highlight class="normal"></highlight><highlight class="preprocessor">#ifndef<sp/>NDEBUG</highlight></codeline>
|
|
<codeline lineno="194"><highlight class="preprocessor"></highlight><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Initialize<sp/>all<sp/>to<sp/>null<sp/>pointers<sp/>so<sp/>that<sp/>things<sp/>crash<sp/>;-)</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="195"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=x.size();<sp/>i--;<sp/>)</highlight></codeline>
|
|
<codeline lineno="196"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ovl_i[i]<sp/>=<sp/>NULL;</highlight></codeline>
|
|
<codeline lineno="197"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight></codeline>
|
|
<codeline lineno="198"><highlight class="preprocessor"></highlight><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>For<sp/>each<sp/>i<sp/>there<sp/>can<sp/>be<sp/>at<sp/>most<sp/>n_dis-1<sp/>entries<sp/>in<sp/>ovl_i[i]</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="199"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">*<sp/>m<sp/>=<sp/>r.<ref refid="classGecode_1_1Region_1a167cff2d16f08d890fff11f80e519233" kindref="member">alloc</ref><</highlight><highlight class="keywordtype">int</highlight><highlight class="normal">>(n_dis*(n_dis-1));</highlight></codeline>
|
|
<codeline lineno="200"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=n_dis;<sp/>i--;<sp/>)<sp/>{</highlight></codeline>
|
|
<codeline lineno="201"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>deg[dis[i]]<sp/>=<sp/>0;<sp/></highlight></codeline>
|
|
<codeline lineno="202"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ovl_i[dis[i]]<sp/>=<sp/>m;<sp/>m<sp/>+=<sp/>n_dis-1;</highlight></codeline>
|
|
<codeline lineno="203"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="204"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="205"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight></codeline>
|
|
<codeline lineno="206"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Initialize<sp/>overlap<sp/>matrix<sp/>by<sp/>analyzing<sp/>the<sp/>view<sp/>ranges</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="207"><highlight class="normal"><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
|
<codeline lineno="208"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Compute<sp/>how<sp/>many<sp/>events<sp/>are<sp/>needed</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="209"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>One<sp/>event<sp/>for<sp/>the<sp/>end<sp/>marker</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="210"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>n_re<sp/>=<sp/>1;</highlight></codeline>
|
|
<codeline lineno="211"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Two<sp/>events<sp/>for<sp/>each<sp/>range</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="212"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=n_dis;<sp/>i--;<sp/>)</highlight></codeline>
|
|
<codeline lineno="213"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1ViewRanges_3_01IntView_01_4" kindref="compound">ViewRanges<IntView></ref><sp/>rx(x[dis[i]]);<sp/>rx();<sp/>++rx)</highlight></codeline>
|
|
<codeline lineno="214"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>n_re<sp/>+=<sp/>2;</highlight></codeline>
|
|
<codeline lineno="215"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="216"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Allocate<sp/>and<sp/>initialize<sp/>events</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="217"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1NValues_1_1RangeEvent" kindref="compound">RangeEvent</ref>*<sp/>re<sp/>=<sp/>r.<ref refid="classGecode_1_1Region_1a167cff2d16f08d890fff11f80e519233" kindref="member">alloc</ref><<ref refid="classGecode_1_1Int_1_1NValues_1_1RangeEvent" kindref="compound">RangeEvent</ref>>(n_re);</highlight></codeline>
|
|
<codeline lineno="218"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>j=0;</highlight></codeline>
|
|
<codeline lineno="219"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=n_dis;<sp/>i--;<sp/>)</highlight></codeline>
|
|
<codeline lineno="220"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1ViewRanges_3_01IntView_01_4" kindref="compound">ViewRanges<IntView></ref><sp/>rx(x[dis[i]]);<sp/>rx();<sp/>++rx)<sp/>{</highlight></codeline>
|
|
<codeline lineno="221"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Event<sp/>when<sp/>a<sp/>range<sp/>starts</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="222"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>re[j].<ref refid="classGecode_1_1Int_1_1NValues_1_1RangeEvent_1a4a7ed2cf1be1bd35f084240f98536c03" kindref="member">ret</ref>=<ref refid="namespaceGecode_1_1Int_1_1NValues_1a50e09c1cc95f803a34c7beca12d6ea7ba2b16d530c566fe20fedefa8088243141" kindref="member">RET_FST</ref>;<sp/>re[j].<ref refid="classGecode_1_1Int_1_1NValues_1_1RangeEvent_1a96f8f2415142ce14f1fd75f5865a2d98" kindref="member">val</ref>=rx.min();<sp/>re[j].<ref refid="classGecode_1_1Int_1_1NValues_1_1RangeEvent_1a4d7a4d9d9dec825aec8456cbbbf55b72" kindref="member">view</ref>=dis[i];<sp/>j++;</highlight></codeline>
|
|
<codeline lineno="223"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Event<sp/>when<sp/>a<sp/>range<sp/>ends</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="224"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>re[j].<ref refid="classGecode_1_1Int_1_1NValues_1_1RangeEvent_1a4a7ed2cf1be1bd35f084240f98536c03" kindref="member">ret</ref>=<ref refid="namespaceGecode_1_1Int_1_1NValues_1a50e09c1cc95f803a34c7beca12d6ea7ba5aa798a1c087b73426c0ad4f41faea08" kindref="member">RET_LST</ref>;<sp/>re[j].<ref refid="classGecode_1_1Int_1_1NValues_1_1RangeEvent_1a96f8f2415142ce14f1fd75f5865a2d98" kindref="member">val</ref>=rx.max();<sp/>re[j].<ref refid="classGecode_1_1Int_1_1NValues_1_1RangeEvent_1a4d7a4d9d9dec825aec8456cbbbf55b72" kindref="member">view</ref>=dis[i];<sp/>j++;</highlight></codeline>
|
|
<codeline lineno="225"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="226"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Make<sp/>this<sp/>the<sp/>last<sp/>event</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="227"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>re[j].<ref refid="classGecode_1_1Int_1_1NValues_1_1RangeEvent_1a4a7ed2cf1be1bd35f084240f98536c03" kindref="member">ret</ref>=<ref refid="namespaceGecode_1_1Int_1_1NValues_1a50e09c1cc95f803a34c7beca12d6ea7ba8f820a7a5b15b1d6376b136dc74fec04" kindref="member">RET_END</ref>;<sp/>re[j].<ref refid="classGecode_1_1Int_1_1NValues_1_1RangeEvent_1a96f8f2415142ce14f1fd75f5865a2d98" kindref="member">val</ref>=<ref refid="namespaceGecode_1_1Int_1_1Limits_1a5a8edf24fe7e29c7159587b7e7d0260a" kindref="member">Int::Limits::infinity</ref>;</highlight></codeline>
|
|
<codeline lineno="228"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>assert(j+1<sp/>==<sp/>n_re);</highlight></codeline>
|
|
<codeline lineno="229"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Sort<sp/>and<sp/>process<sp/>events</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="230"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>Support::quicksort(re,n_re);</highlight></codeline>
|
|
<codeline lineno="231"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="232"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Current<sp/>views<sp/>with<sp/>a<sp/>range<sp/>being<sp/>active</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="233"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Support_1_1BitSet" kindref="compound">Support::BitSet<Region></ref><sp/>cur(r,static_cast<unsigned<sp/>int>(x.size()));</highlight></codeline>
|
|
<codeline lineno="234"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Process<sp/>all<sp/>events</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="235"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=0;<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;<sp/>i++)</highlight></codeline>
|
|
<codeline lineno="236"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">switch</highlight><highlight class="normal"><sp/>(re[i].ret)<sp/>{</highlight></codeline>
|
|
<codeline lineno="237"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1_1Int_1_1NValues_1a50e09c1cc95f803a34c7beca12d6ea7ba2b16d530c566fe20fedefa8088243141" kindref="member">RET_FST</ref>:</highlight></codeline>
|
|
<codeline lineno="238"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Process<sp/>all<sp/>overlapping<sp/>views</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="239"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Iter_1_1Values_1_1BitSet" kindref="compound">Iter::Values::BitSet</ref><<ref refid="classGecode_1_1Support_1_1BitSet" kindref="compound">Support::BitSet<Region></ref><sp/>><sp/>j(cur);<sp/></highlight></codeline>
|
|
<codeline lineno="240"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>j();<sp/>++j)<sp/>{</highlight></codeline>
|
|
<codeline lineno="241"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>di<sp/>=<sp/>re[i].<ref refid="classGecode_1_1Int_1_1NValues_1_1RangeEvent_1a4d7a4d9d9dec825aec8456cbbbf55b72" kindref="member">view</ref>,<sp/>dj<sp/>=<sp/>j.val();</highlight></codeline>
|
|
<codeline lineno="242"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!ovl.get(di,dj))<sp/><sp/>{</highlight></codeline>
|
|
<codeline lineno="243"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ovl.set(di,dj);</highlight></codeline>
|
|
<codeline lineno="244"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ovl_i[di][deg[di]++]<sp/>=<sp/>dj;<sp/></highlight></codeline>
|
|
<codeline lineno="245"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ovl_i[dj][deg[dj]++]<sp/>=<sp/>di;<sp/></highlight></codeline>
|
|
<codeline lineno="246"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="247"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="248"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cur.<ref refid="classGecode_1_1Support_1_1BitSetBase_1afeefe511aa558b1571f91d7de74ee1f6" kindref="member">set</ref>(static_cast<unsigned<sp/>int>(re[i].view));</highlight></codeline>
|
|
<codeline lineno="249"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="250"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1_1Int_1_1NValues_1a50e09c1cc95f803a34c7beca12d6ea7ba5aa798a1c087b73426c0ad4f41faea08" kindref="member">RET_LST</ref>:</highlight></codeline>
|
|
<codeline lineno="251"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cur.<ref refid="classGecode_1_1Support_1_1BitSetBase_1afbe1fe7346b3bb27d0cc8cb268819772" kindref="member">clear</ref>(static_cast<unsigned<sp/>int>(re[i].view));</highlight></codeline>
|
|
<codeline lineno="252"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="253"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1_1Int_1_1NValues_1a50e09c1cc95f803a34c7beca12d6ea7ba8f820a7a5b15b1d6376b136dc74fec04" kindref="member">RET_END</ref>:</highlight></codeline>
|
|
<codeline lineno="254"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">goto</highlight><highlight class="normal"><sp/>done;</highlight></codeline>
|
|
<codeline lineno="255"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">:</highlight></codeline>
|
|
<codeline lineno="256"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_NEVER;</highlight></codeline>
|
|
<codeline lineno="257"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="258"><highlight class="normal"><sp/><sp/><sp/><sp/>done:</highlight></codeline>
|
|
<codeline lineno="259"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>r.<ref refid="classGecode_1_1Region_1ab6fb7233ea7822b457558d78d808a46c" kindref="member">free</ref><<ref refid="classGecode_1_1Int_1_1NValues_1_1RangeEvent" kindref="compound">RangeEvent</ref>>(re,n_re);</highlight></codeline>
|
|
<codeline lineno="260"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="261"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="262"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>While<sp/>deg<sp/>changes,<sp/>n_ovl_i<sp/>remains<sp/>unchanged<sp/>and<sp/>is<sp/>needed,<sp/>so<sp/>copy<sp/>it</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="263"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=n_dis;<sp/>i--;<sp/>)<sp/>{</highlight></codeline>
|
|
<codeline lineno="264"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>assert(deg[dis[i]]<sp/><<sp/>n_dis);</highlight></codeline>
|
|
<codeline lineno="265"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>n_ovl_i[dis[i]]<sp/>=<sp/>deg[dis[i]];</highlight></codeline>
|
|
<codeline lineno="266"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="267"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight></codeline>
|
|
<codeline lineno="268"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Views<sp/>in<sp/>the<sp/>independent<sp/>set</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="269"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">*<sp/>ind<sp/>=<sp/>r.<ref refid="classGecode_1_1Region_1a167cff2d16f08d890fff11f80e519233" kindref="member">alloc</ref><</highlight><highlight class="keywordtype">int</highlight><highlight class="normal">>(n_dis);</highlight></codeline>
|
|
<codeline lineno="270"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>n_ind<sp/>=<sp/>0;</highlight></codeline>
|
|
<codeline lineno="271"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="272"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>(n_dis<sp/>><sp/>0)<sp/>{</highlight></codeline>
|
|
<codeline lineno="273"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i_min<sp/>=<sp/>n_dis-1;</highlight></codeline>
|
|
<codeline lineno="274"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>d_min<sp/>=<sp/>deg[dis[i_min]];</highlight></codeline>
|
|
<codeline lineno="275"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>s_min<sp/>=<sp/>x[dis[i_min]].size();<sp/></highlight></codeline>
|
|
<codeline lineno="276"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="277"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Find<sp/>view<sp/>with<sp/>smallest<sp/>(degree,size)</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="278"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=n_dis-1;<sp/>i--;<sp/>)</highlight></codeline>
|
|
<codeline lineno="279"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((d_min<sp/>><sp/>deg[dis[i]])<sp/>||<sp/></highlight></codeline>
|
|
<codeline lineno="280"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>((d_min<sp/>==<sp/>deg[dis[i]])<sp/>&&<sp/>(s_min<sp/>><sp/>x[dis[i]].<ref refid="group__FuncIterRangesOp_1ga9f9ab6d72452ad86b95cd65abf463161" kindref="member">size</ref>())))<sp/>{</highlight></codeline>
|
|
<codeline lineno="281"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>i_min<sp/>=<sp/>i;</highlight></codeline>
|
|
<codeline lineno="282"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>d_min<sp/>=<sp/>deg[dis[i]];</highlight></codeline>
|
|
<codeline lineno="283"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>s_min<sp/>=<sp/>x[dis[i]].size();</highlight></codeline>
|
|
<codeline lineno="284"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="285"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="286"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>i_min<sp/>refers<sp/>to<sp/>view<sp/>with<sp/>smallest<sp/>(degree,size)</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="287"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>ind[n_ind++]<sp/>=<sp/>dis[i_min];<sp/>dis[i_min]<sp/>=<sp/>dis[--n_dis];</highlight></codeline>
|
|
<codeline lineno="288"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
|
|
<codeline lineno="289"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Filter<sp/>out<sp/>non<sp/>disjoint<sp/>views</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="290"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=n_dis;<sp/>i--;<sp/>)</highlight></codeline>
|
|
<codeline lineno="291"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(ovl.get(dis[i],ind[n_ind-1]))<sp/>{</highlight></codeline>
|
|
<codeline lineno="292"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Update<sp/>degree<sp/>information</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="293"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>j=n_ovl_i[dis[i]];<sp/>j--;<sp/>)</highlight></codeline>
|
|
<codeline lineno="294"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>deg[ovl_i[dis[i]][j]]--;</highlight></codeline>
|
|
<codeline lineno="295"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Eliminate<sp/>view</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="296"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>dis[i]<sp/>=<sp/>dis[--n_dis];</highlight></codeline>
|
|
<codeline lineno="297"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="298"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="299"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Enforce<sp/>lower<sp/>bound</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="300"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(y.gq(home,vs.size()<sp/>+<sp/>n_ind));</highlight></codeline>
|
|
<codeline lineno="301"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="302"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Prune,<sp/>if<sp/>possible</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="303"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(vs.size()<sp/>+<sp/>n_ind<sp/>==<sp/>y.max())<sp/>{</highlight></codeline>
|
|
<codeline lineno="304"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Only<sp/>values<sp/>from<sp/>the<sp/>indepent<sp/>set<sp/>a<sp/>can<sp/>be<sp/>taken</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="305"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1ViewRanges_3_01IntView_01_4" kindref="compound">ViewRanges<IntView></ref>*<sp/>r_ind<sp/>=<sp/>r.<ref refid="classGecode_1_1Region_1a167cff2d16f08d890fff11f80e519233" kindref="member">alloc</ref><<ref refid="classGecode_1_1Int_1_1ViewRanges_3_01IntView_01_4" kindref="compound">ViewRanges<IntView></ref><sp/>>(n_ind);</highlight></codeline>
|
|
<codeline lineno="306"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=n_ind;<sp/>i--;<sp/>)</highlight></codeline>
|
|
<codeline lineno="307"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>r_ind[i]<sp/>=<sp/><ref refid="classGecode_1_1Int_1_1ViewRanges_3_01IntView_01_4" kindref="compound">ViewRanges<IntView></ref>(x[ind[i]]);</highlight></codeline>
|
|
<codeline lineno="308"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Iter_1_1Ranges_1_1NaryUnion" kindref="compound">Iter::Ranges::NaryUnion</ref><sp/>v_ind(r,<sp/>r_ind,<sp/>n_ind);</highlight></codeline>
|
|
<codeline lineno="309"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1_1Ranges" kindref="compound">ValSet::Ranges</ref><sp/>vsr(vs);</highlight></codeline>
|
|
<codeline lineno="310"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>v_ind<sp/>|=<sp/>vsr;</highlight></codeline>
|
|
<codeline lineno="311"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=x.size();<sp/>i--;<sp/>)<sp/>{</highlight></codeline>
|
|
<codeline lineno="312"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>v_ind.<ref refid="classGecode_1_1Iter_1_1Ranges_1_1RangeListIter_1ab5d71b116cf715dadb7926e6dcc31c7d" kindref="member">reset</ref>();</highlight></codeline>
|
|
<codeline lineno="313"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(x[i].inter_r(home,v_ind,</highlight><highlight class="keyword">false</highlight><highlight class="normal">));</highlight></codeline>
|
|
<codeline lineno="314"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="315"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight></codeline>
|
|
<codeline lineno="316"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a01d6fb1ec70479e8e413d5ecfd63e303" kindref="member">ES_OK</ref>;</highlight></codeline>
|
|
<codeline lineno="317"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="318"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="319"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>VY></highlight></codeline>
|
|
<codeline lineno="320"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
|
|
<codeline lineno="321" refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1af906f36063e1707caa15dee914cf2b4e" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1NValues_1_1IntBase_1af906f36063e1707caa15dee914cf2b4e" kindref="member">IntBase<VY>::prune_upper</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/><ref refid="classGecode_1_1Int_1_1NValues_1_1Graph" kindref="compound">Graph</ref>&<sp/>g)<sp/>{</highlight></codeline>
|
|
<codeline lineno="322"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!g.<ref refid="classGecode_1_1Int_1_1ViewValGraph_1_1Graph_1a547bc4f07d069a13a5d2a900f1e8eb41" kindref="member">initialized</ref>())<sp/>{</highlight></codeline>
|
|
<codeline lineno="323"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>g.<ref refid="classGecode_1_1Int_1_1NValues_1_1Graph_1a6145b4bb83c4c7af031fdf73b85f032c" kindref="member">init</ref>(home,vs,x);</highlight></codeline>
|
|
<codeline lineno="324"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
|
<codeline lineno="325"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>g.<ref refid="classGecode_1_1Int_1_1ViewValGraph_1_1Graph_1a49f9310b866c52aaa1c44e5e44dab103" kindref="member">purge</ref>();</highlight></codeline>
|
|
<codeline lineno="326"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>g.<ref refid="classGecode_1_1Int_1_1NValues_1_1Graph_1af50bc03d0bbb977c447d15922d2471a0" kindref="member">sync</ref>(home);</highlight></codeline>
|
|
<codeline lineno="327"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="328"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(y.lq(home,<sp/>g.<ref refid="classGecode_1_1Int_1_1NValues_1_1Graph_1a7c55ee994116ac04b62307b2ea8c0630" kindref="member">size</ref>()));</highlight></codeline>
|
|
<codeline lineno="329"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(y.min()<sp/>==<sp/>g.<ref refid="classGecode_1_1Int_1_1NValues_1_1Graph_1a7c55ee994116ac04b62307b2ea8c0630" kindref="member">size</ref>())<sp/>{</highlight></codeline>
|
|
<codeline lineno="330"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>All<sp/>values<sp/>must<sp/>be<sp/>taken<sp/>on</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="331"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(vs.size()<sp/>+<sp/>x.size()<sp/>==<sp/>g.<ref refid="classGecode_1_1Int_1_1NValues_1_1Graph_1a7c55ee994116ac04b62307b2ea8c0630" kindref="member">size</ref>())<sp/>{</highlight></codeline>
|
|
<codeline lineno="332"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>This<sp/>is<sp/>in<sp/>fact<sp/>a<sp/>distinct,<sp/>simplify<sp/>and<sp/>rewrite</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="333"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=x.size();<sp/>i--;<sp/>)<sp/>{</highlight></codeline>
|
|
<codeline lineno="334"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1ValSet_1_1Ranges" kindref="compound">ValSet::Ranges</ref><sp/>vsr(vs);</highlight></codeline>
|
|
<codeline lineno="335"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(x[i].minus_r(home,<sp/>vsr,<sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">));</highlight></codeline>
|
|
<codeline lineno="336"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="337"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_REWRITE(*</highlight><highlight class="keyword">this</highlight><highlight class="normal">,<ref refid="classGecode_1_1Int_1_1Distinct_1_1Dom" kindref="compound">Distinct::Dom<IntView>::post</ref>(home,x));</highlight></codeline>
|
|
<codeline lineno="338"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="339"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(g.mark(home))</highlight></codeline>
|
|
<codeline lineno="340"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ES_CHECK(g.<ref refid="classGecode_1_1Int_1_1NValues_1_1Graph_1a4aad33ebfbfaebb964d31e3176072a9e" kindref="member">prune</ref>(home));</highlight></codeline>
|
|
<codeline lineno="341"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="342"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a01d6fb1ec70479e8e413d5ecfd63e303" kindref="member">ES_OK</ref>;</highlight></codeline>
|
|
<codeline lineno="343"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="344"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="345"><highlight class="normal">}}}</highlight></codeline>
|
|
<codeline lineno="346"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="347"><highlight class="normal"></highlight><highlight class="comment">//<sp/>STATISTICS:<sp/>int-prop</highlight><highlight class="normal"></highlight></codeline>
|
|
</programlisting>
|
|
<location file="/usr/include/gecode/int/nvalues/int-base.hpp"/>
|
|
</compounddef>
|
|
</doxygen>
|