From: <br...@us...> - 2008-11-22 09:22:22
|
Revision: 3807 http://openvrml.svn.sourceforge.net/openvrml/?rev=3807&view=rev Author: braden Date: 2008-11-22 09:22:18 +0000 (Sat, 22 Nov 2008) Log Message: ----------- Made openvrml::node_traverser::halted and openvrml::node_traverser::traversed const. Modified Paths: -------------- trunk/ChangeLog trunk/src/libopenvrml/openvrml/node.cpp trunk/src/libopenvrml/openvrml/node.h Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-11-22 09:21:59 UTC (rev 3806) +++ trunk/ChangeLog 2008-11-22 09:22:18 UTC (rev 3807) @@ -1,3 +1,15 @@ +2008-11-22 Braden McDaniel <br...@en...> + + Made openvrml::node_traverser::halted and + openvrml::node_traverser::traversed const. + + * src/libopenvrml/openvrml/node.cpp + (openvrml::node_traverser::halted() const): Made const. + (openvrml::node_traverser::traversed(node &) const): Made const. + * src/libopenvrml/openvrml/node.h + (openvrml::node_traverser): Made the halted and traversed member + functions const. + 2008-11-21 Braden McDaniel <br...@en...> Moved node implementations to dynamically loaded libraries. Modified: trunk/src/libopenvrml/openvrml/node.cpp =================================================================== --- trunk/src/libopenvrml/openvrml/node.cpp 2008-11-22 09:21:59 UTC (rev 3806) +++ trunk/src/libopenvrml/openvrml/node.cpp 2008-11-22 09:22:18 UTC (rev 3807) @@ -5019,7 +5019,7 @@ * * @return @c true if the traversal has been halted; @c false otherwise. */ -bool openvrml::node_traverser::halted() OPENVRML_NOTHROW +bool openvrml::node_traverser::halted() const OPENVRML_NOTHROW { return this->halt; } @@ -5031,7 +5031,7 @@ * * @return @c true if @p n has been traversed; @c false otherwise. */ -bool openvrml::node_traverser::traversed(node & n) OPENVRML_NOTHROW +bool openvrml::node_traverser::traversed(node & n) const OPENVRML_NOTHROW { return this->traversed_nodes.find(&n) != this->traversed_nodes.end(); } Modified: trunk/src/libopenvrml/openvrml/node.h =================================================================== --- trunk/src/libopenvrml/openvrml/node.h 2008-11-22 09:21:59 UTC (rev 3806) +++ trunk/src/libopenvrml/openvrml/node.h 2008-11-22 09:22:18 UTC (rev 3807) @@ -1330,8 +1330,8 @@ protected: void halt_traversal() OPENVRML_NOTHROW; - bool halted() OPENVRML_NOTHROW; - bool traversed(node & n) OPENVRML_NOTHROW; + bool halted() const OPENVRML_NOTHROW; + bool traversed(node & n) const OPENVRML_NOTHROW; private: virtual void on_entering(node & n); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |