X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fcolumn-x-positions.cc;h=caaf0895b30688e1e07097d027b26022069df95a;hb=0b544cfb7332615ef809b71b57ab656741311ae1;hp=91c616fcb079c0b43163f19288693bad34a0deb0;hpb=d1965f31e75a5e1e9faeb995ef2d37ce5fb3ff85;p=lilypond.git diff --git a/lily/column-x-positions.cc b/lily/column-x-positions.cc index 91c616fcb0..caaf0895b3 100644 --- a/lily/column-x-positions.cc +++ b/lily/column-x-positions.cc @@ -1,47 +1,26 @@ /* - colhpos.cc -- implement Column_x_positions + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 1997--2014 Han-Wen Nienhuys - (c) 1997--1999 Han-Wen Nienhuys -*/ - -#include "column-x-positions.hh" -#include "simple-spacer.hh" // ugh -#include "real.hh" -#include "debug.hh" - -Column_x_positions::Column_x_positions() -{ - energy_f_ = infinity_f; - satisfies_constraints_b_ = false; - spacer_l_ =0; -} + 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. -Column_x_positions::~Column_x_positions() -{ + 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 . +*/ -void -Column_x_positions::add_paper_column (Paper_column*c) -{ - cols_.push (c); -} +#include "column-x-positions.hh" -void -Column_x_positions::print() const +Column_x_positions::Column_x_positions () { -#ifndef NPRINT - DEBUG_OUT << "energy : " << energy_f_ << '\n'; - DEBUG_OUT << "line of " << config_.size() << " cols\n"; -#endif + satisfies_constraints_ = true; + force_ = 0; } - - - - - - - -