| 548 | } |
| 549 | |
| 550 | struct CVisibleObjectPredicateEx |
| 551 | { |
| 552 | const CObject* m_object; |
| 553 | |
| 554 | CVisibleObjectPredicateEx(const CObject* object) : m_object(object) {} |
| 555 | |
| 556 | bool operator()(const MemorySpace::CVisibleObject& visible_object) const |
| 557 | { |
| 558 | if (!m_object) |
| 559 | return (!visible_object.m_object); |
| 560 | if (!visible_object.m_object) |
| 561 | return (false); |
| 562 | return (m_object->ID() == visible_object.m_object->ID()); |
| 563 | } |
| 564 | |
| 565 | bool operator()(const MemorySpace::CNotYetVisibleObject& not_yet_visible_object) const |
| 566 | { |
| 567 | if (!m_object) |
| 568 | return (!not_yet_visible_object.m_object); |
| 569 | if (!not_yet_visible_object.m_object) |
| 570 | return (false); |
| 571 | return (m_object->ID() == not_yet_visible_object.m_object->ID()); |
| 572 | } |
| 573 | }; |
| 574 | |
| 575 | void CVisualMemoryManager::remove_links(CObject* object) |
| 576 | { |
no outgoing calls
no test coverage detected