Skip to content

Commit

Permalink
remove Boost library, replaced by an type_name input in constructing …
Browse files Browse the repository at this point in the history
…funtion
  • Loading branch information
altramarine committed Nov 4, 2024
1 parent 4eacf30 commit 88c5616
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion external/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ endif()
add_library(tlx INTERFACE)
target_include_directories(tlx INTERFACE ${tlx_SOURCE_DIR}/)

find_package(Boost REQUIRED)
# find_package(Boost REQUIRED)
FetchContent_Declare(
imprints
GIT_REPOSITORY https://github.com/altramarine/imprints.git
Expand Down
7 changes: 5 additions & 2 deletions src/bliss/bench_imprints.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
#include "bliss/bliss_index.h"
#include <column_imprints.h>
#include <boost/type_index.hpp>
#include <string>

namespace bliss {

template <typename KEY_TYPE, typename VALUE_TYPE>
class BlissImprintsIndex : public BlissIndex<KEY_TYPE, VALUE_TYPE> {
public:
BlissImprintsIndex(int blocksize = 64, int maxbins = 64) : blocksize_(blocksize), maxbins_(maxbins) {
imprints_ = new Imprints<VALUE_TYPE>(blocksize, maxbins);
BlissImprintsIndex(int blocksize = 64, int maxbins = 64, std::string type_name = std::string("unsigned int")) : blocksize_(blocksize), maxbins_(maxbins) {
imprints_ = new Imprints<VALUE_TYPE>(blocksize, maxbins, type_name);
// std::cout << "column initiated" << std::endl;
};

Expand Down Expand Up @@ -51,6 +52,8 @@ class BlissImprintsIndex : public BlissIndex<KEY_TYPE, VALUE_TYPE> {
void end_routine() override {}
private:
Imprints<VALUE_TYPE> *imprints_;
int blocksize_, maxbins_;
std::string type_name;
};

} // namespace bliss
Expand Down

0 comments on commit 88c5616

Please sign in to comment.