[gecode-users] allocated() virtual member function?
Christian Schulte
cschulte at kth.se
Tue Nov 4 15:58:40 CET 2014
Hi Joe, Aaargh, you got us here. Dead documentation is really worse than
dead code. I'll fix it in the trunk. Thanks. Christian
--
Christian Schulte, KTH, web.it.kth.se/~cschulte/
-----Original Message-----
From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
Of Joseph Scott
Sent: Tuesday, November 4, 2014 03:47 PM
To: users at gecode.org
Subject: [gecode-users] allocated() virtual member function?
Hello,
I have a quick question about a propagator with heap-allocated memory. I
understand that it needs to be registered for disposal, via AP_DISPOSE. But
I'm a little confused by the "Reporting allocated memory" paragraph in MPG
(Section 30.2, p. 361), which states that any propagator allocating
non-space memory "must implement the virtual member function allocated()".
I've looked, but it seems like the allocated() member function has been
removed (maybe as part of the change to peak memory tracking in 4.2?). Is it
safe to assume this paragraph no longer applies? Or do I need to report the
propagator's allocated size somewhere else?
Thanks!
Joe
_______________________________________________
Gecode users mailing list
users at gecode.org
https://www.gecode.org/mailman/listinfo/gecode-users
More information about the users
mailing list