-
Notifications
You must be signed in to change notification settings - Fork 294
/
test-Colors.cc
29 lines (23 loc) · 914 Bytes
/
test-Colors.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// This file is part of khmer, http://github.com/ged-lab/khmer/, and is
// Copyright (C) Michigan State University, 2013. It is licensed under
// the three-clause BSD license; see doc/LICENSE.txt.
// Contact: khmer-project@idyll.org
//
#include "khmer.hh"
#include "hashtable.hh"
#include "hashbits.hh"
#include "labelhash.hh"
#include <iostream>
using namespace khmer;
int main()
{
HashIntoType sizes[] = { 100000003, 100000004, 100000007, 10000000011};
std::vector<HashIntoType> sizes_vec (sizes,
sizes + sizeof(sizes) / sizeof(HashIntoType) );
khmer::LabelHash * lh_pointer = new khmer::LabelHash(20, sizes_vec);
khmer::Hashbits * hb_pointer = (khmer::Hashbits *)lh_pointer;
std::cout << "lh_pointer n_tags: " << lh_pointer->n_tags() << std::endl;
std::cout << "hb_pointer n_tags: " << hb_pointer->n_tags() << std::endl;
return 0;
}