EMAN2
grid_queue.h
Go to the documentation of this file.
1// Copyright (C) 2005-2008 Washington University in St Louis, Baylor College of Medicine. All rights reserved
2// Author: Tao Ju, Refactored by Sasakthi S. Abeysinghe (sasakthi@gmail.com)
3// Description: Grid queue
4
5#ifndef SKELETON_MAKER_GRID_QUEUE_H
6#define SKELETON_MAKER_GRID_QUEUE_H
7
8#include <cstdio>
9#include <cstdlib>
10using namespace std;
11
12namespace wustl_mm {
13 namespace SkeletonMaker {
15 {
16 int x, y, z;
17 int score ;
19 };
20
22 {
23 public:
24 GridQueue();
26 int getNumElements();
27 void sort(int eles);
28 void pushQueue(int xx, int yy, int zz);
29 int popQueue(int& xx, int& yy, int& zz);
30
31
32 private:
33 void swapEle(gridQueueEle* pre, gridQueueEle* e1, gridQueueEle* e2);
34 private:
37 int numEles ;
38 };
39
40 }
41}
42#endif
int popQueue(int &xx, int &yy, int &zz)
Definition: grid_queue.cpp:88
void pushQueue(int xx, int yy, int zz)
Definition: grid_queue.cpp:69
void swapEle(gridQueueEle *pre, gridQueueEle *e1, gridQueueEle *e2)
Definition: grid_queue.cpp:112