CoxIter  1.2
CoxIter - Computing invariants of hyperbolic Coxeter groups
graphs.list.iterator.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2013, 2014, 2015, 2016
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 
39 #ifndef GRAPHS_LIST_ITERATOR_H
40 #define GRAPHS_LIST_ITERATOR_H
41 
42 #include "graphs.list.h"
43 
45 {
46  private:
47  size_t iVCount;
48  size_t iGraphIndex;
49 
51 
52  unsigned int iVerticesCountMax;
54 
55  public:
61 
68  GraphsListIterator( GraphsList *gl, const unsigned int& iVerticesCountMin, const unsigned int& iVerticesCountMax = 0 );
69 
71 
79  Graph* next( );
80 
86 
87 
88  public:
90 };
91 
92 #endif // GRAPHS_LIST_ITERATOR_H
GraphsList * graphsList
Pointeur vers la liste de graphes.
Definition: graphs.list.iterator.h:50
Permet de parcourir une liste de graphes Utilisation (pour un GraphsList *gl ) GraphsListIterator it...
Definition: graphs.list.iterator.h:44
size_t iGraphIndex
Index du graphe courant.
Definition: graphs.list.iterator.h:48
Liste des graphes.
Definition: graphs.list.h:40
This class represents one graph.
Definition: graph.h:42
bool bLimitVerticesMax
Definition: graphs.list.iterator.h:53
GraphsListIterator & operator++()
Definition: graphs.list.iterator.cpp:79
Graph * next()
D├ęplace ptr vers le prochain graphe.
Definition: graphs.list.iterator.cpp:69
GraphsListIterator()
Definition: graphs.list.iterator.cpp:65
Graph * ptr
Pointeur vers le graphe courant.
Definition: graphs.list.iterator.h:89
size_t iVCount
Nombre de sommets du graphe courant.
Definition: graphs.list.iterator.h:47
unsigned int iVerticesCountMax
Definition: graphs.list.iterator.h:52