Skip to content

Commit

Permalink
cleanup in headers for faster compile
Browse files Browse the repository at this point in the history
  • Loading branch information
karasikov committed Dec 15, 2019
1 parent ae8953b commit 2cb3ec8
Show file tree
Hide file tree
Showing 50 changed files with 48 additions and 21 deletions.
1 change: 1 addition & 0 deletions examples/int-vector-buffer-iterator.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <sdsl/vectors.hpp>
#include <sdsl/int_vector_buffer.hpp>
#include <iostream>
#include <algorithm>

Expand Down
1 change: 1 addition & 0 deletions examples/uint64-array2int_vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/
#include <sdsl/util.hpp>
#include <sdsl/int_vector.hpp>
#include <sdsl/int_vector_buffer.hpp>
#include <iostream>
#include <string>

Expand Down
4 changes: 1 addition & 3 deletions include/sdsl/bits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
#ifndef INCLUDED_SDSL_BITS
#define INCLUDED_SDSL_BITS

#include <stdint.h> // for uint64_t uint32_t declaration
#include <iostream>// for cerr
#include <cassert>
#include <cstdint> // for uint64_t uint32_t declaration
#ifdef __BMI2__
#include <immintrin.h>
#endif
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/construct.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include "sdsl_concepts.hpp"
#include "int_vector.hpp"
#include "int_vector_buffer.hpp"
#include "construct_lcp.hpp"
#include "construct_bwt.hpp"
#include "construct_sa.hpp"
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/construct_bwt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define INCLUDED_SDSL_CONSTRUCT_BWT

#include "int_vector.hpp"
#include "int_vector_buffer.hpp"
#include "sfstream.hpp"
#include "util.hpp"
#include "config.hpp" // for cache_config
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/construct_lcp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include "config.hpp"
#include "int_vector.hpp"
#include "int_vector_buffer.hpp"
#include "sfstream.hpp"
#include "rank_support.hpp"
#include "select_support.hpp"
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/construct_sa_se.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include "io.hpp"
#include "int_vector.hpp"
#include "int_vector_buffer.hpp"
#include "rank_support.hpp"
#include "select_support.hpp"
#include <cmath>
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/csa_alphabet_strategy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
*/

#include "int_vector.hpp"
#include "int_vector_buffer.hpp"
#include "sd_vector.hpp"
#include "rank_support.hpp"
#include "select_support.hpp"
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/csa_bitcompressed.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define INCLUDED_SDSL_CSA_UNCOMPRESSED

#include "int_vector.hpp"
#include "int_vector_buffer.hpp"
#include "sdsl_concepts.hpp"
#include "suffix_array_helper.hpp"
#include "iterators.hpp"
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/csa_sada.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include "enc_vector.hpp"
#include "int_vector.hpp"
#include "int_vector_buffer.hpp"
#include "iterators.hpp"
#include "suffix_array_helper.hpp"
#include "util.hpp"
Expand Down
2 changes: 2 additions & 0 deletions include/sdsl/csa_sampling_strategy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@
*/

#include "int_vector.hpp"
#include "int_vector_buffer.hpp"
#include "csa_alphabet_strategy.hpp" // for key_trait
#include "inv_perm_support.hpp"
#include "wavelet_trees.hpp"
#include "construct.hpp"
#include <set>
#include <tuple>

Expand Down
1 change: 1 addition & 0 deletions include/sdsl/csa_wt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define INCLUDED_SDSL_CSA_WT

#include "wavelet_trees.hpp"
#include "int_vector_buffer.hpp"
#include "suffix_array_helper.hpp"
#include "iterators.hpp"
#include "util.hpp"
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/cst_sada.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define INCLUDED_SDSL_CST_SADA

#include "int_vector.hpp"
#include "int_vector_buffer.hpp"
#include "iterators.hpp"
#include "lcp_support_sada.hpp"
#include "select_support_mcl.hpp"
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/cst_sct3.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define INCLUDED_SDSL_CST_SCT3

#include "int_vector.hpp"
#include "int_vector_buffer.hpp"
#include "iterators.hpp"
#include "lcp.hpp"
#include "bp_support.hpp"
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/dac_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include "bits.hpp"
#include "int_vector.hpp"
#include "int_vector_buffer.hpp"
#include "iterators.hpp"
#include "rank_support_v5.hpp"
#include "rrr_vector.hpp"
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/enc_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define SDSL_ENC_VECTOR

