Check if the attribute has a parameter of a paricular name
| 1072 | |
| 1073 | // Check if the attribute has a parameter of a paricular name |
| 1074 | Param Attribute::paramNamed(const std::string& name) const { |
| 1075 | for (std::vector<Param>::const_iterator |
| 1076 | it = params_.begin(); it != params_.end(); ++it) { |
| 1077 | if (it->name() == name) // #nocov |
| 1078 | return *it; // #nocov |
| 1079 | } |
| 1080 | return Param(); |
| 1081 | } |
| 1082 | |
| 1083 | // Type operator << |
| 1084 | std::ostream& operator<<(std::ostream& os, const Type& type) { |