Commit 0b29bba8 authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

scribo/core/line_set.hh (is_valid()): New method.

parent bc7c4797
2010-11-16 Guillaume Lazzara <z@lrde.epita.fr>
* scribo/core/line_set.hh (is_valid()): New method.
2010-11-16 Guillaume Lazzara <z@lrde.epita.fr>
* scribo/primitive/group/from_double_link_any.hh: New.
......
......@@ -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);
......@@ -388,6 +391,14 @@ namespace scribo
return data_->infos_;
}
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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment