+++ /dev/null
-/*
- axis-group.cc -- implement Axis_group_administration
-
- source file of the GNU LilyPond music typesetter
-
- (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
-*/
-#include "interval.hh"
-#include "axis-group-administration.hh"
-#include "score-elem.hh"
-#include "debug.hh"
-
-/** don't copy anything: an element can only be in one
- Axis_group_element at one time. */
-Axis_group_administration::Axis_group_administration (Axis_group_administration const&)
-{
-}
-
-bool
-Axis_group_administration::contains_b (Score_elem const *e) const
-{
- return elem_l_arr_.find_l (e);
-}
-
-Interval
-Axis_group_administration::extent (Axis axis) const
-{
- Interval r;
- for (int i=0; i < elem_l_arr_.size(); i++)
- r.unite (elem_l_arr_[i]->extent (axis));
- return r;
-}
-
-void
-Axis_group_administration::add_element (Score_elem*e,
- Axis_group_element*g, Axis a1, Axis a2)
-{
- Axis_group_element *& g1=e->axis_group_l_a_[a1];
- Axis_group_element *& g2 = e->axis_group_l_a_[a2];
-
- assert (!g1 || g1 == g);
- assert (!g2 || g2 == g);
- g1 = g;
- g2 = g;
- elem_l_arr_.push (e);
-}
-
-
-
-void
-Axis_group_administration::remove_element (Score_elem*e, Axis a1, Axis a2)
-{
- assert (contains_b (e));
- elem_l_arr_.unordered_substitute (e,0);
-
- e->axis_group_l_a_[a1] = 0;
- e->axis_group_l_a_[a2] = 0;
-}
-
-void
-Axis_group_administration::remove_all (Axis a1, Axis a2)
-{
- for (int i=0; i < elem_l_arr_.size(); i++)
- {
- Score_elem*e=elem_l_arr_[i];
- e->axis_group_l_a_[a1] = 0;
- e->axis_group_l_a_[a2] = 0;
- }
- elem_l_arr_.clear();
-}
-
-
-void
-Axis_group_administration::print() const
-{
-#ifndef NPRINT
- for (int i=0; i < elem_l_arr_.size(); i++)
- DOUT << elem_l_arr_[i]->name() << ' ';
-#endif
-}
+++ /dev/null
-/*
- input-translator.hh -- declare Input_translator
-
- source file of the GNU LilyPond music typesetter
-
- (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
-*/
-
-
-#ifndef INPUT_TRANSLATOR_HH
-#define INPUT_TRANSLATOR_HH
-
-#include "plist.hh"
-#include "string.hh"
-#include "lily-proto.hh"
-#include "input.hh"
-#include "string.hh"
-#error
-#include "varray.hh"
-
-struct Input_translator_list : public Pointer_list<Input_translator*>
-{
- Input_translator_list (Input_translator_list const &);
- Input_translator_list(){}
- ~Input_translator_list(){}
-};
-
-/** Define a intereter for music. This is an runtime interface to the
- typesystem */
-class Input_translator : public Input {
-public:
- Input_translator_list contains_itrans_p_list_;
- Array<String> consists_str_arr_;
- Array<String> alias_str_arr_;
- String base_str_;
- String type_str_;
- String default_id_str_;
-
- void add (Input_translator *);
- bool is_name_b (String);
- bool accept_req_b();
- bool accepts_b (String);
- void print() const;
- Translator_group * get_group_translator_p();
- Input_translator * get_default_itrans_l();
- Input_translator * recursive_find (String nm);
- Input_translator * find_itrans_l (String nm);
-};
-
-#endif // Input_translator_HH