Skip to content

Commit 0644094

Browse files
committed
For coherence with other projects, rename src to tsl. We now include files with '#include <tsl/array_map>' after adding the root of the project to the include path.
1 parent f277f70 commit 0644094

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ add_executable("${TEST_EXECUTABLE}" "tests/main.cpp"
1212
"tests/array_map_tests.cpp"
1313
"tests/array_set_tests.cpp")
1414

15-
target_include_directories("${TEST_EXECUTABLE}" PRIVATE "${Boost_INCLUDE_DIRS}" "src")
15+
target_include_directories("${TEST_EXECUTABLE}" PRIVATE "${Boost_INCLUDE_DIRS}" ".")
1616
target_link_libraries("${TEST_EXECUTABLE}" ${Boost_LIBRARIES})
1717

1818
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Due to its cache friendliness, the structure is well-adapted to store strings lo
1212
The library provides two classes: `tsl::array_map` and `tsl::array_set`.
1313

1414
### Overview
15-
- Header-only library, just include [src/](src/) to your include path and you're ready to go.
15+
- Header-only library, just add the project to your include path and you are ready to go.
1616
- Low memory usage with good performances.
1717
- By default the maximum allowed size for a key is set to 65 535. This can be raised through the `KeySizeT` template parameter.
1818
- 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.
@@ -70,7 +70,7 @@ tsl::array_map<char, int, str_hash> map;
7070
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.
7171

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

7575
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.
7676

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

102102

103103
int main() {

doxygen.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ WARN_LOGFILE =
781781
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
782782
# Note: If this tag is empty the current directory is searched.
783783

784-
INPUT = src/
784+
INPUT = tsl/
785785

786786
# This tag can be used to specify the character encoding of the source files
787787
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses

tests/array_bucket_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <boost/test/unit_test.hpp>
44
#include <boost/mpl/list.hpp>
55

6-
#include "array_hash.h"
6+
#include "tsl/array_hash.h"
77
#include "utils.h"
88

99
BOOST_AUTO_TEST_SUITE(test_array_bucket)

tests/array_map_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <boost/test/unit_test.hpp>
1010
#include <boost/mpl/list.hpp>
1111

12-
#include "array_map.h"
12+
#include "tsl/array_map.h"
1313
#include "utils.h"
1414

1515
BOOST_AUTO_TEST_SUITE(test_array_map)

tests/array_set_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <boost/test/unit_test.hpp>
55
#include <boost/mpl/list.hpp>
66

7-
#include "array_set.h"
7+
#include "tsl/array_set.h"
88
#include "utils.h"
99

1010

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)