Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1159)

Unified Diff: lily/include/system.hh

Issue 342240043: Issue 5402: Arrange for System::get_bound to return a Paper_column (Closed)
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lily/include/spanner.hh ('k') | lily/item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/include/system.hh
diff --git a/lily/include/system.hh b/lily/include/system.hh
index a2cef98f0cab599d5f7a27622bc4dfbef4e82c3e..bcf980cbe0b8f0e677c2360cbd2e348dd74e5204 100644
--- a/lily/include/system.hh
+++ b/lily/include/system.hh
@@ -23,6 +23,7 @@
#include <limits>
#include "column-x-positions.hh"
+#include "paper-column.hh"
#include "spanner.hh"
#include "skyline.hh"
@@ -42,6 +43,12 @@ class System : public Spanner
public:
Paper_score *paper_score () const;
Grob *get_neighboring_staff (Direction dir, Grob *vertical_axis_group, Interval_t<int> bounds);
+ virtual bool accepts_as_bound_item (const Item *) const;
+ virtual bool accepts_as_bound_paper_column (const Paper_column *) const;
+ Paper_column *get_bound (Direction d) const {
+ // This is safe because only Paper_columns are accepted as bounds.
+ return static_cast<Paper_column *> (Spanner::get_bound (d));
+ }
Grob *get_pure_bound (Direction dir, int start, int end);
Grob *get_maybe_pure_bound (Direction dir, bool pure, int start, int end);
int get_rank () const;
« no previous file with comments | « lily/include/spanner.hh ('k') | lily/item.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b