EMAN2
Public Member Functions | Private Attributes | List of all members
wustl_mm::SkeletonMaker::GridQueue2 Class Reference

#include <grid_queue2.h>

Collaboration diagram for wustl_mm::SkeletonMaker::GridQueue2:
Collaboration graph
[legend]

Public Member Functions

 GridQueue2 ()
 
 ~GridQueue2 ()
 
gridQueueElegetNext ()
 
void reset ()
 
int getNumElements ()
 
void prepend (int xx, int yy, int zz)
 
gridQueueEleremove ()
 
gridQueueEleswap ()
 

Private Attributes

gridQueueElehead
 
gridQueueElepre
 
gridQueueEleprepre
 
gridQueueElecur
 
int numEles
 

Detailed Description

Definition at line 13 of file grid_queue2.h.

Constructor & Destructor Documentation

◆ GridQueue2()

GridQueue2::GridQueue2 ( )

Definition at line 9 of file grid_queue2.cpp.

10 {
11 head = NULL ;
12 cur = NULL ;
13 pre = NULL ;
14 prepre = NULL ;
15 numEles = 0 ;
16 }

References cur, head, numEles, pre, and prepre.

◆ ~GridQueue2()

GridQueue2::~GridQueue2 ( )

Definition at line 18 of file grid_queue2.cpp.

19 {
20 gridQueueEle* ele;
21 reset();
22 ele=getNext();
23 while ( (ele=remove()) != NULL ){};
24 }

References getNext(), remove(), and reset().

Member Function Documentation

◆ getNext()

gridQueueEle * GridQueue2::getNext ( )

◆ getNumElements()

int GridQueue2::getNumElements ( )

◆ prepend()

void GridQueue2::prepend ( int  xx,
int  yy,
int  zz 
)

◆ remove()

gridQueueEle * GridQueue2::remove ( )

◆ reset()

void GridQueue2::reset ( )

◆ swap()

gridQueueEle * GridQueue2::swap ( )

Definition at line 94 of file grid_queue2.cpp.

95 {
96 if ( prepre != NULL )
97 {
98 pre->next = cur->next ;
99 cur->next = prepre->next ;
100 prepre->next = cur ;
101
102 }
103 else
104 {
105 pre->next = cur->next ;
106 cur->next = pre ;
107 head = cur ;
108 }
109
110 gridQueueEle* temp = pre ;
111 pre = cur ;
112 cur = temp ;
113
114 return cur ;
115 }

References cur, head, wustl_mm::SkeletonMaker::gridQueueEle::next, pre, and prepre.

Member Data Documentation

◆ cur

gridQueueEle* wustl_mm::SkeletonMaker::GridQueue2::cur
private

Definition at line 28 of file grid_queue2.h.

Referenced by getNext(), GridQueue2(), remove(), reset(), and swap().

◆ head

gridQueueEle* wustl_mm::SkeletonMaker::GridQueue2::head
private

Definition at line 25 of file grid_queue2.h.

Referenced by getNext(), GridQueue2(), prepend(), remove(), and swap().

◆ numEles

int wustl_mm::SkeletonMaker::GridQueue2::numEles
private

Definition at line 29 of file grid_queue2.h.

Referenced by getNumElements(), GridQueue2(), prepend(), and remove().

◆ pre

gridQueueEle* wustl_mm::SkeletonMaker::GridQueue2::pre
private

Definition at line 26 of file grid_queue2.h.

Referenced by getNext(), GridQueue2(), remove(), reset(), and swap().

◆ prepre

gridQueueEle* wustl_mm::SkeletonMaker::GridQueue2::prepre
private

Definition at line 27 of file grid_queue2.h.

Referenced by getNext(), GridQueue2(), reset(), and swap().


The documentation for this class was generated from the following files: