(process_acknowledged_grobs):
[lilypond.git] / lily / dimension-cache.cc
blobc98b949fd31a81bc3a79571f55999d6e45471c25
1 /*
2 dimension-cache.cc -- implement Dimension_cache
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8 #include <math.h>
9 #include "warn.hh"
10 #include "dimension-cache.hh"
11 #include "parray.hh"
12 #include "grob.hh"
15 Dimension_cache::Dimension_cache (Dimension_cache const &d)
17 init ();
18 dimension_ = d.dimension_;
20 offset_ = d.offset_;
21 offset_callbacks_ = d.offset_callbacks_;
22 offsets_left_ = d.offsets_left_;
23 parent_ = d.parent_;
26 Dimension_cache::Dimension_cache ()
28 init ();
31 void
32 Dimension_cache::init ()
34 dimension_ = SCM_EOL;
36 offsets_left_ = 0;
37 offset_callbacks_ = SCM_EOL;
38 offset_ =0.0;
40 parent_ =0;