|
From: Chris P. <chr...@ju...> - 2003-10-07 00:28:58
|
Hi Red Knight, The skip list I sent isn't a finalized version. Give me some time to finish it and put it through some thorough testing, before integrating it. If you look through the source, you'll notice that the existing code functions like a B-Tree, but there isn't any code in it to take advantage of the list functionality (except the destructor, if I remember correctly). This is the easy part though, so it shouldn't take too long. Once I finish that it will need to be thoroughly tested to be trustworthy. :) Yeah I've been victim of the propagating struct memory leaks before, so I can understand why you want to avoid that. It's a big reason why I prefer using C++ over C. One way to avoid it is to actually define the structs inside the class and make them private. I can change the code to this. Now that I think of it, it's probably the best way to do it. Regards, chrisp On Mon, 6 Oct 2003 02:17:46 +0100 red...@pr... writes: > Hi Chrisp, > > I saw the Skip List, and I will integrate with the other data > structures (if > you aggree on it) so we can use it when needed. About the XNet DB > Loader just > one thing, as a guideline. Do not propagate Structs arround, if you > need to > use them internally for direct loading from the disk (as it is used > in the > Network Library, fine... but under no circunstance let them > propagate away > from the class that they serve. There are several reasons for that, > that if I > dont remember wrong I had already explained before in the > programming forum or > the mailing list. > > If you have any further question, just send a mail to the list. > > Greetings > Red Knight > > > > > Hey everyone, > > > > Sorry I've been out of touch for so long. I've been busy moving > > and w/ a new job. I haven't had much time to work on the XNet > > db loader during the past few weeks, so I figured I should go > > ahead and post the header files as they are. So.. here are the > > header files w/ some basic documentation. I used my own string > > class, which should definitely be changed. I also used my Skip > > List. Which can be changed also. The files are attached. Let me > > > know what changes should be made. I'll try and set aside some > > time to get this done. :) > > > > > > -chrisp > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Xenocide-programming mailing list > Xen...@li... > https://lists.sourceforge.net/lists/listinfo/xenocide-programming > > ________________________________________________________________ The best thing to hit the internet in years - Juno SpeedBand! Surf the web up to FIVE TIMES FASTER! Only $14.95/ month - visit www.juno.com to sign up today! |