Update of /cvsroot/simspark/simspark/spark/zeitgeist
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv20828
Modified Files:
Tag: WIN32
node.cpp node_c.cpp
Log Message:
- clean up and export UnlinkChildren to ruby
Index: node_c.cpp
===================================================================
RCS file: /cvsroot/simspark/simspark/spark/zeitgeist/node_c.cpp,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -d -r1.1 -r1.1.2.1
*** node_c.cpp 5 Dec 2005 20:59:18 -0000 1.1
--- node_c.cpp 15 Feb 2007 20:53:33 -0000 1.1.2.1
***************
*** 25,30 ****
--- 25,37 ----
using namespace zeitgeist;
+ FUNCTION(Node,unlinkChildren)
+ {
+ obj->UnlinkChildren();
+ return true;
+ }
+
void CLASS(Node)::DefineClass()
{
+ DEFINE_FUNCTION(unlinkChildren);
DEFINE_BASECLASS(zeitgeist/Leaf);
}
Index: node.cpp
===================================================================
RCS file: /cvsroot/simspark/simspark/spark/zeitgeist/node.cpp,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -d -r1.1 -r1.1.2.1
*** node.cpp 5 Dec 2005 20:59:18 -0000 1.1
--- node.cpp 15 Feb 2007 20:53:33 -0000 1.1.2.1
***************
*** 199,217 ****
Node::UnlinkChildren()
{
- string cname;
- if (GetClass().get() != 0)
- {
- cname = GetClass()->GetName();
- }
-
while (! mChildren.empty())
{
shared_ptr<Leaf> node = mChildren.front();
-
- string className;
- if (node->GetClass().get()!= 0)
- {
- className=node->GetClass()->GetName();
- }
node->UnlinkChildren();
node->Unlink();
--- 199,205 ----
|