Removed references to tr1 now that c++11 works

This commit is contained in:
Anonymous
2014-01-23 09:28:13 -07:00
parent e6431a9fd4
commit 210bdb91d8
56 changed files with 198 additions and 205 deletions
@@ -183,7 +183,7 @@
#include <algorithm>
#include <deque>
#include <limits>
#include <tr1/unordered_set>
#include <unordered_set>
#include <set>
//----------------------------------------------------------------------
@@ -8393,11 +8393,11 @@ void ServerObject::stopListeningToAllBroadcastMessages()
else
{
// build list of all broadcasters this object is currently listening to
std::tr1::unordered_set<NetworkId> broadcasters;
std::unordered_set<NetworkId> broadcasters;
for (BroadcastMap::const_iterator iter = m_broadcastBroadcasters.begin(); iter != m_broadcastBroadcasters.end(); ++iter)
IGNORE_RETURN(broadcasters.insert(iter->second));
for (std::tr1::unordered_set<NetworkId>::const_iterator iter2 = broadcasters.begin(); iter2 != broadcasters.end(); ++iter2)
for (std::unordered_set<NetworkId>::const_iterator iter2 = broadcasters.begin(); iter2 != broadcasters.end(); ++iter2)
{
// need to send a message to the broadcaster if the broadcaster is not on this game server
ServerObject * objBroadcaster = ServerWorld::findObjectByNetworkId(*iter2);
@@ -18,7 +18,7 @@
#include "sharedDebug/Profiler.h"
#include "sharedObject/NetworkIdManager.h"
#include <algorithm>
#include <tr1/unordered_map>
#include <unordered_map>
// ======================================================================
@@ -48,8 +48,8 @@ namespace TriggerVolumeNamespace
// optimization to track how many time a NetworkId appears
// in sources and targets, so that we can avoid unnecessarily
// searching the entire sources and targets vectors
std::tr1::unordered_map<NetworkId, int> m_sourcesCount;
std::tr1::unordered_map<NetworkId, int> m_targetsCount;
std::unordered_map<NetworkId, int> m_sourcesCount;
std::unordered_map<NetworkId, int> m_targetsCount;
};
// ----------------------------------------------------------------------
@@ -61,7 +61,7 @@ namespace TriggerVolumeNamespace
m_sources.push_back(source);
m_targets.push_back(target);
std::tr1::unordered_map<NetworkId, int>::iterator i = m_sourcesCount.find(source);
std::unordered_map<NetworkId, int>::iterator i = m_sourcesCount.find(source);
if (i == m_sourcesCount.end())
m_sourcesCount[source] = 1;
else
@@ -80,7 +80,7 @@ namespace TriggerVolumeNamespace
{
// remove all entries from sources
// and targets for the specified id
std::tr1::unordered_map<NetworkId, int>::iterator const iterCountSource = m_sourcesCount.find(id);
std::unordered_map<NetworkId, int>::iterator const iterCountSource = m_sourcesCount.find(id);
if (iterCountSource != m_sourcesCount.end())
{
int countSource = iterCountSource->second;
@@ -104,7 +104,7 @@ namespace TriggerVolumeNamespace
std::vector<NetworkId>::iterator targetsIter = m_targets.begin();
std::advance(targetsIter, index);
std::tr1::unordered_map<NetworkId, int>::iterator const iterCountTarget = m_targetsCount.find(*targetsIter);
std::unordered_map<NetworkId, int>::iterator const iterCountTarget = m_targetsCount.find(*targetsIter);
if (iterCountTarget != m_targetsCount.end())
{
if (iterCountTarget->second <= 1)
@@ -128,7 +128,7 @@ namespace TriggerVolumeNamespace
m_sourcesCount.erase(iterCountSource);
}
std::tr1::unordered_map<NetworkId, int>::iterator const iterCountTarget = m_targetsCount.find(id);
std::unordered_map<NetworkId, int>::iterator const iterCountTarget = m_targetsCount.find(id);
if (iterCountTarget != m_targetsCount.end())
{
int countTarget = iterCountTarget->second;
@@ -152,7 +152,7 @@ namespace TriggerVolumeNamespace
std::vector<NetworkId>::iterator sourcesIter = m_sources.begin();
std::advance(sourcesIter, index);
std::tr1::unordered_map<NetworkId, int>::iterator const iterCountSource = m_sourcesCount.find(*sourcesIter);
std::unordered_map<NetworkId, int>::iterator const iterCountSource = m_sourcesCount.find(*sourcesIter);
if (iterCountSource != m_sourcesCount.end())
{
if (iterCountSource->second <= 1)
@@ -14,7 +14,7 @@
#include "sharedFoundation/NetworkId.h"
#include "sharedUtility/PooledString.h"
#include <tr1/unordered_set>
#include <unordered_set>
// ======================================================================
@@ -40,7 +40,7 @@ public:
};
};
typedef std::tr1::unordered_set<ServerObject *, ServerObjectPointerHash> ContentsSet;
typedef std::unordered_set<ServerObject *, ServerObjectPointerHash> ContentsSet;
void addObject(ServerObject &object);
void addEventSource(NetworkId const &source);