]> git.donarmstrong.com Git - lilypond.git/blob - lily/dimension-cache.cc
release: 1.5.29
[lilypond.git] / lily / dimension-cache.cc
1 /*   
2   dimension-cache.cc --  implement Dimension_cache
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1998--2002 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"
13
14
15 Dimension_cache::Dimension_cache (Dimension_cache const &d)
16 {
17   init ();
18   dimension_ = d.dimension_;
19
20   offset_ = d.offset_;
21   offset_callbacks_ = d.offset_callbacks_;
22   offsets_left_ = d.offsets_left_;
23   parent_l_ = d.parent_l_;  
24 }
25
26 Dimension_cache::Dimension_cache ()
27 {
28   init ();
29 }
30
31 void
32 Dimension_cache::init ()
33 {
34   dimension_ = SCM_EOL;
35
36   offsets_left_ = 0;
37   offset_callbacks_ = SCM_EOL;
38   offset_ =0.0;
39   
40   parent_l_ =0;
41 }
42
43
44
45
46
47
48