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