]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/skyline-pair.cc
Doc-de: update of learning
[lilypond.git] / lily / skyline-pair.cc
index 4ce44586d59f9bfd4f2885a03c8485167e61af3b..2a3b26ff9e81a0512268b639c2a236d547fdcf70 100644 (file)
@@ -1,10 +1,21 @@
-/* 
-  skyline-pair.cc -- implement Skyline_pair
-  
-  source file of the GNU LilyPond music typesetter
-  
-  (c) 2008 Han-Wen Nienhuys <hanwen@lilypond.org>
-  
+/*
+  This file is part of LilyPond, the GNU music typesetter.
+
+  Copyright (C) 2008--2011 Han-Wen Nienhuys <hanwen@lilypond.org>
+
+
+  LilyPond is free software: you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation, either version 3 of the License, or
+  (at your option) any later version.
+
+  LilyPond is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 #include "skyline-pair.hh"
@@ -54,21 +65,34 @@ Skyline_pair::merge (Skyline_pair const &other)
   skylines_[DOWN].merge (other[DOWN]);
 }
 
+void
+Skyline_pair::print () const
+{
+  skylines_[UP].print ();
+  skylines_[DOWN].print ();
+}
+
+void
+Skyline_pair::print_points () const
+{
+  skylines_[UP].print ();
+  skylines_[DOWN].print ();
+}
 
 bool
 Skyline_pair::is_empty () const
 {
   return skylines_[UP].is_empty ()
-    && skylines_[DOWN].is_empty ();
+         && skylines_[DOWN].is_empty ();
 }
 
-Skyline&
+Skyline &
 Skyline_pair::operator [] (Direction d)
 {
   return skylines_[d];
 }
 
-Skyline const&
+Skyline const &
 Skyline_pair::operator [] (Direction d) const
 {
   return skylines_[d];
@@ -78,8 +102,6 @@ IMPLEMENT_SIMPLE_SMOBS (Skyline_pair);
 IMPLEMENT_TYPE_P (Skyline_pair, "ly:skyline-pair?");
 IMPLEMENT_DEFAULT_EQUAL_P (Skyline_pair);
 
-
-
 SCM
 Skyline_pair::mark_smob (SCM)
 {