| 428 | //----------------------------------------------------------------------------- |
| 429 | |
| 430 | SimObject* SimSet::findObject( SimObject* object ) |
| 431 | { |
| 432 | bool found = false; |
| 433 | lock(); |
| 434 | for( SimSet::iterator iter = begin(); iter != end(); ++ iter ) |
| 435 | if( *iter == object ) |
| 436 | { |
| 437 | found = true; |
| 438 | break; |
| 439 | } |
| 440 | unlock(); |
| 441 | |
| 442 | if( found ) |
| 443 | return object; |
| 444 | |
| 445 | return NULL; |
| 446 | } |
| 447 | |
| 448 | //----------------------------------------------------------------------------- |
| 449 |