void MenuBar::detachFromEventProducer(void) { Inherited::detachFromEventProducer(); _SelectionChangedConnection.disconnect(); _MouseMovedConnection.disconnect(); _MouseDraggedConnection.disconnect(); for(std::map<Menu*, boost::signals2::connection>::iterator MapItor(_PopupMenuCanceledConnections.begin()) ; MapItor != _PopupMenuCanceledConnections.end(); ++MapItor) { MapItor->second.disconnect(); } _PopupMenuCanceledConnections.clear(); _KeyTypedConnection.disconnect(); }
Action::ResultE PhysicsAttachmentsFinder::check(Node*& node) { AttachmentUnrecPtr Att; //Loop through all of the attachments on this node for(AttachmentMap::const_iterator MapItor(node->getSFAttachments()->getValue().begin()) ; MapItor != node->getSFAttachments()->getValue().end() ; ++MapItor) { //Check for Physics Handlers if(MapItor->second->getType().isDerivedFrom(PhysicsHandler::getClassType())) { _FoundHandlers.push_back(dynamic_cast<const PhysicsHandler*>(MapItor->second)); } //Check for Physics Worlds if(MapItor->second->getType().isDerivedFrom(PhysicsWorld::getClassType())) { _FoundWorlds.push_back(dynamic_cast<const PhysicsWorld*>(MapItor->second)); } //Check for Physics Geoms if(MapItor->second->getType().isDerivedFrom(PhysicsGeom::getClassType())) { _FoundGeoms.push_back(dynamic_cast<const PhysicsGeom*>(MapItor->second)); } //Check for Physics Spaces if(MapItor->second->getType().isDerivedFrom(PhysicsSpace::getClassType())) { _FoundSpaces.push_back(dynamic_cast<const PhysicsSpace*>(MapItor->second)); } //Check for Physics Bodies if(MapItor->second->getType().isDerivedFrom(PhysicsBody::getClassType())) { _FoundBodies.push_back(dynamic_cast<const PhysicsBody*>(MapItor->second)); //Get the Physics Joints std::vector<PhysicsJointUnrecPtr> Joints(dynamic_cast<PhysicsBody*>(MapItor->second)->getJoints()); for(UInt32 i(0) ; i<Joints.size() ; ++i) { _FoundJoints.push_back(Joints[i].get()); } } } return Action::Continue; }
std::vector<std::string> FCFileHandlerBase::getSuffixList(UInt32 flags) const { std::vector<std::string> FileTypesResult; for(FileTypeMap::const_iterator MapItor(_SuffixTypeMap.begin()) ; MapItor != _SuffixTypeMap.end() ; ++MapItor) { for(FileTypeVector::const_iterator VecItor(MapItor->second.begin()) ; VecItor != MapItor->second.end() ; ++VecItor) { if((*VecItor)->getFlags() & flags) { std::vector<std::string> Suffixes((*VecItor)->getSuffixList()); for(std::vector<std::string>::const_iterator SuffixItor(Suffixes.begin()) ; SuffixItor<Suffixes.end() ; ++SuffixItor) { FileTypesResult.push_back(*SuffixItor); } } } } return FileTypesResult; }