[gecode-users] Posting propagator : IntView lifetime ?
jeremie.vautard
jeremie.vautard at laposte.net
Thu Apr 13 15:28:14 CEST 2006
Hi !
first, thanks Grégoire and Christian. I now understand what to
do exactely for creating my propagator. I just have one
remaining question (in fact, more a check than a question) :
is it OK to call, within the propagate method of a propagator,
a method from a class which is totally external to the current
space, but takes some IntViews in argument ? I am trying to
make an extensively defined binary constraint (so the accepted
couples are listed in a big table) : I have a class in which
my table is stored, and this class has a method '' PropCost
check(IntView x,y) '' which will actually remove values from
the IntViews. So, in the propagate method of my propagator,
may I just do return ctr->check(xa,xb) (where ctr is a pointer
to an Extensive Binary Constraint object the propagator
knows). I think this wouldn't create any problems, but I
prefer to check...
Jeremie Vautard
Accédez au courrier électronique de La Poste : www.laposte.net ;
3615 LAPOSTENET (0,34 /mn) ; tél : 08 92 68 13 50 (0,34/mn)
More information about the gecode-users
mailing list