20 #ifndef GEOS_PLANARGRAPH_GRAPHCOMPONENT_H 21 #define GEOS_PLANARGRAPH_GRAPHCOMPONENT_H 23 #include <geos/export.h> 26 namespace planargraph {
72 virtual bool isVisited()
const {
return isVisitedVar; }
78 virtual void setVisited(
bool isVisited) { isVisitedVar=isVisited; }
90 for(T i=start; i!=end; ++i) {
91 (*i)->setVisited(visited);
103 template <
typename T>
105 for(T i=start; i!=end; ++i) {
106 i->second->setVisited(visited);
118 template <
typename T>
120 for(T i=start; i!=end; ++i) {
121 (*i)->setMarked(marked);
134 template <
typename T>
136 for(T i=start; i!=end; ++i) {
137 i->second->setMarked(marked);
146 virtual bool isMarked()
const {
return isMarkedVar; }
152 virtual void setMarked(
bool isMarked) { isMarkedVar=isMarked; }
162 #endif // GEOS_PLANARGRAPH_GRAPHCOMPONENT_H virtual bool isVisited() const
Tests if a component has been visited during the course of a graph algorithm.
Definition: planargraph/GraphComponent.h:72
bool isMarkedVar
Variable holding ''marked'' status.
Definition: planargraph/GraphComponent.h:51
static void setVisitedMap(T start, T end, bool visited)
Sets the Visited state for the values of each map container element, from start to end iterator...
Definition: planargraph/GraphComponent.h:104
virtual void setVisited(bool isVisited)
Sets the visited flag for this component.
Definition: planargraph/GraphComponent.h:78
virtual void setMarked(bool isMarked)
Sets the marked flag for this component.
Definition: planargraph/GraphComponent.h:152
static void setMarked(T start, T end, bool marked)
Sets the Marked state for the elements of a container, from start to end iterator.
Definition: planargraph/GraphComponent.h:119
static void setVisited(T start, T end, bool visited)
Sets the Visited state for the elements of a container, from start to end iterator.
Definition: planargraph/GraphComponent.h:89
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
virtual bool isMarked() const
Tests if a component has been marked at some point during the processing involving this graph...
Definition: planargraph/GraphComponent.h:146
static void setMarkedMap(T start, T end, bool marked)
Sets the Marked state for the values of each map container element, from start to end iterator...
Definition: planargraph/GraphComponent.h:135
The base class for all graph component classes.
Definition: planargraph/GraphComponent.h:46
bool isVisitedVar
Variable holding ''visited'' status.
Definition: planargraph/GraphComponent.h:54