]> git.donarmstrong.com Git - lilypond.git/blob - lily/dimension-cache.cc
patch::: 1.3.93.jcn2
[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   offset_callbacks_ = d.offset_callbacks_;
21   offsets_left_ = d.offsets_left_;
22   parent_l_ = d.parent_l_;  
23 }
24
25 Dimension_cache::Dimension_cache ()
26 {
27   init();
28 }
29
30 void
31 Dimension_cache::init()
32 {
33   extent_callback_l_ =0;
34   offsets_left_ = 0;
35   offset_callbacks_ = SCM_EOL;
36   offset_ =0.0;
37   
38   dim_.set_empty ();
39   parent_l_ =0;
40   valid_b_ = false;
41 }
42
43
44
45
46
47
48