/[projects]/queensgui/src/containerlist.h
ViewVC logotype

Diff of /queensgui/src/containerlist.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

queensgui/src/solutionlist.h revision 1 by torben, Thu Jul 19 21:34:15 2007 UTC queensgui/src/containerlist.h revision 6 by torben, Fri Jul 20 09:54:09 2007 UTC
# Line 17  Line 17 
17   *   Free Software Foundation, Inc.,                                       *   *   Free Software Foundation, Inc.,                                       *
18   *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *   *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19   ***************************************************************************/   ***************************************************************************/
20  #ifndef SOLUTIONLIST_H  #ifndef CONTAINERLIST_H
21  #define SOLUTIONLIST_H  #define CONTAINERLIST_H
22    
23  #include "solutioncontainer.h"  #include "solutioncontainer.h"
24  #include "solution.h"  #include "solution.h"
25    
26  #include <list>  #include <list>
27    #include <boost/shared_ptr.hpp>
28    
29    
30  /**  /**
31  @author Torben Nielsen  @author Torben Nielsen
32  */  */
33  class SolutionList : public SolutionContainer  class ContainerList : public SolutionContainer
34  {  {
35  public:  public:
36          SolutionList(GUIUpdate* update);          ContainerList(GUIUpdate* update);
37    
38      ~SolutionList();          ~ContainerList();
39      void uniqueSolutions();      void uniqueSolutions();
40      int numSolutions();      int numSolutions();
41      int totalSolutions();      int totalSolutions();
42            
43      Solution solution(int index);      Solution* solution(int index);
44      void addSolution(Solution sol);      void addSolution(Solution* sol);
45  private:  private:
46          typedef std::list<Solution>::iterator ListIt;          typedef std::list<boost::shared_ptr<Solution> >::iterator ListIt;
47          typedef std::list<Solution> SolList;          typedef std::list<boost::shared_ptr<Solution> > SolList;
48          SolList solutions;          SolList solutions;
49            
50          void uniqueSolutionsWorker(int rot, bool mirror);          void uniqueSolutionsWorker(int rot, bool mirror);

Legend:
Removed from v.1  
changed lines
  Added in v.6

  ViewVC Help
Powered by ViewVC 1.1.20