summaryrefslogtreecommitdiff
path: root/src/pathfinder/npf/queue.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-10-02 19:46:24 +0000
committeralberth <alberth@openttd.org>2010-10-02 19:46:24 +0000
commit4af4d268d875c0dc09b5e1cea77d52b07dc3ec6e (patch)
tree11d2f6e3e391f769185dd7d60297b6b4d62438f6 /src/pathfinder/npf/queue.h
parent6f85b46eebf674b223df137a67c60b0b74953b97 (diff)
downloadopenttd-4af4d268d875c0dc09b5e1cea77d52b07dc3ec6e.tar.xz
(svn r20886) -Codechange: Make init_Hash a method.
Diffstat (limited to 'src/pathfinder/npf/queue.h')
-rw-r--r--src/pathfinder/npf/queue.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/pathfinder/npf/queue.h b/src/pathfinder/npf/queue.h
index 6059c54b1..69c1602df 100644
--- a/src/pathfinder/npf/queue.h
+++ b/src/pathfinder/npf/queue.h
@@ -86,6 +86,8 @@ struct Hash {
* there are any Nodes in the bucket */
bool *buckets_in_use;
+ void Init(Hash_HashProc *hash, uint num_buckets);
+
void *Get(uint key1, uint key2) const;
void *Set(uint key1, uint key2, void *value);
@@ -103,15 +105,4 @@ struct Hash {
}
};
-/* Call these function to manipulate a hash */
-
-
-/* Call these function to create/destroy a hash */
-
-/**
- * Builds a new hash in an existing struct. Make sure that hash() always
- * returns a hash less than num_buckets! Call delete_hash after use
- */
-void init_Hash(Hash *h, Hash_HashProc *hash, uint num_buckets);
-
#endif /* QUEUE_H */