*** empty log message ***

This commit is contained in:
Mike Goslin 2001-01-26 20:27:41 +00:00
parent dfa0b0c9fa
commit b0b30ad602
2 changed files with 16 additions and 0 deletions

View File

@ -75,6 +75,21 @@ add_physicals_from(const PhysicalNode &other) {
(*last)->_physical_node = this;
}
////////////////////////////////////////////////////////////////////
// Function : remove_physical
// Access : public
// Description : remove operation
////////////////////////////////////////////////////////////////////
void PhysicalNode::
remove_physical(Physical *physical) {
vector< PT(Physical) >::iterator found;
PT(Physical) ptp = physical;
found = find(_physicals.begin(), _physicals.end(), ptp);
if (found == _physicals.end())
return;
_physicals.erase(found);
}
////////////////////////////////////////////////////////////////////
// Function : remove_physical
// Access : public

View File

@ -39,6 +39,7 @@ PUBLISHED:
INLINE void add_physical(Physical *physical);
void add_physicals_from(const PhysicalNode &other);
void remove_physical(Physical *physical);
void remove_physical(int index);
public: