Fixed a problem related to AdjacencyIterator. In the Python layer,

AdjacencyIterator::isBegin() and AdjacencyIterator::isEnd() always
returned a False value and printed a "not implemented" warning message.
This caused an infinite loop in a few chaining iterators, resulting in
a crash of the program.  The origin of the issue seemed to be a fact
that in the C++ layer, the AdjacencyIterator class had not properly
overloaded the definitions of the methods in the Iterator superclass.
The fix here looks okay, although I'm not sure why this inconsistency
was not addressed for a long time.
This commit is contained in:
2009-07-25 18:02:34 +00:00
parent fec3ddabb1
commit b25e4b6474

View File

@@ -79,10 +79,10 @@ public:
return "AdjacencyIterator";
}
virtual inline bool isEnd(){
virtual inline bool isEnd() const {
return _internalIterator.isEnd();
}
virtual inline bool isBegin(){
virtual inline bool isBegin() const {
return _internalIterator.isBegin();
}
/*! Returns true if the current ViewEdge is is coming