| 78 | } |
| 79 | |
| 80 | bool WireAttributes::is_vertex_attribute(const std::string& name) const { |
| 81 | AttrMap::const_iterator itr = m_attr_map.find(name); |
| 82 | if (itr == m_attr_map.end()) { |
| 83 | throw_attribute_not_found_error(name); |
| 84 | } |
| 85 | return itr->second->get_attribute_type() == WireAttribute::VERTEX; |
| 86 | } |
| 87 | |
| 88 | void WireAttributes::remove_attribute(const std::string& name) { |
| 89 | AttrMap::iterator itr = m_attr_map.find(name); |