/usr/include/mash/HashPriorityQueue.h is in libmash-dev 1.1.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 30 31 | // Copyright © 2015, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Todd Treangen,
// Sergey Koren, and Adam Phillippy
//
// See the LICENSE.txt file included with this software for license information.
#ifndef HashPriorityQueue_h
#define HashPriorityQueue_h
#include "hash.h"
#include <queue>
class HashPriorityQueue
{
public:
HashPriorityQueue(bool use64New) : use64(use64New) {}
void clear();
void pop() {use64 ? queue64.pop() : queue32.pop();}
void push(hash_u hash) {use64 ? queue64.push(hash.hash64) : queue32.push(hash.hash32);}
int size() const {return use64 ? queue64.size() : queue32.size();}
hash_u top() const;
private:
bool use64;
std::priority_queue<hash32_t> queue32;
std::priority_queue<hash64_t> queue64;
};
#endif
|