CoxIter  1.3
CoxIter - Computing invariants of hyperbolic Coxeter groups
graphs.list.iterator.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2013-2017
3 Rafael Guglielmetti, rafael.guglielmetti@unifr.ch
4 */
5 
6 /*
7 This file is part of CoxIter.
8 
9 CoxIter is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as
11 published by the Free Software Foundation, either version 3 of the
12 License, or (at your option) any later version.
13 
14 CoxIter is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with CoxIter. If not, see <http://www.gnu.org/licenses/>.
21 */
22 
38 #ifndef GRAPHS_LIST_ITERATOR_H
39 #define GRAPHS_LIST_ITERATOR_H
40 
41 #include "graphs.list.h"
42 
44 private:
45  size_t verticesCount;
46  size_t graphIndex;
47 
49 
50  unsigned int verticesCountMax;
52 
53 public:
59 
61 
69  GraphsListIterator(GraphsList *gl, const unsigned int &verticesCountMin,
70  const unsigned int &verticesCountMax = 0);
71 
73 
82  Graph *next();
83 
89 
90 public:
92 };
93 
94 #endif // GRAPHS_LIST_ITERATOR_H
This class represents one graph.
Definition: graph.h:42
Liste des graphes.
Definition: graphs.list.h:40
Permet de parcourir une liste de graphes Utilisation (pour un GraphsList *gl) GraphsListIterator ite...
Definition: graphs.list.iterator.h:43
GraphsListIterator()
Definition: graphs.list.iterator.cpp:68
GraphsListIterator & operator++()
Definition: graphs.list.iterator.cpp:79
Graph * next()
Definition: graphs.list.iterator.cpp:70
bool limitMaxVertices
Definition: graphs.list.iterator.h:51
size_t graphIndex
Index du graphe courant.
Definition: graphs.list.iterator.h:46
unsigned int verticesCountMax
Definition: graphs.list.iterator.h:50
Graph * ptr
Pointeur vers le graphe courant.
Definition: graphs.list.iterator.h:91
GraphsList * graphsList
Pointeur vers la liste de graphes.
Definition: graphs.list.iterator.h:48
size_t verticesCount
Nombre de sommets du graphe courant.
Definition: graphs.list.iterator.h:45