Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » proposal: bool Index::HasUnlinked()
proposal: bool Index::HasUnlinked() [message #41972] Sun, 09 February 2014 12:20 Go to previous message
piotr5 is currently offline  piotr5
Messages: 107
Registered: November 2005
Experienced Member
it's just a one-liner. in Index.h add

	bool  HasUnlinked() const				{ return unlinked >= 0; }
to HashBase class.

in AIndex:
	bool	 HasUnlinked() const			 { return hash.HasUnlinked();}

since you can't get reference to Hash.

the reason is that I abuse unlinking as a marker. but also in multi-threading it would be interesting to execute Sweep() in another thread, if needed.
 
Read Message
Read Message
Previous Topic: Code for Substrating Months And Years function In Date Class
Next Topic: Xmlize default value
Goto Forum:
  


Current Time: Thu Mar 28 22:59:00 CET 2024

Total time taken to generate the page: 0.01134 seconds