#include "int_vector.hpp"
#include "int_vector_buffer.hpp"
#include "coder.hpp"
#include "iterators.hpp"

Expand Down
10 changes: 0 additions & 10 deletions include/sdsl/int_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,17 @@
#include "uintx_t.hpp"

#include "memory_management.hpp"
#include "ram_fs.hpp"
#include "sfstream.hpp"

#include <iosfwd> // forward declaration of ostream
#include <stdexcept> // for exceptions
#include <iostream> // for cerr
#include <typeinfo>
#include <cassert>
#include <iterator>
#include <cstdlib>
#include <cstddef>
#include <ctime> // for rand initialization
#include <cstring> // for memcpy
#include <ostream>
#include <istream>
#include <string>
#include <initializer_list>
#include <type_traits>
#include <vector>
#include <ios>

//! Namespace for the succinct data structure library.
Expand Down Expand Up @@ -1602,6 +1594,4 @@ void int_vector<t_width>::load(std::istream& in)

}// end namespace sdsl

#include "int_vector_buffer.hpp"

#endif
1 change: 1 addition & 0 deletions include/sdsl/k2_treap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define INCLUDED_SDSL_K2_TREAP

#include "sdsl/vectors.hpp"
#include "sdsl/int_vector_buffer.hpp"
#include "sdsl/bits.hpp"
#include "sdsl/k2_treap_helper.hpp"
#include "sdsl/k2_treap_algorithm.hpp"
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/k2_treap_algorithm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define INCLUDED_SDSL_K2_TREAP_ALGORITHM

#include "sdsl/vectors.hpp"
#include "sdsl/int_vector_buffer.hpp"
#include "sdsl/bits.hpp"
#include "sdsl/k2_treap_helper.hpp"
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/lcp_bitcompressed.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include "lcp.hpp"
#include "int_vector.hpp"
#include "int_vector_buffer.hpp"
#include "iterators.hpp"

namespace sdsl
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/lcp_byte.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include "lcp.hpp"
#include "int_vector.hpp"
#include "int_vector_buffer.hpp"
#include "iterators.hpp"
#include <iostream>
#include <algorithm> // for lower_bound
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/lcp_support_sada.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include "lcp.hpp"
#include "int_vector.hpp"
#include "int_vector_buffer.hpp"
#include "iterators.hpp"
#include "csa_sada.hpp" // for default template initialization
#include "select_support.hpp" // for default template initialization
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/lcp_support_tree.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "lcp.hpp"
#include "util.hpp"
#include "lcp_wt.hpp"
#include "int_vector_buffer.hpp"
#include <iostream>
#include <string>

Expand Down
1 change: 1 addition & 0 deletions include/sdsl/lcp_support_tree2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "lcp.hpp"
#include "util.hpp"
#include "rank_support_v.hpp"
#include "int_vector_buffer.hpp"
#include "wt_huff.hpp"
#include "sorted_multi_stack_support.hpp"
#include <iostream>
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/lcp_vlc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "lcp.hpp"
#include "vlc_vector.hpp"
#include "int_vector.hpp"
#include "int_vector_buffer.hpp"
#include "iterators.hpp"
#include <iostream>
#include <cassert>
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/lcp_wt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "lcp.hpp"
#include "wt_huff.hpp"
#include "int_vector.hpp"
#include "int_vector_buffer.hpp"
#include "iterators.hpp"
#include "util.hpp"
#include <iostream>
Expand Down
3 changes: 0 additions & 3 deletions include/sdsl/memory_management.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
#include <map>
#include <iostream>
#include <cstdlib>
#include <mutex>
#include <chrono>
#include <cstring>
#include <set>
#include <cstddef>
#include <stack>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/rmq_succinct_sct.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include "rmq_support.hpp"
#include "int_vector.hpp"
#include "int_vector_buffer.hpp"
#include "bp_support_sada.hpp"
#include "suffix_tree_helper.hpp"
#include "util.hpp"
Expand Down
2 changes: 0 additions & 2 deletions include/sdsl/rrr_helper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
#endif
#endif

