EMAN2
libEM
gorgon
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>
10
using namespace
std;
11
12
namespace
wustl_mm
{
13
namespace
SkeletonMaker {
14
struct
gridQueueEle
15
{
16
int
x
,
y
,
z
;
17
int
score
;
18
gridQueueEle
*
next
;
19
};
20
21
class
GridQueue
22
{
23
public
:
24
GridQueue
();
25
gridQueueEle
*
getHead
();
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
:
35
gridQueueEle
*
head
;
36
gridQueueEle
*
tail
;
37
int
numEles
;
38
};
39
40
}
41
}
42
#endif
wustl_mm::SkeletonMaker::GridQueue
Definition:
grid_queue.h:22
wustl_mm::SkeletonMaker::GridQueue::popQueue
int popQueue(int &xx, int &yy, int &zz)
Definition:
grid_queue.cpp:88
wustl_mm::SkeletonMaker::GridQueue::getHead
gridQueueEle * getHead()
Definition:
grid_queue.cpp:14
wustl_mm::SkeletonMaker::GridQueue::pushQueue
void pushQueue(int xx, int yy, int zz)
Definition:
grid_queue.cpp:69
wustl_mm::SkeletonMaker::GridQueue::tail
gridQueueEle * tail
Definition:
grid_queue.h:36
wustl_mm::SkeletonMaker::GridQueue::numEles
int numEles
Definition:
grid_queue.h:37
wustl_mm::SkeletonMaker::GridQueue::swapEle
void swapEle(gridQueueEle *pre, gridQueueEle *e1, gridQueueEle *e2)
Definition:
grid_queue.cpp:112
wustl_mm::SkeletonMaker::GridQueue::getNumElements
int getNumElements()
Definition:
grid_queue.cpp:18
wustl_mm::SkeletonMaker::GridQueue::head
gridQueueEle * head
Definition:
grid_queue.h:35
wustl_mm::SkeletonMaker::GridQueue::sort
void sort(int eles)
Definition:
grid_queue.cpp:23
wustl_mm::SkeletonMaker::GridQueue::GridQueue
GridQueue()
Definition:
grid_queue.cpp:8
wustl_mm
Definition:
grid_queue.h:12
wustl_mm::SkeletonMaker::gridQueueEle
Definition:
grid_queue.h:15
wustl_mm::SkeletonMaker::gridQueueEle::score
int score
Definition:
grid_queue.h:17
wustl_mm::SkeletonMaker::gridQueueEle::y
int y
Definition:
grid_queue.h:16
wustl_mm::SkeletonMaker::gridQueueEle::x
int x
Definition:
grid_queue.h:16
wustl_mm::SkeletonMaker::gridQueueEle::next
gridQueueEle * next
Definition:
grid_queue.h:18
wustl_mm::SkeletonMaker::gridQueueEle::z
int z
Definition:
grid_queue.h:16
Generated by
1.9.2