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 next message
piotr5 is currently offline  piotr5
Messages: 103
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.
Re: proposal: bool Index::HasUnlinked() [message #42001 is a reply to message #41972] Mon, 10 February 2014 13:55 Go to previous message
mirek is currently offline  mirek
Messages: 13132
Registered: November 2005
Ultimate Member
Makes sense, applied, also to AMap.
Previous Topic: Code for Substrating Months And Years function In Date Class
Next Topic: Xmlize default value
Goto Forum:
  


Current Time: Mon Mar 01 02:00:13 CET 2021

Total time taken to generate the page: 0.00823 seconds