Itérateur pour le parcours (sélectif par leur type) des objets d'un graphe. More...
#include "cogitant/graph.h"
Classes | |
| class | GraphObjectCondIteratorCondition |
| Vérification de la condition permettant le parcours des objets d'un graphe en fonction de leur type. More... | |
Public Member Functions | |
| GraphObjectCondIterator () | |
| Constructeur d'un itérateur incorrect. | |
| GraphObjectCondIterator (Set< GraphObject * > const *const s, const iSet i, Graph const *graph, const iSet idparent) | |
| Constructeur d'un itérateur sur l'ensemble s à la position i, uniquement sur les fils de idparent dans graph (cogitant::ISET_NULL pour parcourir tous les objets d'un même type du graphe). | |
| GraphObjectCondIterator (GraphObjectCondIterator< SetContent, SetContent &, selectedtype > const &c) | |
| Constructeur par recopie. | |
| iSet | iSetValue () const |
| Retourne la valeur d'identifiant d'ensemble correspondant à l'itérateur. | |
| SetContentRef | operator* () const |
| Accès à l'élément de l'ensemble représenté par l'itérateur. | |
| GraphObjectCondIterator < SetContent, SetContentRef, selectedtype > const & | operator++ () |
| Incrémentation de l'itérateur. | |
| GraphObjectCondIterator < SetContent, SetContentRef, selectedtype > const & | operator++ (int) |
| Incrémentation de l'itérateur. | |
Public Member Functions inherited from cogitant::SetCondIterator< GraphObject *, SetContentRef > | |
| SetCondIterator () | |
| Constructeur d'un itérateur incorrect. | |
| SetCondIterator (SetCondIteratorCondition const *condition, Set< GraphObject * > const *s, iSet i, bool init=true) | |
| Constructeur d'un itérateur sur l'ensemble s à la position i, utilisant un filtre donné par l'objet condition. | |
| SetCondIterator (SetCondIterator< GraphObject *, GraphObject *& > const &c) | |
| Constructeur par recopie. | |
| virtual | ~SetCondIterator () |
| Destructeur. | |
| SetCondIterator< GraphObject *, SetContentRef > const & | operator++ () |
| Incrémentation de l'itérateur. | |
| SetCondIterator< GraphObject *, SetContentRef > const & | operator++ (int) |
| Incrémentation de l'itérateur. | |
Public Member Functions inherited from cogitant::SetIterator< GraphObject *, SetContentRef > | |
| SetIterator () | |
| Constructeur d'un itérateur incorrect. | |
| SetIterator (Set< GraphObject * > const *s, iSet i) | |
| Constructeur d'un itérateur sur l'ensemble s à la position i. | |
| SetIterator (SetIterator< GraphObject *, GraphObject *& > const &c) | |
| Constructeur par recopie. | |
| virtual | ~SetIterator () |
| Destructeur. | |
| SetContentRef | operator* () const |
| Accès à l'élément de l'ensemble représenté par l'itérateur. | |
| SetIterator< GraphObject *, SetContentRef > const & | operator++ () |
| Incrémentation de l'itérateur. | |
| SetIterator< GraphObject *, SetContentRef > const & | operator++ (int) |
| Incrémentation de l'itérateur. | |
Public Member Functions inherited from cogitant::SetIteratorBase< GraphObject * > | |
| SetIteratorBase () | |
| Constructeur d'un itérateur incorrect. | |
| SetIteratorBase (Set< GraphObject * > const *s, iSet i) | |
| Constructeur d'un itérateur sur l'ensemble s à la position i. | |
| SetIteratorBase (SetIteratorBase< GraphObject * > const &s) | |
| Constructeur par recopie. | |
| virtual | ~SetIteratorBase () |
| Destructeur. | |
| Set< GraphObject * > const * | set () const |
| Accès à l'ensemble repéré par l'itérateur. | |
| virtual bool | isValid () const |
| L'itérateur est-il valide ou est-il en fin ? | |
| bool | operator== (SetIteratorBase< GraphObject * > const &c) const |
| Test d'égalité. | |
| bool | operator!= (SetIteratorBase< GraphObject * > const &c) const |
| Test de différence. | |
Public Attributes | |
| iSet | m_idparent |
| Identifiant du parent dont les fils sont parcourus. | |
| Graph const * | m_graph |
| Graphe dans lequel le parcours a lieu. | |
Static Public Attributes | |
|
static GraphObjectCondIteratorCondition | m_gocondition |
| Condition de filtre des éléments parcourus. | |
Protected Member Functions | |
| void | next () |
| Passage au suivant. | |
Protected Member Functions inherited from cogitant::SetCondIterator< GraphObject *, SetContentRef > | |
| void | next () |
Additional Inherited Members | |
Protected Attributes inherited from cogitant::SetCondIterator< GraphObject *, SetContentRef > | |
| SetCondIteratorCondition const * | m_condition |
| Condition devant être respectée pour les objets parcourus. | |
Itérateur pour le parcours (sélectif par leur type) des objets d'un graphe.
| cogitant::GraphObjectCondIterator< SetContent, SetContentRef, selectedtype >::GraphObjectCondIterator | ( | ) |
Constructeur d'un itérateur incorrect.
| cogitant::GraphObjectCondIterator< SetContent, SetContentRef, selectedtype >::GraphObjectCondIterator | ( | Set< GraphObject * > const *const | s, |
| const iSet | i, | ||
| Graph const * | graph, | ||
| const iSet | idparent | ||
| ) |
Constructeur d'un itérateur sur l'ensemble s à la position i, uniquement sur les fils de idparent dans graph (cogitant::ISET_NULL pour parcourir tous les objets d'un même type du graphe).
| cogitant::GraphObjectCondIterator< SetContent, SetContentRef, selectedtype >::GraphObjectCondIterator | ( | GraphObjectCondIterator< SetContent, SetContent &, selectedtype > const & | c | ) |
Constructeur par recopie.
|
virtual |
Retourne la valeur d'identifiant d'ensemble correspondant à l'itérateur.
Reimplemented from cogitant::SetIteratorBase< GraphObject * >.
|
protected |
Passage au suivant.
| SetContentRef cogitant::GraphObjectCondIterator< SetContent, SetContentRef, selectedtype >::operator* | ( | ) | const |
Accès à l'élément de l'ensemble représenté par l'itérateur.
| GraphObjectCondIterator<SetContent, SetContentRef, selectedtype> const& cogitant::GraphObjectCondIterator< SetContent, SetContentRef, selectedtype >::operator++ | ( | ) |
Incrémentation de l'itérateur.
| GraphObjectCondIterator<SetContent, SetContentRef, selectedtype> const& cogitant::GraphObjectCondIterator< SetContent, SetContentRef, selectedtype >::operator++ | ( | int | ) |
Incrémentation de l'itérateur.