[gecode-users] pointer safe

Christian Schulte cschulte at kth.se
Thu May 29 15:32:30 CEST 2008


In general, no: the address will definitely change when you clone a space.

 

Moreover, we will not make the guarantee of pointer-safeness (some other
operations might change addresses too).

 

Christian

 

--

Christian Schulte, www.ict.kth.se/~cschulte/

 

From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
Of Mauricio Toro
Sent: Thursday, May 29, 2008 3:28 PM
To: users at gecode.org
Subject: [gecode-users] pointer safe

 

Hello all,

 

I would like to know if this functions are "pointer safe",

I was looking at the array implementation and I think

it manage its own memory allocation.

 

IntVarArray create(Space * h, int size)

{

   return IntVarArray(h,size,1,1000);

}

 

IntVar * get_IntVar(int pos, IntVarArray array)

{

 

}

-- 
Mauricio Toro Bermudez
Estudiante de Ingeniería de Sistemas
Pontificia Universidad Javeriana, Colombia

Stagiare à l'Ircam
1, place Igor-Stravinsky 75004 Paris, 
France de 2008 à 2009 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ps.uni-sb.de/pipermail/users/attachments/20080529/88f46ddb/attachment.htm>


More information about the gecode-users mailing list