#include <algorithm> // for next permutation
#include <iostream>
#include "bits.hpp"
#include "uint128_t.hpp"
#include "uint256_t.hpp"
Expand Down
2 changes: 0 additions & 2 deletions include/sdsl/rrr_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
#include "util.hpp"
#include "rrr_helper.hpp" // for binomial helper class
#include "iterators.hpp"
#include <vector>
#include <algorithm> // for next_permutation
#include <iostream>

//! Namespace for the succinct data structure library
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/suffix_tree_helper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <stack>
#include "sorted_multi_stack_support.hpp"
#include "sorted_stack_support.hpp"
#include "int_vector_buffer.hpp"
#include "iterators.hpp"

namespace sdsl
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/vlc_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define SDSL_VLC_VECTOR

#include "int_vector.hpp"
#include "int_vector_buffer.hpp"
#include "coder_elias_delta.hpp"
#include "iterators.hpp"

Expand Down
1 change: 0 additions & 1 deletion include/sdsl/wavelet_trees.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include "wm_int.hpp"
#include "wt_rlmn.hpp"
#include "wt_ap.hpp"
#include "construct.hpp"
#include "wt_algorithm.hpp"

namespace sdsl
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/wm_int.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include "sdsl_concepts.hpp"
#include "int_vector.hpp"
#include "int_vector_buffer.hpp"
#include "rank_support_v.hpp"
#include "select_support_mcl.hpp"
#include "wt_helper.hpp"
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/wt_ap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include <sdsl/bit_vectors.hpp>
#include <sdsl/int_vector.hpp>
#include <sdsl/int_vector_buffer.hpp>
#include <sdsl/vectors.hpp>

//! Namespace for the succinct data structure library.
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/wt_gmr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include <sdsl/bit_vectors.hpp>
#include <sdsl/int_vector.hpp>
#include <sdsl/int_vector_buffer.hpp>
#include <sdsl/vectors.hpp>

//! Namespace for the succinct data structure library.
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/wt_int.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#include "sdsl_concepts.hpp"
#include "int_vector.hpp"
#include "int_vector_buffer.hpp"
#include "rank_support_v.hpp"
#include "select_support_mcl.hpp"
#include "wt_helper.hpp"
Expand Down
1 change: 1 addition & 0 deletions include/sdsl/wt_rlmn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include "sdsl_concepts.hpp"
#include "int_vector.hpp"
#include "int_vector_buffer.hpp"
#include "sd_vector.hpp"// for standard initialisation of template parameters
#include "util.hpp"
#include "wt_huff.hpp"
Expand Down
1 change: 1 addition & 0 deletions lib/construct_isa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Copyright (C) 2010 Simon Gog
*/
#include "sdsl/construct_isa.hpp"
#include "sdsl/int_vector_buffer.hpp"
#include <string>

namespace sdsl
Expand Down
1 change: 1 addition & 0 deletions lib/construct_lcp_helper.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "sdsl/construct_lcp_helper.hpp"
#include "sdsl/int_vector.hpp"
#include "sdsl/int_vector_buffer.hpp"
#include <algorithm>

namespace sdsl
Expand Down
1 change: 1 addition & 0 deletions test/csa_byte_test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "sdsl/suffix_arrays.hpp"
#include "sdsl/coder.hpp"
#include "sdsl/construct.hpp"
#include "gtest/gtest.h"
#include <vector>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions test/csa_int_test.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "sdsl/suffix_arrays.hpp"
#include "sdsl/construct.hpp"
#include "gtest/gtest.h"
#include <cstdlib>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions test/cst_byte_test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "cst_helper.hpp"
#include "sdsl/suffix_trees.hpp"
#include "sdsl/construct.hpp"
#include "gtest/gtest.h"
#include <vector>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions test/cst_int_test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "sdsl/suffix_trees.hpp"
#include "sdsl/lcp.hpp"
#include "sdsl/construct.hpp"
#include "cst_helper.hpp"
#include "gtest/gtest.h"
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions test/int_vector_buffer_test.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "sdsl/int_vector.hpp"
#include "sdsl/int_vector_buffer.hpp"
#include "sdsl/util.hpp"
#include "gtest/gtest.h"
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions test/replace_int_vector_value.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "sdsl/int_vector.hpp"
#include "sdsl/int_vector_buffer.hpp"
#include <string>
#include <cstdlib>

Expand Down
Loading

0 comments on commit 2cb3ec8

Please sign in to comment.