---
scribo/ChangeLog | 4 ++++
scribo/scribo/core/line_set.hh | 11 +++++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index a7f2dc7..afa3d87 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,5 +1,9 @@
2010-11-16 Guillaume Lazzara <z(a)lrde.epita.fr>
+ * scribo/core/line_set.hh (is_valid()): New method.
+
+2010-11-16 Guillaume Lazzara <z(a)lrde.epita.fr>
+
* scribo/primitive/group/from_double_link_any.hh: New.
2010-11-16 Guillaume Lazzara <z(a)lrde.epita.fr>
diff --git a/scribo/scribo/core/line_set.hh b/scribo/scribo/core/line_set.hh
index 6ef3294..29795b2 100644
--- a/scribo/scribo/core/line_set.hh
+++ b/scribo/scribo/core/line_set.hh
@@ -154,6 +154,9 @@ namespace scribo
/// @}
+
+ bool is_valid() const;
+
private:
/// Duplicate the underlying image and create a new line_set.
void init_(const line_set<L>& model);
@@ -390,6 +393,14 @@ namespace scribo
template <typename L>
inline
+ bool
+ line_set<L>::is_valid() const
+ {
+ return data_->links_.is_valid() && data_->groups_.is_valid();
+ }
+
+ template <typename L>
+ inline
void
line_set<L>::init_(const line_set<L>& set)
{
--
1.5.6.5
Show replies by date