These are manual changes in preparation for an automated removal of
"using namespace std;".
Mostly these are additions of using-declarations for commonly used
types and containers (e.g. std::string, std::vector) to *.cc files so
that they will continue to build after the big removal.
256 files changed:
#include <sys/stat.h>
#endif
#include <sys/stat.h>
#endif
+using std::string;
+using std::vector;
+
#ifndef ROOTSEP
#define ROOTSEP ':'
#endif
#ifndef ROOTSEP
#define ROOTSEP ':'
#endif
+using std::string;
+using std::vector;
+
vector<string>
File_path::directories () const
{
vector<string>
File_path::directories () const
{
#include <libintl.h>
#endif
#include <libintl.h>
#endif
long
Getopt_long::get_argument_index ()
{
long
Getopt_long::get_argument_index ()
{
using namespace std;
typedef size_t ssize;
using namespace std;
typedef size_t ssize;
-#define NPOS string::npos
+#define NPOS std::string::npos
string to_string (const string&);
string to_string (char c, int n = 1);
string to_string (const string&);
string to_string (char c, int n = 1);
#include <libintl.h>
#endif
#include <libintl.h>
#endif
string
_ (char const *ch)
{
string
_ (char const *ch)
{
#include "interval-set.hh"
#include "interval-set.hh"
/*
A union of intervals in the real line.
/*
A union of intervals in the real line.
template<>
Real
Interval_t<Real>::infinity ()
template<>
Real
Interval_t<Real>::infinity ()
#ifndef STANDALONE
string
Offset::to_string () const
#ifndef STANDALONE
string
Offset::to_string () const
#include <cmath>
using namespace std;
#include <cmath>
using namespace std;
/*
Een beter milieu begint bij uzelf. Hergebruik!
/*
Een beter milieu begint bij uzelf. Hergebruik!
#include "string-convert.hh"
#include "libc-extension.hh"
#include "string-convert.hh"
#include "libc-extension.hh"
double
Rational::to_double () const
{
double
Rational::to_double () const
{
#include "string-convert.hh"
#include "std-vector.hh"
#include "string-convert.hh"
#include "std-vector.hh"
+using std::string;
+using std::vector;
+
string
to_string (const string &s)
{
string
to_string (const string &s)
{
#include "rational.hh"
#include "std-vector.hh"
#include "rational.hh"
#include "std-vector.hh"
/**
A safe length for stringconversion buffers.
/**
A safe length for stringconversion buffers.
#include "yaffut-parameters.hh"
using namespace std;
#include "yaffut-parameters.hh"
using namespace std;
string slashify (string file_name);
string slashify (string file_name);
#include "yaffut.hh"
#include "config.hh"
#include "yaffut.hh"
#include "config.hh"
TEST (File_path, Find)
{
char const *extensions[] = {"ly", "", 0};
TEST (File_path, Find)
{
char const *extensions[] = {"ly", "", 0};
#include "yaffut.hh"
using namespace std;
#include "yaffut.hh"
using namespace std;
FUNC (interval_set_union)
{
FUNC (interval_set_union)
{
#include "yaffut.hh"
using namespace std;
#include "yaffut.hh"
using namespace std;
template<typename T>
void
template<typename T>
void
#include "yaffut.hh"
using namespace std;
#include "yaffut.hh"
using namespace std;
+using std::string;
+using std::vector;
FUNC (string_split_join)
{
FUNC (string_split_join)
{
#include "international.hh"
using namespace std;
#include "international.hh"
using namespace std;
+using std::string;
+using std::vector;
/** We have several different loglevels, each with its own message function(s):
ERROR: error, non_fatal_error, programming_error
/** We have several different loglevels, each with its own message function(s):
ERROR: error, non_fatal_error, programming_error
#include "translator.icc"
#include "translator.icc"
class Accidental_entry
{
public:
class Accidental_entry
{
public:
#include "stream-event.hh"
#include "warn.hh"
#include "stream-event.hh"
#include "warn.hh"
static Pitch *
accidental_pitch (Grob *acc)
{
static Pitch *
accidental_pitch (Grob *acc)
{
#include "system.hh"
#include "skyline-pair.hh"
#include "system.hh"
#include "skyline-pair.hh"
+using std::string;
+using std::vector;
+
Stencil
parenthesize (Grob *me, Stencil m)
{
Stencil
parenthesize (Grob *me, Stencil m)
{
#include "system.hh"
#include "warn.hh"
#include "system.hh"
#include "warn.hh"
MAKE_SCHEME_CALLBACK (Align_interface, align_to_minimum_distances, 1);
SCM
Align_interface::align_to_minimum_distances (SCM smob)
MAKE_SCHEME_CALLBACK (Align_interface, align_to_minimum_distances, 1);
SCM
Align_interface::align_to_minimum_distances (SCM smob)
#include "main.hh"
#include "protected-scm.hh"
#include "main.hh"
#include "protected-scm.hh"
All_font_metrics *all_fonts_global = 0;
Protected_scm all_fonts_global_scm;
All_font_metrics *all_fonts_global = 0;
Protected_scm all_fonts_global_scm;
#include "scm-hash.hh"
#include "warn.hh"
#include "scm-hash.hh"
#include "warn.hh"
Index_to_charcode_map const *
All_font_metrics::get_index_to_charcode_map (const string &filename,
int face_index,
Index_to_charcode_map const *
All_font_metrics::get_index_to_charcode_map (const string &filename,
int face_index,
#include "warn.hh"
#include "context.hh"
#include "warn.hh"
#include "context.hh"
/*
Return an articulation list given a note_events vector and an
articulation_events vector.
/*
Return an articulation list given a note_events vector and an
articulation_events vector.
#include "translator-group.hh"
#include "context.hh"
#include "translator-group.hh"
#include "context.hh"
Audio_element_info::Audio_element_info (Audio_element *s, Stream_event *r)
{
elem_ = s;
Audio_element_info::Audio_element_info (Audio_element *s, Stream_event *r)
{
elem_ = s;
#include "midi-item.hh"
#include "audio-column.hh"
#include "midi-item.hh"
#include "audio-column.hh"
Audio_instrument::Audio_instrument (string instrument_string)
{
str_ = instrument_string;
Audio_instrument::Audio_instrument (string instrument_string)
{
str_ = instrument_string;
#include "translator.icc"
#include "translator.icc"
class Auto_beam_engraver : public Engraver
{
TRANSLATOR_DECLARATIONS (Auto_beam_engraver);
class Auto_beam_engraver : public Engraver
{
TRANSLATOR_DECLARATIONS (Auto_beam_engraver);
#include "change-iterator.hh"
#include "change-sequence-iterator.hh"
#include "change-iterator.hh"
#include "change-sequence-iterator.hh"
class Auto_change_iterator : public Change_sequence_iterator
{
public:
class Auto_change_iterator : public Change_sequence_iterator
{
public:
#include "translator.icc"
#include "translator.icc"
/**
Put stuff in a Spanner with an Axis_group_interface.
Use as last element of a context.
/**
Put stuff in a Spanner with an Axis_group_interface.
Use as last element of a context.
#include "grob.hh"
#include "grob-array.hh"
#include "grob.hh"
#include "grob-array.hh"
LY_DEFINE (ly_relative_group_extent, "ly:relative-group-extent",
3, 0, 0, (SCM elements, SCM common, SCM axis),
"Determine the extent of @var{elements} relative to @var{common} in the"
LY_DEFINE (ly_relative_group_extent, "ly:relative-group-extent",
3, 0, 0, (SCM elements, SCM common, SCM axis),
"Determine the extent of @var{elements} relative to @var{common} in the"
#include "warn.hh"
#include "unpure-pure-container.hh"
#include "warn.hh"
#include "unpure-pure-container.hh"
+using std::multimap;
+using std::pair;
+using std::string;
+using std::vector;
+
static bool
pure_staff_priority_less (Grob *const &g1, Grob *const &g2);
static bool
pure_staff_priority_less (Grob *const &g1, Grob *const &g2);
#include "translator.icc"
#include "translator.icc"
class Balloon_engraver : public Engraver
{
TRANSLATOR_DECLARATIONS (Balloon_engraver);
class Balloon_engraver : public Engraver
{
TRANSLATOR_DECLARATIONS (Balloon_engraver);
#include "translator.icc"
#include "translator.icc"
/*
generate bars. Either user ("|:"), or default (new measure)
*/
/*
generate bars. Either user ("|:"), or default (new measure)
*/
#include "translator.icc"
#include "translator.icc"
/*
TODO: detect the top staff (stavesFound), and acknowledge staff-group
system-start-delims. If we find these, and the top staff is in the
/*
TODO: detect the top staff (stavesFound), and acknowledge staff-group
system-start-delims. If we find these, and the top staff is in the
#include "pointer-group-interface.hh"
#include "stem.hh"
#include "pointer-group-interface.hh"
#include "stem.hh"
class Beam_collision_engraver : public Engraver
{
protected:
class Beam_collision_engraver : public Engraver
{
protected:
#include "warn.hh"
#include "string-convert.hh"
#include "warn.hh"
#include "string-convert.hh"
+using std::set;
+using std::string;
+using std::vector;
+
Real
get_detail (SCM alist, SCM sym, Real def)
{
Real
get_detail (SCM alist, SCM sym, Real def)
{
+using std::map;
+using std::string;
+using std::vector;
+
Beam_stem_segment::Beam_stem_segment ()
{
max_connect_ = 1000; // infinity
Beam_stem_segment::Beam_stem_segment ()
{
max_connect_ = 1000; // infinity
#include "beaming-pattern.hh"
#include "misc.hh"
#include "beaming-pattern.hh"
#include "misc.hh"
/*
Represents a stem belonging to a beam. Sometimes (for example, if the stem
belongs to a rest and stemlets aren't used) the stem will be invisible.
/*
Represents a stem belonging to a beam. Sometimes (for example, if the stem
belongs to a rest and stemlets aren't used) the stem will be invisible.
#include "warn.hh"
#include "libc-extension.hh"
#include "warn.hh"
#include "libc-extension.hh"
Real binomial_coefficient_3[]
=
{
Real binomial_coefficient_3[]
=
{
#include "side-position-interface.hh"
#include "warn.hh"
#include "side-position-interface.hh"
#include "warn.hh"
+using std::string;
+using std::vector;
+
/*
This is tricky: we cannot modify 'elements, since callers are
iterating the same list. Reordering the list in-place, or resetting
/*
This is tricky: we cannot modify 'elements, since callers are
iterating the same list. Reordering the list in-place, or resetting
#include "system.hh"
#include "grob-array.hh"
#include "system.hh"
#include "grob-array.hh"
static SCM break_criterion;
void
set_break_subsititution (SCM criterion)
static SCM break_criterion;
void
set_break_subsititution (SCM criterion)
#include "music.hh"
#include "warn.hh"
#include "music.hh"
#include "warn.hh"
void
Change_iterator::error (const string &reason)
{
void
Change_iterator::error (const string &reason)
{
#include "context.hh"
#include "music.hh"
#include "context.hh"
#include "music.hh"
Change_sequence_iterator::Change_sequence_iterator () :
change_list_(SCM_EOL)
{
Change_sequence_iterator::Change_sequence_iterator () :
change_list_(SCM_EOL)
{
#include "translator.icc"
#include "translator.icc"
class Chord_name_engraver : public Engraver
{
TRANSLATOR_DECLARATIONS (Chord_name_engraver);
class Chord_name_engraver : public Engraver
{
TRANSLATOR_DECLARATIONS (Chord_name_engraver);
#include "translator.icc"
#include "translator.icc"
/**
This acknowledges repeated music with "tremolo" style. It typesets
/**
This acknowledges repeated music with "tremolo" style. It typesets
struct Clef_modifier
{
DECLARE_SCHEME_CALLBACK (calc_parent_alignment, (SCM));
struct Clef_modifier
{
DECLARE_SCHEME_CALLBACK (calc_parent_alignment, (SCM));
#include "item.hh"
#include "stencil.hh"
#include "item.hh"
#include "stencil.hh"
MAKE_SCHEME_CALLBACK (Clef, calc_glyph_name, 1);
SCM
Clef::calc_glyph_name (SCM smob)
MAKE_SCHEME_CALLBACK (Clef, calc_glyph_name, 1);
SCM
Clef::calc_glyph_name (SCM smob)
#include "translator.icc"
#include "translator.icc"
class Cluster_spanner_engraver : public Engraver
{
class Cluster_spanner_engraver : public Engraver
{
#include "staff-symbol-referencer.hh"
#include "warn.hh"
#include "staff-symbol-referencer.hh"
#include "warn.hh"
+using std::string;
+using std::vector;
+
/*
TODO: Add support for cubic spline segments.
*/
/*
TODO: Add support for cubic spline segments.
*/
#include "staff-symbol-referencer.hh"
#include "stream-event.hh"
#include "staff-symbol-referencer.hh"
#include "stream-event.hh"
/*
* This abstract class serves as common superclass for all ligature
* engravers thet produce a single connected graphical object of fixed
/*
* This abstract class serves as common superclass for all ligature
* engravers thet produce a single connected graphical object of fixed
#include "translator.icc"
#include "translator.icc"
class Collision_engraver : public Engraver
{
Item *col_;
class Collision_engraver : public Engraver
{
Item *col_;
#include "translator.icc"
#include "translator.icc"
#include "translator.icc"
#include "translator.icc"
#include "translator.icc"
#include "translator.icc"
class Concurrent_hairpin_engraver : public Engraver
{
public:
class Concurrent_hairpin_engraver : public Engraver
{
public:
#include "system.hh"
#include "warn.hh"
#include "system.hh"
#include "warn.hh"
/*
We use the following optimal substructure. Let W (A) be our weight function.
/*
We use the following optimal substructure. Let W (A) be our weight function.
#include "translator.hh"
#include "warn.hh"
#include "translator.hh"
#include "warn.hh"
+using std::set;
+using std::string;
+using std::vector;
+
Context_def::Context_def ()
{
context_aliases_ = SCM_EOL;
Context_def::Context_def ()
{
context_aliases_ = SCM_EOL;
#include "context.hh"
#include "music.hh"
#include "context.hh"
#include "music.hh"
class Context_specced_music_iterator : public Music_wrapper_iterator
{
public:
class Context_specced_music_iterator : public Music_wrapper_iterator
{
public:
#include "warn.hh"
#include "lily-imports.hh"
#include "warn.hh"
#include "lily-imports.hh"
+using std::string;
+using std::vector;
+
bool
Context::is_removable () const
{
bool
Context::is_removable () const
{
#include "translator.icc"
#include "translator.icc"
class Control_track_performer : public Performer
{
Audio_staff *control_track_;
class Control_track_performer : public Performer
{
Audio_staff *control_track_;
#include "translator.icc"
#include "translator.icc"
/*
* This class implements an engraver for custos symbols.
*
/*
* This class implements an engraver for custos symbols.
*
#include "staff-symbol-referencer.hh"
#include "warn.hh"
#include "staff-symbol-referencer.hh"
#include "warn.hh"
MAKE_SCHEME_CALLBACK (Custos, print, 1);
SCM
Custos::print (SCM smob)
MAKE_SCHEME_CALLBACK (Custos, print, 1);
SCM
Custos::print (SCM smob)
#include "staff-symbol-referencer.hh"
#include "stem.hh"
#include "staff-symbol-referencer.hh"
#include "stem.hh"
+using std::set;
+using std::vector;
+
MAKE_SCHEME_CALLBACK (Dot_column, calc_positioning_done, 1);
SCM
Dot_column::calc_positioning_done (SCM smob)
MAKE_SCHEME_CALLBACK (Dot_column, calc_positioning_done, 1);
SCM
Dot_column::calc_positioning_done (SCM smob)
#include "dot-configuration.hh"
#include "skyline.hh"
#include "dot-configuration.hh"
#include "skyline.hh"
Dot_formatting_problem::~Dot_formatting_problem ()
{
delete best_;
Dot_formatting_problem::~Dot_formatting_problem ()
{
delete best_;
#include "staff-symbol-referencer.hh"
#include "international.hh"
#include "staff-symbol-referencer.hh"
#include "international.hh"
MAKE_SCHEME_CALLBACK (Dots, print, 1);
SCM
Dots::print (SCM d)
MAKE_SCHEME_CALLBACK (Dots, print, 1);
SCM
Dots::print (SCM d)
#include "translator.icc"
#include "translator.icc"
class Drum_notes_engraver : public Engraver
{
vector<Item *> scripts_;
class Drum_notes_engraver : public Engraver
{
vector<Item *> scripts_;
#include "translator.icc"
#include "warn.hh"
#include "translator.icc"
#include "warn.hh"
class Drum_note_performer : public Performer
{
public:
class Drum_note_performer : public Performer
{
public:
#include "misc.hh"
#include "lily-proto.hh"
#include "misc.hh"
#include "lily-proto.hh"
int
Duration::compare (Duration const &left, Duration const &right)
int
Duration::compare (Duration const &left, Duration const &right)
#include "translator.icc"
#include "translator.icc"
+using std::set;
+using std::vector;
+
class Dynamic_align_engraver : public Engraver
{
TRANSLATOR_DECLARATIONS (Dynamic_align_engraver);
class Dynamic_align_engraver : public Engraver
{
TRANSLATOR_DECLARATIONS (Dynamic_align_engraver);
#include "translator.icc"
#include "translator.icc"
class Dynamic_engraver : public Engraver
{
TRANSLATOR_DECLARATIONS (Dynamic_engraver);
class Dynamic_engraver : public Engraver
{
TRANSLATOR_DECLARATIONS (Dynamic_engraver);
#include "translator.icc"
#include "translator.icc"
class Episema_engraver : public Engraver
{
public:
class Episema_engraver : public Engraver
{
public:
#include "translator.icc"
#include "translator.icc"
struct Figure_group
{
Spanner *group_;
struct Figure_group
{
Spanner *group_;
#include "translator.icc"
#include "axis-group-interface.hh"
#include "translator.icc"
#include "axis-group-interface.hh"
class Figured_bass_position_engraver : public Engraver
{
TRANSLATOR_DECLARATIONS (Figured_bass_position_engraver);
class Figured_bass_position_engraver : public Engraver
{
TRANSLATOR_DECLARATIONS (Figured_bass_position_engraver);
#include "file-name-map.hh"
#include "lily-guile.hh"
#include "file-name-map.hh"
#include "lily-guile.hh"
+using std::map;
+using std::string;
+
map<string, string> file_name_map_global;
string
map<string, string> file_name_map_global;
string
#include "translator.icc"
#include "translator.icc"
/**
Find potentially colliding scripts, and put them in a
Fingering_column, that will fix the columns. */
/**
Find potentially colliding scripts, and put them in a
Fingering_column, that will fix the columns. */
#include "item.hh"
#include "paper-column.hh"
#include "item.hh"
#include "paper-column.hh"
#define EPS 1e-5
struct Fingering_and_offset
#define EPS 1e-5
struct Fingering_and_offset
#include "translator.icc"
#include "translator.icc"
class Fingering_engraver : public Engraver
{
vector<Stream_event *> events_;
class Fingering_engraver : public Engraver
{
vector<Stream_event *> events_;
#include "stencil.hh"
#include "warn.hh"
#include "stencil.hh"
#include "warn.hh"
#include <fontconfig/fontconfig.h>
#include <fontconfig/fontconfig.h>
string
display_fontset (FcFontSet *fs)
{
string
display_fontset (FcFontSet *fs)
{
#include "main.hh"
#include "warn.hh"
#include "main.hh"
#include "warn.hh"
+using std::string;
+using std::vector;
+
FcConfig *font_config_global = 0;
void
FcConfig *font_config_global = 0;
void
#include "stencil.hh"
#include "warn.hh"
#include "stencil.hh"
#include "warn.hh"
Real
Font_metric::design_size () const
Real
Font_metric::design_size () const
#include "translator.icc"
#include "translator.icc"
class Footnote_engraver : public Engraver
{
TRANSLATOR_DECLARATIONS (Footnote_engraver);
class Footnote_engraver : public Engraver
{
TRANSLATOR_DECLARATIONS (Footnote_engraver);
string
freetype_error_string (FT_Error code)
{
string
freetype_error_string (FT_Error code)
{
#include "translator.icc"
#include "translator.icc"
/**
make (guitar-like) tablature note
*/
/**
make (guitar-like) tablature note
*/
#include "stream-event.hh"
#include "unpure-pure-container.hh"
#include "stream-event.hh"
#include "unpure-pure-container.hh"
+using std::map;
+using std::string;
+
static SCM doc_hash_table;
void
static SCM doc_hash_table;
void
#include "version.hh"
#include "warn.hh"
#include "version.hh"
#include "warn.hh"
+using std::string;
+using std::vector;
+
/* Declaration of log function(s) */
SCM ly_progress (SCM, SCM);
/* Declaration of log function(s) */
SCM ly_progress (SCM, SCM);
#include "translator.icc"
#include "translator.icc"
+using std::string;
+using std::vector;
+
class Glissando_engraver : public Engraver
{
public:
class Glissando_engraver : public Engraver
{
public:
#include "output-def.hh"
#include "warn.hh"
#include "output-def.hh"
#include "warn.hh"
Global_context::Global_context (Output_def *o)
: Context ()
{
Global_context::Global_context (Output_def *o)
: Context ()
{
static vector<Global_ctor> *ctor_global_statics_;
void
static vector<Global_ctor> *ctor_global_statics_;
void
#include "file-path.hh"
#include "main.hh"
#include "file-path.hh"
#include "main.hh"
+using std::string;
+using std::vector;
+
/*
* Global options that can be overridden through command line.
*/
/*
* Global options that can be overridden through command line.
*/
/* ASSIGN_EVENT_ONCE */
#include "translator.icc"
/* ASSIGN_EVENT_ONCE */
#include "translator.icc"
/*
* This abstract class is the common superclass for all ligature
* engravers for Gregorian chant notation. It cares for the musical
/*
* This abstract class is the common superclass for all ligature
* engravers for Gregorian chant notation. It cares for the musical
void check_prefix (const string &name, int mask, int prefix_set, string *str)
{
if (prefix_set & mask)
void check_prefix (const string &name, int mask, int prefix_set, string *str)
{
if (prefix_set & mask)
#include "translator.icc"
#include "translator.icc"
class Grid_line_span_engraver : public Engraver
{
Item *spanline_;
class Grid_line_span_engraver : public Engraver
{
Item *spanline_;
#include "item.hh"
#include "spanner.hh"
#include "item.hh"
#include "spanner.hh"
Item *
Grob_array::item (vsize i)
Item *
Grob_array::item (vsize i)
#include "stream-event.hh"
#include "translator-group.hh"
#include "stream-event.hh"
#include "translator-group.hh"
Grob_info::Grob_info (Translator *t, Grob *g)
{
origin_trans_ = t;
Grob_info::Grob_info (Translator *t, Grob *g)
{
origin_trans_ = t;
#include "warn.hh"
#include "misc.hh"
#include "warn.hh"
#include "misc.hh"
SCM add_interface (char const *cxx_name,
char const *descr,
char const *vars)
SCM add_interface (char const *cxx_name,
char const *descr,
char const *vars)
#include "translator.icc"
#include "translator.icc"
struct Grob_pq_entry
{
Grob *grob_;
struct Grob_pq_entry
{
Grob *grob_;
#include "warn.hh"
#include "lily-imports.hh"
#include "warn.hh"
#include "lily-imports.hh"
+using std::set;
+using std::string;
+using std::vector;
Grob *
Grob::clone () const
Grob *
Grob::clone () const
#include "smobs.hh"
#include "lily-imports.hh"
#include "smobs.hh"
#include "lily-imports.hh"
#include "spanner.hh"
#include "warn.hh"
#include "spanner.hh"
#include "warn.hh"
MAKE_SCHEME_CALLBACK (Hara_kiri_group_spanner, y_extent, 1);
SCM
Hara_kiri_group_spanner::y_extent (SCM smob)
MAKE_SCHEME_CALLBACK (Hara_kiri_group_spanner, y_extent, 1);
SCM
Hara_kiri_group_spanner::y_extent (SCM smob)
#include "translator.icc"
#include "translator.icc"
class Horizontal_bracket_engraver : public Engraver
{
public:
class Horizontal_bracket_engraver : public Engraver
{
public:
#include "spanner.hh"
#include "item.hh"
#include "spanner.hh"
#include "item.hh"
Stencil
Horizontal_bracket::make_bracket (Grob *me,
Real length,
Stencil
Horizontal_bracket::make_bracket (Grob *me,
Real length,
#include "sources.hh"
#include "warn.hh"
#include "sources.hh"
#include "warn.hh"
#ifndef YY_BUF_SIZE
#define YY_BUF_SIZE 16384
#endif
#ifndef YY_BUF_SIZE
#define YY_BUF_SIZE 16384
#endif
#include "std-string.hh"
#include "input.hh"
#include "std-string.hh"
#include "input.hh"
LY_DEFINE (ly_input_warning, "ly:input-warning", 2, 0, 1, (SCM sip, SCM msg, SCM rest),
"Print @var{msg} as a GNU compliant warning message, pointing"
" to the location in @var{sip}. @var{msg} is interpreted"
LY_DEFINE (ly_input_warning, "ly:input-warning", 2, 0, 1, (SCM sip, SCM msg, SCM rest),
"Print @var{msg} as a GNU compliant warning message, pointing"
" to the location in @var{sip}. @var{msg} is interpreted"
#include "source-file.hh"
#include "std-string.hh"
#include "source-file.hh"
#include "std-string.hh"
/* Dummy input location for use if real one is missing. */
Input dummy_input_global;
/* Dummy input location for use if real one is missing. */
Input dummy_input_global;
#include "sources.hh"
#include "warn.hh"
#include "sources.hh"
#include "warn.hh"
Input::Input (Input const &i)
{
source_file_ = i.source_file_;
Input::Input (Input const &i)
{
source_file_ = i.source_file_;
#include "translator.icc"
#include "translator.icc"
class Instrument_name_engraver : public Engraver
{
public:
class Instrument_name_engraver : public Engraver
{
public:
#include "translator.icc"
#include "translator.icc"
class Keep_alive_together_engraver: public Engraver
{
vector<Grob *> group_spanners_;
class Keep_alive_together_engraver: public Engraver
{
vector<Grob *> group_spanners_;
#include "rational.hh"
#include "lily-imports.hh"
#include "rational.hh"
#include "lily-imports.hh"
struct Key_signature_interface
{
DECLARE_SCHEME_CALLBACK (print, (SCM));
struct Key_signature_interface
{
DECLARE_SCHEME_CALLBACK (print, (SCM));
#include "translator.icc"
#include "translator.icc"
class Kievan_ligature_engraver : public Coherent_ligature_engraver
{
class Kievan_ligature_engraver : public Coherent_ligature_engraver
{
#include "translator.icc"
#include "translator.icc"
class Laissez_vibrer_engraver : public Engraver
{
Stream_event *event_;
class Laissez_vibrer_engraver : public Engraver
{
Stream_event *event_;
void
minimise_least_squares (Real *coef, Real *offset,
vector<Offset> const &input)
void
minimise_least_squares (Real *coef, Real *offset,
vector<Offset> const &input)
#include "translator.icc"
#include "translator.icc"
class Ledger_line_engraver : public Engraver
{
Spanner *span_;
class Ledger_line_engraver : public Engraver
{
Spanner *span_;
#include "pointer-group-interface.hh"
#include "paper-column.hh"
#include "pointer-group-interface.hh"
#include "paper-column.hh"
+using std::map;
+using std::vector;
+
struct Ledger_line_spanner
{
DECLARE_SCHEME_CALLBACK (print, (SCM));
struct Ledger_line_spanner
{
DECLARE_SCHEME_CALLBACK (print, (SCM));
#include "warn.hh"
#include "lily-imports.hh"
#include "warn.hh"
#include "lily-imports.hh"
#include "warn.hh"
#include "lily-imports.hh"
#include "warn.hh"
#include "lily-imports.hh"
+using std::string;
+using std::vector;
+
#include "lily-parser.hh"
#include "ly-module.hh"
#include "lily-parser.hh"
#include "ly-module.hh"
static Keyword_ent the_key_tab[]
=
{
static Keyword_ent the_key_tab[]
=
{
#include "warn.hh"
#include "lily-imports.hh"
#include "warn.hh"
#include "lily-imports.hh"
LY_DEFINE (ly_parse_file, "ly:parse-file",
1, 0, 0, (SCM name),
"Parse a single @code{.ly} file."
LY_DEFINE (ly_parse_file, "ly:parse-file",
1, 0, 0, (SCM name),
"Parse a single @code{.ly} file."
#include "warn.hh"
#include "program-option.hh"
#include "warn.hh"
#include "program-option.hh"
Lily_parser::Lily_parser (Sources *sources)
{
Lily_parser::Lily_parser (Sources *sources)
{
#include "config.hh"
#include "version.hh"
#include "config.hh"
#include "version.hh"
string
version_string ()
{
string
version_string ()
{
#include "string-convert.hh"
#include "misc.hh"
#include "string-convert.hh"
#include "misc.hh"
+using std::string;
+using std::vector;
+
Lilypond_version::Lilypond_version (int major, int minor, int patch)
{
major_ = major;
Lilypond_version::Lilypond_version (int major, int minor, int patch)
{
major_ = major;
#include "output-def.hh"
#include "staff-symbol-referencer.hh"
#include "output-def.hh"
#include "staff-symbol-referencer.hh"
Stencil
Line_interface::make_arrow (Offset begin, Offset end,
Real thick,
Stencil
Line_interface::make_arrow (Offset begin, Offset end,
Real thick,
#include "main.hh"
#include "lily-guile.hh"
#include "main.hh"
#include "lily-guile.hh"
Stencil
Lookup::beam (Real slope, Real width, Real thick, Real blot)
{
Stencil
Lookup::beam (Real slope, Real width, Real thick, Real blot)
{
#include "music-iterator.hh"
#include "music.hh"
#include "music-iterator.hh"
#include "music.hh"
/*
This iterator is hairy. It tracks both lyric and melody contexts,
and has a complicated communication route, reading/writing
/*
This iterator is hairy. It tracks both lyric and melody contexts,
and has a complicated communication route, reading/writing
#include "translator.icc"
#include "translator.icc"
/**
Generate texts for lyric syllables. We only do one lyric at a time.
Multiple copies of this engraver should be used to do multiple voices.
/**
Generate texts for lyric syllables. We only do one lyric at a time.
Multiple copies of this engraver should be used to do multiple voices.
#include "stream-event.hh"
#include "translator.icc"
#include "stream-event.hh"
#include "translator.icc"
class Lyric_performer : public Performer
{
public:
class Lyric_performer : public Performer
{
public:
//string lilypond_datadir; // moved to global-data.cc
/* The jail specification: USER, GROUP, JAIL, DIR. */
//string lilypond_datadir; // moved to global-data.cc
/* The jail specification: USER, GROUP, JAIL, DIR. */
/* The option parser */
static Getopt_long *option_parser = 0;
/* The option parser */
static Getopt_long *option_parser = 0;
#endif /* defined(__x86__) || defined(__i386__) */
#endif /* defined(__x86__) || defined(__i386__) */
+using std::map;
+using std::string;
+using std::vector;
+
static void
env_var_info (FILE *out, char const *key)
/*
static void
env_var_info (FILE *out, char const *key)
/*
#include "grob.hh"
#include "pointer-group-interface.hh"
#include "grob.hh"
#include "pointer-group-interface.hh"
/*
TODO: this could be either item or spanner. For efficiency reasons,
let's take item for now.
/*
TODO: this could be either item or spanner. For efficiency reasons,
let's take item for now.
#include "translator.icc"
#include "translator.icc"
/*
* TODO: accidentals are aligned with the first note;
* they must appear ahead.
/*
* TODO: accidentals are aligned with the first note;
* they must appear ahead.
#include "staff-symbol-referencer.hh"
#include "warn.hh"
#include "staff-symbol-referencer.hh"
#include "warn.hh"
/*
draws one half a flexa, i.e. a portion corresponding to a single note.
this way coloration of the two notes building up the flexa can be
/*
draws one half a flexa, i.e. a portion corresponding to a single note.
this way coloration of the two notes building up the flexa can be
#include "std-string.hh"
#include "string-convert.hh"
#include "std-string.hh"
#include "string-convert.hh"
+using std::string;
+using std::vector;
+
Midi_track::Midi_track (int number, bool port)
: number_ (number)
{
Midi_track::Midi_track (int number, bool port)
: number_ (number)
{
#include "translator.icc"
#include "translator.icc"
/**
MIDI control function performer. Announces "set property" events on MIDI
context properties.
/**
MIDI control function performer. Announces "set property" events on MIDI
context properties.
#include "warn.hh"
#include "lily-imports.hh"
#include "warn.hh"
#include "lily-imports.hh"
#define PITCH_WHEEL_CENTER 0x2000
#define PITCH_WHEEL_SEMITONE 0X1000
#define PITCH_WHEEL_CENTER 0x2000
#define PITCH_WHEEL_SEMITONE 0X1000
#include "string-convert.hh"
#include "warn.hh"
#include "string-convert.hh"
#include "warn.hh"
Midi_stream::Midi_stream (const string &file_name)
{
file_name_string_ = file_name;
Midi_stream::Midi_stream (const string &file_name)
{
file_name_string_ = file_name;
#include "offset.hh"
#include "warn.hh"
#include "offset.hh"
#include "warn.hh"
+using std::string;
+using std::vector;
+
/*
Return the 2-log, rounded down
*/
/*
Return the 2-log, rounded down
*/
#include "main.hh"
#include "program-option.hh"
#include "main.hh"
#include "program-option.hh"
Modified_font_metric::Modified_font_metric (Font_metric *fm,
Real magnification)
{
Modified_font_metric::Modified_font_metric (Font_metric *fm,
Real magnification)
{
#include "translator.icc"
#include "translator.icc"
/**
The name says it all: make multi measure rests
*/
/**
The name says it all: make multi measure rests
*/
#include "translator.icc"
#include "translator.icc"
struct Finger_tuple
{
Grob *head_;
struct Finger_tuple
{
Grob *head_;
#include "stem.hh"
#include "warn.hh"
#include "stem.hh"
#include "warn.hh"
Real
check_meshing_chords (Grob *me,
Grob *clash_up, Grob *clash_down)
Real
check_meshing_chords (Grob *me,
Grob *clash_up, Grob *clash_down)
#include "staff-symbol-referencer.hh"
#include "warn.hh"
#include "staff-symbol-referencer.hh"
#include "warn.hh"
static Stencil
internal_print (Grob *me, string *font_char)
{
static Stencil
internal_print (Grob *me, string *font_char)
{
#include "translator.icc"
#include "translator.icc"
class Note_heads_engraver : public Engraver
{
vector<Stream_event *> note_evs_;
class Note_heads_engraver : public Engraver
{
vector<Stream_event *> note_evs_;
#include "translator.icc"
#include "translator.icc"
+using std::string;
+using std::vector;
+
class Note_name_engraver : public Engraver
{
public:
class Note_name_engraver : public Engraver
{
public:
#include "translator.icc"
#include "translator.icc"
class Note_performer : public Performer
{
public:
class Note_performer : public Performer
{
public:
#include "translator.icc"
#include "translator.icc"
class Note_spacing_engraver : public Engraver
{
typedef map <Context *, Grob *> Last_spacing_map;
class Note_spacing_engraver : public Engraver
{
typedef map <Context *, Grob *> Last_spacing_map;
#include "stem.hh"
#include "warn.hh"
#include "stem.hh"
#include "warn.hh"
/*
Adjust the ideal and minimum distance between note columns,
based on the notehead size, skylines, and optical illusions.
/*
Adjust the ideal and minimum distance between note columns,
based on the notehead size, skylines, and optical illusions.
#include "simple-spacer.hh"
#include "system.hh"
#include "simple-spacer.hh"
#include "system.hh"
One_line_page_breaking::One_line_page_breaking (Paper_book *pb)
: Page_breaking (pb, 0, 0)
{
One_line_page_breaking::One_line_page_breaking (Paper_book *pb)
: Page_breaking (pb, 0, 0)
{
#include "modified-font-metric.hh"
#include "open-type-font.hh"
#include "modified-font-metric.hh"
#include "open-type-font.hh"
LY_DEFINE (ly_font_sub_fonts, "ly:font-sub-fonts", 1, 0, 0,
(SCM font),
"Given the font metric @var{font} of an OpenType font, return the"
LY_DEFINE (ly_font_sub_fonts, "ly:font-sub-fonts", 1, 0, 0,
(SCM font),
"Given the font metric @var{font} of an OpenType font, return the"
#include "modified-font-metric.hh"
#include "warn.hh"
#include "modified-font-metric.hh"
#include "warn.hh"
+using std::map;
+using std::string;
+
FT_Byte *
load_table (char const *tag_str, FT_Face face, FT_ULong *length)
{
FT_Byte *
load_table (char const *tag_str, FT_Face face, FT_ULong *length)
{
#include "string-convert.hh"
#include "string-convert.hh"
Output_def::Output_def ()
{
scope_ = SCM_EOL;
Output_def::Output_def ()
{
scope_ = SCM_EOL;
#include "translator.icc"
#include "translator.icc"
class Output_property_engraver : public Engraver
{
class Output_property_engraver : public Engraver
{
#include "system.hh"
#include "warn.hh"
#include "system.hh"
#include "warn.hh"
+using std::pair;
+using std::vector;
+
/* for each forbidden page break, merge the systems around it into one
system. */
static vector<Line_details>
/* for each forbidden page break, merge the systems around it into one
system. */
static vector<Line_details>
#include "text-interface.hh"
#include "lily-imports.hh"
#include "text-interface.hh"
#include "lily-imports.hh"
/*
Returns the number of footnotes associated with a given line.
*/
/*
Returns the number of footnotes associated with a given line.
*/
#include "page-breaking.hh"
#include "warn.hh"
#include "page-breaking.hh"
#include "warn.hh"
void
Page_spacing::calc_force ()
{
void
Page_spacing::calc_force ()
{
#include "translator.icc"
#include "translator.icc"
+using std::string;
+using std::vector;
+
class Page_turn_event
{
public:
class Page_turn_event
{
public:
#include "system.hh"
#include "warn.hh"
#include "system.hh"
#include "warn.hh"
+using std::string;
+using std::vector;
+
template<typename T>
static bool
is_break (T *g)
template<typename T>
static bool
is_break (T *g)
#if HAVE_PANGO_FT2
#include "stencil.hh"
#if HAVE_PANGO_FT2
#include "stencil.hh"
Pango_font::Pango_font (PangoFT2FontMap *fontmap,
PangoFontDescription const *description,
Real output_scale)
Pango_font::Pango_font (PangoFT2FontMap *fontmap,
PangoFontDescription const *description,
Real output_scale)
#include "output-def.hh"
#include "pango-font.hh"
#include "output-def.hh"
#include "pango-font.hh"
PangoFontDescription *
properties_to_pango_description (SCM chain, Real text_size)
{
PangoFontDescription *
properties_to_pango_description (SCM chain, Real text_size)
{
#include "ly-module.hh"
#include "lily-imports.hh"
#include "ly-module.hh"
#include "lily-imports.hh"
+using std::string;
+using std::vector;
Paper_book::Paper_book ()
{
Paper_book::Paper_book ()
{
#include "translator.icc"
#include "translator.icc"
Paper_column_engraver::Paper_column_engraver ()
{
last_moment_.main_part_ = Rational (-1, 1);
Paper_column_engraver::Paper_column_engraver ()
{
last_moment_.main_part_ = Rational (-1, 1);
#include "text-interface.hh"
#include "warn.hh"
#include "text-interface.hh"
#include "warn.hh"
+using std::string;
+using std::vector;
+
Grob *
Paper_column::clone () const
{
Grob *
Paper_column::clone () const
{
#include "stencil.hh"
#include "warn.hh"
#include "stencil.hh"
#include "warn.hh"
LY_DEFINE (ly_make_paper_outputter, "ly:make-paper-outputter",
2, 0, 0, (SCM port, SCM format),
"Create an outputter that evaluates within"
LY_DEFINE (ly_make_paper_outputter, "ly:make-paper-outputter",
2, 0, 0, (SCM port, SCM format),
"Create an outputter that evaluates within"
#include "warn.hh"
#include "lily-imports.hh"
#include "warn.hh"
#include "lily-imports.hh"
Paper_outputter::Paper_outputter (SCM port, const string &format)
{
Paper_outputter::Paper_outputter (SCM port, const string &format)
{
#include "warn.hh"
#include "constrained-breaking.hh"
#include "warn.hh"
#include "constrained-breaking.hh"
Paper_score::Paper_score (Output_def *layout)
{
layout_ = layout;
Paper_score::Paper_score (Output_def *layout)
{
layout_ = layout;
#include "lily-imports.hh"
void
#include "lily-imports.hh"
void
-Lily_parser::parser_error (Input const *i, Lily_parser *parser, SCM *, const string &s)
+Lily_parser::parser_error (Input const *i, Lily_parser *parser, SCM *, const std::string &s)
{
parser->parser_error (*i, s);
}
{
parser->parser_error (*i, s);
}
#define _(x) gettext (x)
#endif
#define _(x) gettext (x)
#endif
static Music *make_music_with_input (SCM name, Input where);
SCM check_scheme_arg (Lily_parser *parser, Input loc,
static Music *make_music_with_input (SCM name, Input where);
SCM check_scheme_arg (Lily_parser *parser, Input loc,
#include "change-sequence-iterator.hh"
#include "context.hh"
#include "change-sequence-iterator.hh"
#include "context.hh"
class Part_combine_part_iterator : public Change_sequence_iterator
{
public:
class Part_combine_part_iterator : public Change_sequence_iterator
{
public:
#include "sequential-iterator.hh"
#include "lily-imports.hh"
#include "sequential-iterator.hh"
#include "lily-imports.hh"
class Percent_repeat_iterator : public Sequential_iterator
{
public:
class Percent_repeat_iterator : public Sequential_iterator
{
public:
#include "string-convert.hh"
#include "warn.hh"
#include "string-convert.hh"
#include "warn.hh"
Performance::Performance (bool ports)
: midi_ (0),
ports_ (ports),
Performance::Performance (bool ports)
: midi_ (0),
ports_ (ports),
#include "main.hh"
#include "warn.hh"
#include "main.hh"
#include "warn.hh"
+using std::string;
+using std::vector;
+
LY_DEFINE (ly_pfb_2_pfa, "ly:pfb->pfa",
1, 0, 0, (SCM pfb_file_name),
"Convert the contents of a Type@tie{}1 font in PFB format"
LY_DEFINE (ly_pfb_2_pfa, "ly:pfb->pfa",
1, 0, 0, (SCM pfb_file_name),
"Convert the contents of a Type@tie{}1 font in PFB format"
#include "translator.icc"
#include "translator.icc"
#include "translator.icc"
#include "translator.icc"
+using std::string;
+using std::vector;
+
enum Pedal_type {SOSTENUTO, SUSTAIN, UNA_CORDA, NUM_PEDAL_TYPES};
/**
enum Pedal_type {SOSTENUTO, SUSTAIN, UNA_CORDA, NUM_PEDAL_TYPES};
/**
Pitch::Pitch (int o, int n, Rational a)
{
notename_ = n;
Pitch::Pitch (int o, int n, Rational a)
{
notename_ = n;
#include "translator.icc"
#include "translator.icc"
class Pitched_trill_engraver : public Engraver
{
public:
class Pitched_trill_engraver : public Engraver
{
public:
#include "grob-array.hh"
#include "grob.hh"
#include "grob-array.hh"
#include "grob.hh"
int
Pointer_group_interface::count (Grob *me, SCM sym)
{
int
Pointer_group_interface::count (Grob *me, SCM sym)
{
#include "input.hh"
#include "profile.hh"
#include "input.hh"
#include "profile.hh"
const char Prob::type_p_name_[] = "ly:prob?";
const char Prob::type_p_name_[] = "ly:prob?";
#include "warn.hh"
#include "lily-imports.hh"
#include "warn.hh"
#include "lily-imports.hh"
+using std::string;
+using std::vector;
+
bool debug_skylines;
bool debug_property_callbacks;
bool debug_page_breaking_scoring;
bool debug_skylines;
bool debug_property_callbacks;
bool debug_page_breaking_scoring;
#include "program-option.hh"
#include "program-option.hh"
string
get_output_backend_name ()
{
string
get_output_backend_name ()
{
#include "translator.icc"
#include "translator.icc"
class Pure_from_neighbor_engraver : public Engraver
{
vector<Grob *> pure_relevants_;
class Pure_from_neighbor_engraver : public Engraver
{
vector<Grob *> pure_relevants_;
#include "spanner.hh"
#include "system.hh"
#include "spanner.hh"
#include "system.hh"
MAKE_SCHEME_CALLBACK (Pure_from_neighbor_interface, calc_pure_relevant_grobs, 1);
SCM
Pure_from_neighbor_interface::calc_pure_relevant_grobs (SCM smob)
MAKE_SCHEME_CALLBACK (Pure_from_neighbor_interface, calc_pure_relevant_grobs, 1);
SCM
Pure_from_neighbor_interface::calc_pure_relevant_grobs (SCM smob)
#include "international.hh"
#include "music.hh"
#include "international.hh"
#include "music.hh"
class Relative_octave_check
{
public:
class Relative_octave_check
{
public:
#include <winbase.h>
#endif
#include <winbase.h>
#endif
+using std::string;
+using std::vector;
+
#define FRAMEWORKDIR ".."
int
#define FRAMEWORKDIR ".."
int
#include "translator.icc"
#include "translator.icc"
#include "translator.icc"
#include "translator.icc"
class Repeat_tie_engraver : public Engraver
{
Stream_event *event_;
class Repeat_tie_engraver : public Engraver
{
Stream_event *event_;
#include "translator.icc"
#include "translator.icc"
class Rest_collision_engraver : public Engraver
{
protected:
class Rest_collision_engraver : public Engraver
{
protected:
#include "warn.hh"
#include "lily-imports.hh"
#include "warn.hh"
#include "lily-imports.hh"
MAKE_SCHEME_CALLBACK_WITH_OPTARGS (Rest_collision, force_shift_callback_rest, 2, 1, "");
SCM
Rest_collision::force_shift_callback_rest (SCM rest, SCM offset)
MAKE_SCHEME_CALLBACK_WITH_OPTARGS (Rest_collision, force_shift_callback_rest, 2, 1, "");
SCM
Rest_collision::force_shift_callback_rest (SCM rest, SCM offset)
#include "stencil.hh"
#include "grob.hh"
#include "stencil.hh"
#include "grob.hh"
// -> offset callback
MAKE_SCHEME_CALLBACK (Rest, y_offset_callback, 1);
SCM
// -> offset callback
MAKE_SCHEME_CALLBACK (Rest, y_offset_callback, 1);
SCM
#include "translator.icc"
#include "translator.icc"
/*
this engraver glues together stems, rests and note heads into a NoteColumn
grob.
/*
this engraver glues together stems, rests and note heads into a NoteColumn
grob.
#include "scale.hh"
#include "protected-scm.hh"
#include "scale.hh"
#include "protected-scm.hh"
/*
todo: put string <-> pitch here too.
/*
todo: put string <-> pitch here too.
#include "translator.icc"
#include "translator.icc"
/**
Find potentially colliding scripts, and put them in a
Script_column, that will fix the collisions. */
/**
Find potentially colliding scripts, and put them in a
Script_column, that will fix the collisions. */
+using std::map;
+using std::vector;
+
typedef map<Grob *, vector <Grob *> > Grob_scripts_map;
void
typedef map<Grob *, vector <Grob *> > Grob_scripts_map;
void
#include "translator.icc"
#include "translator.icc"
struct Script_tuple
{
Stream_event *event_;
struct Script_tuple
{
Stream_event *event_;
#include "translator.icc"
#include "translator.icc"
/**
Find potentially colliding scripts, and put them in a
Script_row
/**
Find potentially colliding scripts, and put them in a
Script_row
#include "item.hh"
#include "tie-formatting-problem.hh"
#include "item.hh"
#include "tie-formatting-problem.hh"
ADD_INTERFACE (Semi_tie_column,
"The interface for a column of l.v. (laissez vibrer) ties.",
ADD_INTERFACE (Semi_tie_column,
"The interface for a column of l.v. (laissez vibrer) ties.",
#include "translator.icc"
#include "translator.icc"
struct Spacings
{
Item *staff_spacing_;
struct Spacings
{
Item *staff_spacing_;
#include "stencil.hh"
#include "warn.hh"
#include "stencil.hh"
#include "warn.hh"
void
Separation_item::add_item (Grob *s, Item *i)
{
void
Separation_item::add_item (Grob *s, Item *i)
{
#include "warn.hh"
#include "unpure-pure-container.hh"
#include "warn.hh"
#include "unpure-pure-container.hh"
+using std::set;
+using std::string;
+using std::vector;
+
void
Side_position_interface::add_support (Grob *me, Grob *e)
{
void
Side_position_interface::add_support (Grob *me, Grob *e)
{
#include "warn.hh"
#include "simple-spacer.hh"
#include "warn.hh"
#include "simple-spacer.hh"
LY_DEFINE (ly_solve_spring_rod_problem, "ly:solve-spring-rod-problem",
4, 1, 0, (SCM springs, SCM rods, SCM length, SCM ragged),
"Solve a spring and rod problem for @var{count} objects, that"
LY_DEFINE (ly_solve_spring_rod_problem, "ly:solve-spring-rod-problem",
4, 1, 0, (SCM springs, SCM rods, SCM length, SCM ragged),
"Solve a spring and rod problem for @var{count} objects, that"
#include "spring.hh"
#include "warn.hh"
#include "spring.hh"
#include "warn.hh"
/*
A simple spacing constraint solver. The approach:
/*
A simple spacing constraint solver. The approach:
#include "international.hh"
#include "international.hh"
Skyline_pair::Skyline_pair ()
: skylines_ (Skyline (DOWN), Skyline (UP))
{
Skyline_pair::Skyline_pair ()
: skylines_ (Skyline (DOWN), Skyline (UP))
{
#include <deque>
#include <cstdio>
#include <deque>
#include <cstdio>
+using std::deque;
+using std::list;
+using std::vector;
+
/* A skyline is a sequence of non-overlapping buildings: something like
this:
_______
/* A skyline is a sequence of non-overlapping buildings: something like
this:
_______
#include "tie.hh"
#include "warn.hh"
#include "tie.hh"
#include "warn.hh"
+using std::string;
+using std::vector;
+
Bezier
avoid_staff_line (Slur_score_state const &state,
Bezier bez)
Bezier
avoid_staff_line (Slur_score_state const &state,
Bezier bez)
#include "translator.icc"
#include "translator.icc"
void
Slur_proto_engraver::derived_mark () const
{
void
Slur_proto_engraver::derived_mark () const
{
#include "stem.hh"
#include "warn.hh"
#include "stem.hh"
#include "warn.hh"
+using std::string;
+using std::vector;
+
#include "unpure-pure-container.hh"
#include "international.hh"
#include "unpure-pure-container.hh"
#include "international.hh"
+using std::string;
+using std::vector;
+
MAKE_SCHEME_CALLBACK (Slur, calc_direction, 1)
SCM
Slur::calc_direction (SCM smob)
MAKE_SCHEME_CALLBACK (Slur, calc_direction, 1)
SCM
Slur::calc_direction (SCM smob)
#include <sstream>
#else
#include <strstream>
#include <sstream>
#else
#include <strstream>
-#define istringstream(x) istrstream (x, length ())
#endif
using namespace std;
#endif
using namespace std;
#include "misc.hh"
#include "warn.hh"
#include "misc.hh"
#include "warn.hh"
+#if HAVE_SSTREAM
+using std::istringstream;
+#else
+#define istringstream(x) std::istrstream (x, length ())
+#endif
+
+using std::istream;
+using std::string;
+using std::vector;
+
void
Source_file::load_stdin ()
{
void
Source_file::load_stdin ()
{
#include "file-name.hh"
#include "file-path.hh"
#include "file-name.hh"
#include "file-path.hh"
Sources::Sources ()
{
path_ = 0;
Sources::Sources ()
{
path_ = 0;
#include "break-align-interface.hh"
#include "warn.hh"
#include "break-align-interface.hh"
#include "warn.hh"
/*
Return whether COL is fixed to its neighbors by some kind of spacing
constraint.
/*
Return whether COL is fixed to its neighbors by some kind of spacing
constraint.
#include "translator.icc"
#include "translator.icc"
struct Rhythmic_tuple
{
Grob_info info_;
struct Rhythmic_tuple
{
Grob_info info_;
#include "skyline-pair.hh"
#include "system.hh"
#include "skyline-pair.hh"
#include "system.hh"
/* return the right-pointing skyline of the left-items and the left-pointing
skyline of the right-items (with the skyline of the left-items in
ret[LEFT]) */
/* return the right-pointing skyline of the left-items and the left-pointing
skyline of the right-items (with the skyline of the left-items in
ret[LEFT]) */
#include "moment.hh"
#include "spacing-options.hh"
#include "moment.hh"
#include "spacing-options.hh"
/* Find the loose columns in POSNS, and drape them around the columns
specified in BETWEEN-COLS. */
void
/* Find the loose columns in POSNS, and drape them around the columns
specified in BETWEEN-COLS. */
void
#include "system.hh"
#include "warn.hh"
#include "system.hh"
#include "warn.hh"
vector<Grob *>
Spacing_spanner::get_columns (Grob *me_grob)
{
vector<Grob *>
Spacing_spanner::get_columns (Grob *me_grob)
{
#include "translator.icc"
#include "translator.icc"
/**
Make arpeggios that span multiple staves. Catch arpeggios, and span a
Span_arpeggio over them if we find more than two arpeggios.
/**
Make arpeggios that span multiple staves. Catch arpeggios, and span a
Span_arpeggio over them if we find more than two arpeggios.
#include "translator.icc"
#include "translator.icc"
/**
Make bars that span multiple "staves". Catch bars, and span a
/**
Make bars that span multiple "staves". Catch bars, and span a
#include "translator.icc"
#include "translator.icc"
/*
The Span_bar_stub_engraver creates SpanBarStub grobs in the contexts
that a grouping context contains. For example, if a PianoStaff contains
/*
The Span_bar_stub_engraver creates SpanBarStub grobs in the contexts
that a grouping context contains. For example, if a PianoStaff contains
#include "translator.icc"
#include "translator.icc"
class Spanner_break_forbid_engraver : public Engraver
{
TRANSLATOR_DECLARATIONS (Spanner_break_forbid_engraver);
class Spanner_break_forbid_engraver : public Engraver
{
TRANSLATOR_DECLARATIONS (Spanner_break_forbid_engraver);
#include "system.hh"
#include "warn.hh"
#include "system.hh"
#include "warn.hh"
Grob *
Spanner::clone () const
{
Grob *
Spanner::clone () const
{
Spring::Spring ()
{
distance_ = 1.0;
Spring::Spring ()
{
distance_ = 1.0;
#include "page-layout-problem.hh"
#include "pointer-group-interface.hh"
#include "page-layout-problem.hh"
#include "pointer-group-interface.hh"
/* Checks whether the child grob is in the "interior" of this staff-grouper.
This is the case if the next spaceable, living child after the given one
belongs to the group.
/* Checks whether the child grob is in the "interior" of this staff-grouper.
This is the case if the next spaceable, living child after the given one
belongs to the group.
#include "translator.icc"
#include "translator.icc"
+using std::deque;
+using std::map;
+using std::string;
+
/* Perform a staff. Individual notes should have their instrument
(staff-wide) set, so we override play_element ()
*/
/* Perform a staff. Individual notes should have their instrument
(staff-wide) set, so we override play_element ()
*/
#include "pointer-group-interface.hh"
#include "directional-element-interface.hh"
#include "pointer-group-interface.hh"
#include "directional-element-interface.hh"
+using std::string;
+using std::vector;
+
/* A stem following a bar-line creates an optical illusion similar to the
one mentioned in note-spacing.cc. We correct for it here.
/* A stem following a bar-line creates an optical illusion similar to the
one mentioned in note-spacing.cc. We correct for it here.
#include "staff-symbol-referencer.hh"
#include "spanner.hh"
#include "staff-symbol-referencer.hh"
#include "spanner.hh"
MAKE_SCHEME_CALLBACK (Staff_symbol, print, 1);
SCM
MAKE_SCHEME_CALLBACK (Staff_symbol, print, 1);
SCM
#include "translator.icc"
#include "translator.icc"
class Stanza_number_align_engraver : public Engraver
{
public:
class Stanza_number_align_engraver : public Engraver
{
public:
#include "translator.icc"
#include "translator.icc"
class Stem_engraver : public Engraver
{
Grob *stem_;
class Stem_engraver : public Engraver
{
Grob *stem_;
#include "stem.hh"
#include "warn.hh"
#include "stem.hh"
#include "warn.hh"
MAKE_SCHEME_CALLBACK (Stem_tremolo, calc_slope, 1)
SCM
Stem_tremolo::calc_slope (SCM smob)
MAKE_SCHEME_CALLBACK (Stem_tremolo, calc_slope, 1)
SCM
Stem_tremolo::calc_slope (SCM smob)
#include "stem-tremolo.hh"
#include "warn.hh"
#include "stem-tremolo.hh"
#include "warn.hh"
+using std::string;
+using std::vector;
+
void
Stem::set_beaming (Grob *me, int beam_count, Direction d)
{
void
Stem::set_beaming (Grob *me, int beam_count, Direction d)
{
#include "spanner.hh"
using namespace std;
#include "spanner.hh"
using namespace std;
+using std::string;
+using std::vector;
+
Real QUANTIZATION_UNIT = 0.2;
void create_path_cap (vector<Box> &boxes,
Real QUANTIZATION_UNIT = 0.2;
void create_path_cap (vector<Box> &boxes,
#include "lookup.hh"
#include "stencil.hh"
#include "lookup.hh"
#include "stencil.hh"
/*
TODO: naming add/combine.
*/
/*
TODO: naming add/combine.
*/
#include "string-convert.hh"
#include "warn.hh"
#include "string-convert.hh"
#include "warn.hh"
#include "stencil.hh"
#include "font-interface.hh"
#include "stencil.hh"
#include "font-interface.hh"
// update comment --hwn
/*
Urg.
// update comment --hwn
/*
Urg.
#include "translator.icc"
#include "translator.icc"
struct Bracket_nesting_node
{
public:
struct Bracket_nesting_node
{
public:
#include "unpure-pure-container.hh"
#include "lily-imports.hh"
#include "unpure-pure-container.hh"
#include "lily-imports.hh"
System::System (System const &src)
: Spanner (src)
{
System::System (System const &src)
: Spanner (src)
{
#include "translator.icc"
#include "translator.icc"
/**
make (guitar-like) tablature note
*/
/**
make (guitar-like) tablature note
*/
#include "translator.icc"
#include "translator.icc"
/*
Change tab-note-head properties when a tie is followed by a
slurs or glissando.
/*
Change tab-note-head properties when a tie is followed by a
slurs or glissando.
template<>
Rational
Interval_t<Rational>::infinity ()
template<>
Rational
Interval_t<Rational>::infinity ()
#include "translator.icc"
#include "translator.icc"
/**
typeset directions that are plain text.
*/
/**
typeset directions that are plain text.
*/
#include "warn.hh"
#include "lily-imports.hh"
#include "warn.hh"
#include "lily-imports.hh"
static void
replace_special_characters (string &str, SCM props)
{
static void
replace_special_characters (string &str, SCM props)
{
#include "tie-configuration.hh"
using namespace std;
#include "tie-configuration.hh"
using namespace std;
void
Tie_column::add_tie (Grob *tc, Spanner *tie)
void
Tie_column::add_tie (Grob *tc, Spanner *tie)
#include "tie-formatting-problem.hh"
#include "bezier.hh"
#include "tie-formatting-problem.hh"
#include "bezier.hh"
int
Tie_configuration::compare (Tie_configuration const &a,
Tie_configuration const &b)
int
Tie_configuration::compare (Tie_configuration const &a,
Tie_configuration const &b)
#include "translator.icc"
#include "translator.icc"
/**
Manufacture ties. Acknowledge note heads, and put them into a
priority queue. If we have a TieEvent, connect the notes that finish
/**
Manufacture ties. Acknowledge note heads, and put them into a
priority queue. If we have a TieEvent, connect the notes that finish
#include "pointer-group-interface.hh"
#include "output-def.hh"
#include "pointer-group-interface.hh"
#include "output-def.hh"
+using std::set;
+using std::string;
+using std::vector;
+
void
Tie_formatting_problem::print_ties_configuration (Ties_configuration const *ties)
{
void
Tie_formatting_problem::print_ties_configuration (Ties_configuration const *ties)
{
#include "translator.icc"
#include <list>
#include "translator.icc"
#include <list>
struct Head_audio_event_tuple
{
Audio_element_info head_;
struct Head_audio_event_tuple
{
Audio_element_info head_;
#include "warn.hh"
#include "semi-tie-column.hh"
#include "warn.hh"
#include "semi-tie-column.hh"
bool
Tie::less (Grob *g1, Grob *g2)
{
bool
Tie::less (Grob *g1, Grob *g2)
{
#include "scm-hash.hh"
#include "warn.hh"
#include "scm-hash.hh"
#include "warn.hh"
void
translator_each (SCM list, Translator_method method)
{
void
translator_each (SCM list, Translator_method method)
{
#include "translator.icc"
#include "translator.icc"
+using std::string;
+using std::vector;
+
Translator::~Translator ()
{
}
Translator::~Translator ()
{
}
#include "main.hh"
#include "open-type-font.hh"
#include "main.hh"
#include "open-type-font.hh"
+using std::string;
+using std::vector;
+
Index_to_charcode_map
make_index_to_charcode_map (FT_Face face)
{
Index_to_charcode_map
make_index_to_charcode_map (FT_Face face)
{
#include "paper-column.hh"
#include "moment.hh"
#include "paper-column.hh"
#include "moment.hh"
static Item *
get_x_bound_item (Grob *me_grob, Direction hdir, Direction my_dir)
{
static Item *
get_x_bound_item (Grob *me_grob, Direction hdir, Direction my_dir)
{
#include "translator.icc"
#include "translator.icc"
struct Tuplet_description
{
Stream_event *event_;
struct Tuplet_description
{
Stream_event *event_;
#include "stem.hh"
#include "warn.hh"
#include "stem.hh"
#include "warn.hh"
/*
The reference stem is used to determine on which side of the beam to place
the tuplet number when it is positioned independently of a bracket. (The number
/*
The reference stem is used to determine on which side of the beam to place
the tuplet number when it is positioned independently of a bracket. (The number
class Undead : public Simple_smob<Undead>
{
public:
class Undead : public Simple_smob<Undead>
{
public:
#include "pitch.hh"
#include "translator.icc"
#include "pitch.hh"
#include "translator.icc"
+using std::string;
+using std::vector;
+
/*
* This class implements the notation specific aspects of Vaticana
* style ligatures for Gregorian chant notation.
/*
* This class implements the notation specific aspects of Vaticana
* style ligatures for Gregorian chant notation.
#include "staff-symbol-referencer.hh"
#include "warn.hh"
#include "staff-symbol-referencer.hh"
#include "warn.hh"
Stencil
vaticana_brew_cauda (Grob *me,
int pos,
Stencil
vaticana_brew_cauda (Grob *me,
int pos,
#include "translator.icc"
#include "translator.icc"
+using std::string;
+using std::vector;
+
class Vertical_align_engraver : public Engraver
{
Spanner *valign_;
class Vertical_align_engraver : public Engraver
{
Spanner *valign_;
#include "tuplet-bracket.hh"
#include "lily-imports.hh"
#include "tuplet-bracket.hh"
#include "lily-imports.hh"
/*
this is too complicated. Yet another version of side-positioning,
badly implemented.
/*
this is too complicated. Yet another version of side-positioning,
badly implemented.
#include "context.hh"
#include "lily-imports.hh"
#include "context.hh"
#include "lily-imports.hh"
class Volta_repeat_iterator : public Sequential_iterator
{
public:
class Volta_repeat_iterator : public Sequential_iterator
{
public:
#include "international.hh"
#include "warn.hh"
#include "international.hh"
#include "warn.hh"
/*
Error / warning / progress / debug message output functions
*/
/*
Error / warning / progress / debug message output functions
*/