| 763 | } |
| 764 | |
| 765 | void ShapeConstraint::updateWidthRange(const ShapeRange& other) { |
| 766 | try { |
| 767 | _widthRange = _widthRange.intersect(other); |
| 768 | } |
| 769 | catch (std::runtime_error& e) { |
| 770 | std::string err = "Invalid width range in blob " + _name + ". " + e.what(); |
| 771 | throw std::runtime_error(err); |
| 772 | } |
| 773 | } |
| 774 | |
| 775 | std::string ShapeConstraint::name() const { |
| 776 | return _name; |
no test coverage detected