| 77 | |
| 78 | |
| 79 | const Option<Attribute> Attributes::get(const Attribute& thatAttribute) const |
| 80 | { |
| 81 | foreach (const Attribute& attribute, attributes) { |
| 82 | if (attribute.name() == thatAttribute.name() && |
| 83 | attribute.type() == thatAttribute.type()) { |
| 84 | return attribute; |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | return None(); |
| 89 | } |
| 90 | |
| 91 | |
| 92 | bool Attributes::contains(const Attribute& attribute) const |