2 grob-array.hh -- declare Grob_array
4 source file of the GNU LilyPond music typesetter
6 (c) 2005--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
12 #include "lily-proto.hh"
14 #include "std-vector.hh"
21 DECLARE_SIMPLE_SMOBS (Grob_array,);
25 bool ordered () const { return ordered_; }
26 void set_ordered (bool b) { ordered_ = b; }
28 Spanner *spanner (vsize i);
29 Grob *grob (vsize i) { return grobs_.at (i); }
30 vsize size () const { return grobs_.size (); }
33 void add (Grob *x) { grobs_.push_back (x); }
34 void set_array (vector<Grob*> const &src);
35 vector<Grob*> &array_reference ();
36 vector<Grob*> const &array () const;
37 static SCM make_array ();
40 DECLARE_UNSMOB (Grob_array, grob_array);
42 vector<Grob*> const &ly_scm2link_array (SCM x);
43 SCM grob_list_to_grob_array (SCM lst);
45 #endif /* GROB_ARRAY_HH */