EMAN2
Public Member Functions | Private Attributes
wustl_mm::SkeletonMaker::GridQueue2 Class Reference

#include <grid_queue2.h>

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

List of all members.

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 ( )

Definition at line 9 of file grid_queue2.cpp.

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

                {
                        head = NULL ;
                        cur = NULL ;
                        pre = NULL ;
                        prepre = NULL ;
                        numEles = 0 ;
                }
GridQueue2::~GridQueue2 ( )

Definition at line 18 of file grid_queue2.cpp.

References getNext(), and reset().

                {
                        gridQueueEle* ele;
                        reset();
                        ele=getNext();
                        while ( (ele=remove()) != NULL ){};
                }

Member Function Documentation

gridQueueEle * GridQueue2::getNext ( )
int GridQueue2::getNumElements ( )
void GridQueue2::prepend ( int  xx,
int  yy,
int  zz 
)
gridQueueEle * GridQueue2::remove ( )
void GridQueue2::reset ( )
gridQueueEle * GridQueue2::swap ( )

Definition at line 94 of file grid_queue2.cpp.

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

                {
                        if ( prepre != NULL )
                        {
                                pre->next = cur->next ;
                                cur->next = prepre->next ;
                                prepre->next = cur ;

                        }
                        else
                        {
                                pre->next = cur->next ;
                                cur->next = pre ;
                                head = cur ;
                        }

                        gridQueueEle* temp = pre ;
                        pre = cur ;
                        cur = temp ;

                        return cur ;
                }

Member Data Documentation

Definition at line 28 of file grid_queue2.h.

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

Definition at line 25 of file grid_queue2.h.

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

Definition at line 29 of file grid_queue2.h.

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

Definition at line 26 of file grid_queue2.h.

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

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: