20 #ifndef GEOS_PLANARGRAPH_GRAPHCOMPONENT_H 21 #define GEOS_PLANARGRAPH_GRAPHCOMPONENT_H 26 namespace planargraph {
86 isVisitedVar = p_isVisited;
101 for(T i = start; i != end; ++i) {
102 (*i)->setVisited(visited);
114 template <
typename T>
118 for(T i = start; i != end; ++i) {
119 i->second->setVisited(visited);
131 template <
typename T>
135 for(T i = start; i != end; ++i) {
136 (*i)->setMarked(marked);
149 template <
typename T>
153 for(T i = start; i != end; ++i) {
154 i->second->setMarked(marked);
176 isMarkedVar = p_isMarked;
187 #endif // GEOS_PLANARGRAPH_GRAPHCOMPONENT_H virtual void setVisited(bool p_isVisited)
Sets the visited flag for this component.
virtual void setMarked(bool p_isMarked)
Sets the marked flag for this component.
virtual bool isVisited() const
Tests if a component has been visited during the course of a graph algorithm.
bool isMarkedVar
Variable holding ''marked'' status.
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...
virtual bool isMarked() const
Tests if a component has been marked at some point during the processing involving this graph...
virtual ~GraphComponent()
static void setMarked(T start, T end, bool marked)
Sets the Marked state for the elements of a container, from start to end iterator.
static void setVisited(T start, T end, bool visited)
Sets the Visited state for the elements of a container, from start to end iterator.
Basic namespace for all GEOS functionalities.
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...
The base class for all graph component classes.
bool isVisitedVar
Variable holding ''visited'' status.