Skip to content

Commit

Permalink
Rename .h files to .hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
fbreitwieser committed Dec 14, 2017
1 parent af6d723 commit 724c938
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 28 deletions.
10 changes: 5 additions & 5 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ db_sort: krakendb.o quickfile.o

set_lcas: krakendb.o quickfile.o krakenutil.o seqreader.o uid_mapping.o

grade_classification: taxdb.h report-cols.h
grade_classification: taxdb.hpp report-cols.hpp

read_uid_mapping: quickfile.o

Expand All @@ -38,16 +38,16 @@ test_hll_on_db: krakendb.o hyperloglogplus.o quickfile.o

dump_db_kmers: krakendb.o quickfile.o

classify: classify.cpp krakendb.o quickfile.o krakenutil.o seqreader.o uid_mapping.o gzstream.o hyperloglogplus.o taxdb.h report-cols.h readcounts.hpp
classify: classify.cpp krakendb.o quickfile.o krakenutil.o seqreader.o uid_mapping.o gzstream.o hyperloglogplus.o taxdb.hpp report-cols.hpp readcounts.hpp
$(CXX) $(CXXFLAGS) -o classify $^ $(LIBFLAGS)

build_taxdb: taxdb.h report-cols.h quickfile.o
build_taxdb: taxdb.hpp report-cols.hpp quickfile.o

make_seqid_to_taxid_map: quickfile.o

read_uid_mapping: quickfile.o krakenutil.o uid_mapping.o

krakenutil.o: krakenutil.cpp krakenutil.hpp taxdb.h report-cols.h
krakenutil.o: krakenutil.cpp krakenutil.hpp taxdb.hpp report-cols.hpp
$(CXX) $(CXXFLAGS) -c krakenutil.cpp

krakendb.o: krakendb.cpp krakendb.hpp quickfile.hpp
Expand All @@ -65,5 +65,5 @@ quickfile.o: quickfile.cpp quickfile.hpp
uid_mapping.o: krakenutil.hpp uid_mapping.hpp uid_mapping.cpp
$(CXX) $(CXXFLAGS) -c uid_mapping.cpp

hyperloglogplus.o: hyperloglogplus.h hyperloglogplus.cpp
hyperloglogplus.o: hyperloglogplus.hpp hyperloglogplus.cpp
$(CXX) $(CXXFLAGS) -c hyperloglogplus.cpp
2 changes: 1 addition & 1 deletion src/build_taxdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* along with Kraken. If not, see <http://www.gnu.org/licenses/>.
*/

#include "taxdb.h"
#include "taxdb.hpp"
#include "quickfile.hpp"
#include <iostream>
#include <fstream>
Expand Down
2 changes: 1 addition & 1 deletion src/classify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "quickfile.hpp"
#include "seqreader.hpp"
#include "readcounts.hpp"
#include "taxdb.h"
#include "taxdb.hpp"
#include "gzstream.h"
#include "uid_mapping.hpp"
#include <sstream>
Expand Down
2 changes: 1 addition & 1 deletion src/count_unique.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* along with Kraken. If not, see <http://www.gnu.org/licenses/>.
*/

#include "hyperloglogplus.h"
#include "hyperloglogplus.hpp"
#include <iostream>
#include <fstream>
#include <random>
Expand Down
2 changes: 1 addition & 1 deletion src/dump_taxdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* along with Kraken. If not, see <http://www.gnu.org/licenses/>.
*/

#include "taxdb.h"
#include "taxdb.hpp"
#include "quickfile.hpp"
#include <iostream>
#include <fstream>
Expand Down
4 changes: 2 additions & 2 deletions src/grade_classification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* along with Kraken. If not, see <http://www.gnu.org/licenses/>.
*/

#include "taxdb.h"
#include "taxdb.hpp"
#include "quickfile.hpp"
#include <iostream>
#include <fstream>
Expand Down Expand Up @@ -113,7 +113,7 @@ int main(int argc, char **argv) {
exit(1);
} else {
seq_taxid = it->second;
if (!taxdb.hasTaxon(seq_taxid)) {
if (!taxdb.hppasTaxon(seq_taxid)) {
if (ignored_taxa.count(seq_taxid) == 0) {
cerr << "Ignoring taxon " << seq_taxid << " - not in database" << endl;
ignored_taxa.insert(seq_taxid);
Expand Down
File renamed without changes.
14 changes: 13 additions & 1 deletion src/hyperloglogplus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,19 @@
*/


#include "hyperloglogplus.h"
#include "hyperloglogplus.hpp"

#include<vector>
#include<stdexcept>
#include<iostream>
#include<fstream>
#include<math.h> //log
#include<algorithm> //vector.count
#include<bitset>
#include<numeric> //accummulate

#include "hyperloglogplus-bias.hpp"
#include "assert_helpers.h"

/////////////////////////////////////////////////////////////////////
// Helper methods for bit operations
Expand Down
11 changes: 0 additions & 11 deletions src/hyperloglogplus.h → src/hyperloglogplus.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,7 @@
#define HYPERLOGLOGPLUS_H_

#include<vector>
#include<stdexcept>
#include<iostream>
#include<fstream>
#include<math.h> //log
#include<algorithm> //vector.count
#include<bitset>
#include<unordered_set>
#include<numeric> //accummulate

#include "hyperloglogbias.h"
#include "assert_helpers.h"

using namespace std;

//#define HLL_DEBUG
Expand Down
2 changes: 1 addition & 1 deletion src/query_taxdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* along with KrakenHLL. If not, see <http://www.gnu.org/licenses/>.
*/

#include "taxdb.h"
#include "taxdb.hpp"
#include <iostream>
#include <fstream>
#include <unordered_map>
Expand Down
2 changes: 1 addition & 1 deletion src/readcounts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#define READCOUNTS_HPP

#include "kraken_headers.hpp"
#include "hyperloglogplus.h"
#include "hyperloglogplus.hpp"

namespace kraken {
static size_t HLL_PRECISION = 14;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/set_lcas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "krakendb.hpp"
#include "krakenutil.hpp"
#include "seqreader.hpp"
#include "taxdb.h"
#include "taxdb.hpp"
#include "readcounts.hpp"
#include "uid_mapping.hpp"
#include <unordered_map>
Expand Down
2 changes: 1 addition & 1 deletion src/taxdb.h → src/taxdb.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <iomanip>
#include <sstream>
#include <stdexcept>
#include "report-cols.h"
#include "report-cols.hpp"
//#include "readcounts.hpp"


Expand Down
2 changes: 1 addition & 1 deletion src/test_hll_on_db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* along with Kraken. If not, see <http://www.gnu.org/licenses/>.
*/

#include "hyperloglogplus.h"
#include "hyperloglogplus.hpp"
#include "kraken_headers.hpp"
#include "quickfile.hpp"
#include "krakendb.hpp"
Expand Down

0 comments on commit 724c938

Please sign in to comment.