U++ framework
Do not panic. Ask here before giving up.

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: Tue Apr 28 17:23:50 GMT+2 2026

Total time taken to generate the page: 0.00495 seconds