Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: HELP! with SkipList
Topic Summary:
Created On: 31-Mar-2004 18:16
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by , on Thursday, April 1, 2004 8:29 AM

Answer:
Perhaps you are creating the skip(s) using "create" instead of "createString". In general if the skip keys are strings, you should use "createString" instead of "create".
 31-Mar-2004 18:16
User is offline View Users Profile Print this message


Pieter DE WAARD

Posts: 73
Joined: 11-Jul-2003

We are trying to do a simple counting using skiplists, but we are confronted with two functions that apparently are not working; find and delete.

For "find" we wrote our own function, but for delete we did not succeed in creating it. The question, however, is: what are we doing wrong here. Why does neither the find work, nor the delete?

See code below.

Any help much appreciated.

- Pieter



-------------------------
Pieter de Waard
www.nhindustries.com
Report this to a Moderator Report this to a Moderator
 31-Mar-2004 20:22
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Gallion is probably right: when the "Key" is type string use "createString" to create it. Well, he's right if you insert "keyvals" as strings rather than exclusively as string variables.

Also, the "KeyVal" must be unique, of course. Also you need to delete before you can re-insert a new Data value; i++ in this case.

There might also be an issue using the "&" in the call parameter; but I'm too lazy to track that one down.

I use Skip Lists all the time and they seem to work.

- Louie
Report this to a Moderator Report this to a Moderator
 1-Apr-2004 08:30
User is offline View Users Profile Print this message


Pieter DE WAARD

Posts: 73
Joined: 11-Jul-2003

Louie, Roger

Thanks, the createString did the trick!

- Pieter

-------------------------
Pieter de Waard
www.nhindustries.com
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 0 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.