-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from tangrams/tile-management
Tile management merged to master (finally)
- Loading branch information
Showing
56 changed files
with
1,884 additions
and
548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* Include a set of STL items | ||
* | ||
* Although it is typically not good practice to "use" namespace items, a few STL items are so frequently used in C++ that | ||
* it becomes more troublesome to prefix them in every usage. | ||
*/ | ||
|
||
#pragma once | ||
#include "stl_util.hpp" | ||
|
||
#include <string> | ||
using std::string; | ||
|
||
#include <memory> | ||
using std::unique_ptr; | ||
using std::shared_ptr; | ||
using std::make_shared; | ||
using std_patch::make_unique; | ||
using std_patch::to_string; | ||
|
||
#include <vector> | ||
using std::vector; | ||
|
||
#include <map> | ||
using std::map; | ||
|
||
#include <unordered_map> | ||
using std::unordered_map; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#pragma once | ||
#include <string> | ||
#include <sstream> | ||
#include <memory> | ||
|
||
// some stuff that belongs in the c++ stllib, but isn't | ||
namespace std_patch { | ||
template<typename T, typename... Args> | ||
std::unique_ptr<T> make_unique(Args&&... args) { | ||
return std::unique_ptr<T>(new T(std::forward<Args>(args)...)); | ||
} | ||
|
||
// for some reason android doesn't ship with to_string | ||
// implement it here | ||
template<typename T> | ||
std::string to_string( const T& n ) { | ||
std::ostringstream stm ; | ||
stm << n ; | ||
return stm.str() ; | ||
} | ||
} |
Oops, something went wrong.