--- queensgui/src/solutionhash.h 2007/07/19 22:26:42 2 +++ queensgui/src/containerhash.h 2007/07/20 09:54:09 6 @@ -17,24 +17,26 @@ * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#ifndef SOLUTIONHASH_H -#define SOLUTIONHASH_H +#ifndef CONTAINERHASH_H +#define CONTAINERHASH_H #include "solutioncontainer.h" #include "solution.h" #include +#include + /** @author Torben Nielsen */ -class SolutionHash : public SolutionContainer +class ContainerHash : public SolutionContainer { private: static const int max_size = 256; - typedef std::list::iterator ListIt; - typedef std::list SolList; + typedef std::list< boost::shared_ptr >::iterator ListIt; + typedef std::list< boost::shared_ptr > SolList; SolList* solutions[max_size]; @@ -44,9 +46,9 @@ int m_size; public: - SolutionHash(GUIUpdate* update); + ContainerHash(GUIUpdate* update); - ~SolutionHash(); + ~ContainerHash(); void uniqueSolutions(); int numSolutions(); int totalSolutions();