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

Annotation of /queensgui/src/containerlist.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (hide annotations) (download)
Thu Jul 19 23:44:01 2007 UTC (16 years, 10 months ago) by torben
File MIME type: text/plain
File size: 1998 byte(s)
Renamed solution{list,vector,hash,nmvector} to container{...}


1 torben 1 /***************************************************************************
2     * Copyright (C) 2005 by Torben Nielsen *
3     * torben@t-hoerup.dk *
4     * *
5     * This program is free software; you can redistribute it and/or modify *
6     * it under the terms of the GNU General Public License as published by *
7     * the Free Software Foundation; either version 2 of the License, or *
8     * (at your option) any later version. *
9     * *
10     * This program is distributed in the hope that it will be useful, *
11     * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13     * GNU General Public License for more details. *
14     * *
15     * You should have received a copy of the GNU General Public License *
16     * along with this program; if not, write to the *
17     * Free Software Foundation, Inc., *
18     * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19     ***************************************************************************/
20 torben 4 #ifndef CONTAINERLIST_H
21     #define CONTAINERLIST_H
22 torben 1
23     #include "solutioncontainer.h"
24     #include "solution.h"
25    
26     #include <list>
27    
28    
29    
30     /**
31     @author Torben Nielsen
32     */
33 torben 4 class ContainerList : public SolutionContainer
34 torben 1 {
35     public:
36 torben 4 ContainerList(GUIUpdate* update);
37 torben 1
38 torben 4 ~ContainerList();
39 torben 1 void uniqueSolutions();
40     int numSolutions();
41     int totalSolutions();
42    
43 torben 2 Solution* solution(int index);
44     void addSolution(Solution* sol);
45 torben 1 private:
46 torben 2 typedef std::list<Solution*>::iterator ListIt;
47     typedef std::list<Solution*> SolList;
48 torben 1 SolList solutions;
49    
50     void uniqueSolutionsWorker(int rot, bool mirror);
51     int total;
52     };
53    
54     #endif

Properties

Name Value
svn:eol-style native
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20