[Vortex] vortex_hash_clear

Robert M. Münch robert.muench at robertmuench.de
Tue Dec 22 14:02:32 CET 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA384

Hi, I use vortex_hash in one of my modules and want to delete every  
key/value pair by calling a value-destroy method in a way that the hash  
survives and can be re-used.

"vortex_hash_clear" documentation is a but unclear if entries will only be  
removed from the hash, or if registred destroy methods will be called too.

Even not explicitly stated I assume that "vortex_hash_destroy" makes the  
hash-table no longer valid, so no re-using possible.

What's the best way to delete all elements from the hash without having to  
give the KEYs?

- -- 
Robert M. Münch
Management and IT freelancer
http://www.robertmuench.de

-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 10.0.0 (Build 2489)
Charset: iso-8859-15

wsBVAwUBSzDDaXSQa/BbHGLwAQkzJQgAlHcHJMmUw1DyuezQSNPXNzamY1RLBq9m
+cgZ3BF4xkA9mIVuF7VabEBjUD2GdliRVEPz2oShnOtsjQ1tmHPmS8NqKhB0A2di
aeDrOLtgDrm+FGq0GLAvfMUYI9BKJteg0WtP3nJMocHLPxSoaklbcK1U6BwefUTl
R4T7d695tX8dcpw7wUscg9BBdY9nmCtBsYkXnS+x4p/310Im8V+MK1nV1xqvR3pK
1GUtKY2FI1EZNmT61h4QoZ+4lzp+E8y4koZipO3xJIq5vdZLJZ9oWdw1eb0DQAcT
xHCr+t0sws7/C9eHgAFhO8taO3n9xAu4R+FXZd6doyrMIBvtW3IZDw==
=WpYg
-----END PGP SIGNATURE-----


More information about the Vortex mailing list