Пример #1
0
	void delItemFromLocationMap( const P_ITEM pWhat )
	{
		pair< PITEMLOCATIONMAPIT, PITEMLOCATIONMAPIT > it = pItemLocationMap.equal_range( pWhat->getLocationKey() );
		SERIAL	pWhatSerial = pWhat->getSerial32();

		for( ; it.first != it.second; ++it.first )
			if( it.first->second->getSerial32() == pWhatSerial32 )
			{
				pItemLocationMap.erase( it.first );
				break;
			}
	}
Пример #2
0
	void addItemToLocationMap( const P_ITEM pWhat )
	{
		pWhat->setLocationKey();
		pItemLocationMap.insert( pair< UI32, P_ITEM >( pWhat->getLocationKey(), pWhat ) );
	}