]> git.donarmstrong.com Git - lilypond.git/blobdiff - molecule.cc
release: 0.0.5
[lilypond.git] / molecule.cc
index 7b8a752423e002148d726345d24031991f254b47..5ab384f87d639d710d59c1bca89b412e7e8aaf10 100644 (file)
@@ -3,6 +3,13 @@
 #include "string.hh"
 #include "molecule.hh"
 #include "symbol.hh"
+#include "debug.hh"
+
+void
+Atom::print() const
+{
+    mtor << "texstring: " <<sym.tex<<"\n";    
+}
 
 Box
 Atom::extent() const
@@ -29,7 +36,6 @@ Atom::TeXstring() const
     return s;
 }
 
-/****************************************************************/
 
 String
 Molecule::TeXstring() const
@@ -111,3 +117,10 @@ Molecule::Molecule(const Molecule&s)
 {
     add(s);
 }
+
+void
+Molecule::print() const
+{
+    for (PCursor<Atom*> c(ats); c.ok(); c++)
+       c->print();
+}