----------------------------------------------------------------------------- Get the index of an item from its label -----------------------------------------------------------------------------
| 327 | // Get the index of an item from its label |
| 328 | //----------------------------------------------------------------------------- |
| 329 | int32 ValueList::GetItemIdxByLabel |
| 330 | ( |
| 331 | string const& _label |
| 332 | ) const |
| 333 | { |
| 334 | for( int32 i=0; i<(int32)m_items.size(); ++i ) |
| 335 | { |
| 336 | if( _label == m_items[i].m_label ) |
| 337 | { |
| 338 | return i; |
| 339 | } |
| 340 | } |
| 341 | |
| 342 | return -1; |
| 343 | } |
| 344 | |
| 345 | //----------------------------------------------------------------------------- |
| 346 | // <ValueList::GetItemIdxByValue> |