| 139 | } |
| 140 | |
| 141 | void FeatureSet::addFeature( const FeatureType &type, S32 index ) |
| 142 | { |
| 143 | for ( U32 i=0; i < mFeatures.size(); i++ ) |
| 144 | { |
| 145 | const FeatureInfo &info = mFeatures[i]; |
| 146 | if ( info.type == &type && |
| 147 | info.index == index ) |
| 148 | return; |
| 149 | } |
| 150 | |
| 151 | FeatureInfo info; |
| 152 | info.type = &type; |
| 153 | info.index = index; |
| 154 | mFeatures.push_back( info ); |
| 155 | |
| 156 | mDescription.clear(); |
| 157 | } |
| 158 | |
| 159 | void FeatureSet::removeFeature( const FeatureType &type ) |
| 160 | { |
no test coverage detected