Commit ab31a17d authored by Peter Eastman's avatar Peter Eastman
Browse files

Renamed getPlatform() to getPlatformByName()

parent 32946009
...@@ -175,7 +175,7 @@ public: ...@@ -175,7 +175,7 @@ public:
* Get the registered Platform with a particular name. If no Platform with that name has been * Get the registered Platform with a particular name. If no Platform with that name has been
* registered, this throws an exception. * registered, this throws an exception.
*/ */
static Platform& getPlatform(const std::string& name); static Platform& getPlatformByName(const std::string& name);
/** /**
* Find a Platform which can be used to perform a calculation. * Find a Platform which can be used to perform a calculation.
* *
......
...@@ -178,7 +178,7 @@ Platform& Platform::getPlatform(int index) { ...@@ -178,7 +178,7 @@ Platform& Platform::getPlatform(int index) {
return *getPlatforms()[index]; return *getPlatforms()[index];
} }
Platform& Platform::getPlatform(const string& name) { Platform& Platform::getPlatformByName(const string& name) {
for (int i = 0; i < getNumPlatforms(); i++) for (int i = 0; i < getNumPlatforms(); i++)
if (getPlatform(i).getName() == name) if (getPlatform(i).getName() == name)
return getPlatform(i); return getPlatform(i);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment