]> git.donarmstrong.com Git - lilypond.git/blob - lily/dimension-cache.cc
release: 1.3.54
[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--2000 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 "score-element.hh"
13
14
15 Dimension_cache::Dimension_cache (Dimension_cache const &d)
16 {
17   init();
18   extent_callback_l_ = d.extent_callback_l_;
19   offset_ = d.offset_;
20   off_callbacks_ = d.off_callbacks_;
21   parent_l_ = d.parent_l_;  
22 }
23
24 Dimension_cache::Dimension_cache ()
25 {
26   init();
27 }
28
29 void
30 Dimension_cache::init()
31 {
32   extent_callback_l_ =0;
33   offset_ =0.0;
34   offset_ =0.0;
35   
36   dim_.set_empty ();
37   parent_l_ =0;
38   valid_b_ = false;
39 }
40
41
42
43
44
45
46