Skip to content

Commit

Permalink
For coherence with other projects, rename src to tsl. We now include …
Browse files Browse the repository at this point in the history
…files with '#include <tsl/array_map>' after adding the root of the project to the include path.
  • Loading branch information
Tessil committed Aug 12, 2017
1 parent f277f70 commit 0644094
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ add_executable("${TEST_EXECUTABLE}" "tests/main.cpp"
"tests/array_map_tests.cpp"
"tests/array_set_tests.cpp")

target_include_directories("${TEST_EXECUTABLE}" PRIVATE "${Boost_INCLUDE_DIRS}" "src")
target_include_directories("${TEST_EXECUTABLE}" PRIVATE "${Boost_INCLUDE_DIRS}" ".")
target_link_libraries("${TEST_EXECUTABLE}" ${Boost_LIBRARIES})

if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Due to its cache friendliness, the structure is well-adapted to store strings lo
The library provides two classes: `tsl::array_map` and `tsl::array_set`.

### Overview
- Header-only library, just include [src/](src/) to your include path and you're ready to go.
- Header-only library, just add the project to your include path and you are ready to go.
- Low memory usage with good performances.
- By default the maximum allowed size for a key is set to 65 535. This can be raised through the `KeySizeT` template parameter.
- By default the maximum size of the map is limited to 4 294 967 296 elements. This can be raised through the `IndexSizeT` template parameter.
Expand Down Expand Up @@ -70,7 +70,7 @@ tsl::array_map<char, int, str_hash> map;
The `std::hash<std::string>` can't be used efficiently as the structure doesn't store any `std::string` object. Any time a hash would be needed a temporary `std::string` would have to be created.

### Installation
To use array-hash, just add the [src/](src/) directory to your include path. It's a **header-only** library.
To use array-hash, just add the project to your include path. It is a **header-only** library.

The code should work with any C++11 standard-compliant compiler and has been tested with GCC 4.8.4, Clang 3.5.0 and Visual Studio 2015.

Expand All @@ -96,8 +96,8 @@ The API can be found [here](https://tessil.github.io/array-hash/doc_without_stri
### Example
```c++
#include <iostream>
#include "array_map.h"
#include "array_set.h"
#include <tsl/array_map.h>
#include <tsl/array_set.h>


int main() {
Expand Down
2 changes: 1 addition & 1 deletion doxygen.conf
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ WARN_LOGFILE =
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
# Note: If this tag is empty the current directory is searched.

INPUT = src/
INPUT = tsl/

# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
Expand Down
2 changes: 1 addition & 1 deletion tests/array_bucket_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <boost/test/unit_test.hpp>
#include <boost/mpl/list.hpp>

#include "array_hash.h"
#include "tsl/array_hash.h"
#include "utils.h"

BOOST_AUTO_TEST_SUITE(test_array_bucket)
Expand Down
2 changes: 1 addition & 1 deletion tests/array_map_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <boost/test/unit_test.hpp>
#include <boost/mpl/list.hpp>

#include "array_map.h"
#include "tsl/array_map.h"
#include "utils.h"

BOOST_AUTO_TEST_SUITE(test_array_map)
Expand Down
2 changes: 1 addition & 1 deletion tests/array_set_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <boost/test/unit_test.hpp>
#include <boost/mpl/list.hpp>

#include "array_set.h"
#include "tsl/array_set.h"
#include "utils.h"


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0644094

Please sign in to comment.