[gecode-users] Cloning

Guido Tack tack at gecode.org
Mon Aug 12 11:37:06 CEST 2013


Hi Philippe,

that's fine, it's not required to do that stuff in the constructor.  The copy method shouldn't have to change.

Cheers,
Guido

On 12/08/2013, at 19:33 , Philippe <aqwzsxaqwzsx at orange.fr> wrote:

> Hi all,
> 
> In all examples provided in Gecode manual, all the works is done
> In the constructor (initialisation, calls to 'rel', 'branch' ...). 
> 
> For some reasons, my inputs are setted via setters and, when it's done, 
> a do_post() function member (which calls 'rel','branch' ...) is called only
> once from the main.
> 
> It seems to work but is it valid ? Does this have an impact on cloning ?
> Do i need to call the do_post in the 'copy(bool share)' ?
> 
> 
> Thanks,
> Philippe
> 
> 
> _______________________________________________
> Gecode users mailing list
> users at gecode.org
> https://www.gecode.org/mailman/listinfo/gecode-users

-- 
Guido Tack,
http://www.csse.monash.edu/~guidot/



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20130812/5b4f7f2c/attachment.html>


More information about the users mailing list