X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=lily%2Fskyline-pair.cc;h=2a3b26ff9e81a0512268b639c2a236d547fdcf70;hb=1b11dc0cb1bec0e353773aac6b8afba9030f88c4;hp=100061a19c01aeb1c59d1eb5e826c70fbafefa41;hpb=19e6facfeb5c2809ea8099bfaa81339cc44b04b3;p=lilypond.git diff --git a/lily/skyline-pair.cc b/lily/skyline-pair.cc index 100061a19c..2a3b26ff9e 100644 --- a/lily/skyline-pair.cc +++ b/lily/skyline-pair.cc @@ -1,10 +1,21 @@ -/* - skyline-pair.cc -- implement Skyline_pair - - source file of the GNU LilyPond music typesetter - - (c) 2008 Han-Wen Nienhuys - +/* + This file is part of LilyPond, the GNU music typesetter. + + Copyright (C) 2008--2011 Han-Wen Nienhuys + + + 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 . */ #include "skyline-pair.hh" @@ -68,21 +79,20 @@ Skyline_pair::print_points () const 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];