Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

CFiFo Class Reference

A first-in first-out queue of pixels. More...

#include <FiFo.h>

Inheritance diagram for CFiFo

Inheritance graph

[legend]
Collaboration diagram for CFiFo:

Collaboration graph

[legend]
List of all members.

Public Methods

 CFiFo ()
 ~CFiFo ()
bool empty ()
 Check if the queue is empty.

void add (LPPIXEL entry)
 Adding a pixel to the queue in 4 or 8 connectivity.

void add (LPPIXEL entry, short parity)
 Adding a pixel to the queue in 6 connectivity.

void first (LPPIXEL *p)
 Get the first pixel of the queue in 4 or 8 connectivity.

void first (LPPIXEL *p, short *parity)
 Get the first pixel of the queue in 6 connectivity.

void invert (void)
 invert the queue (not always possible).


Private Attributes

short dir
deque<LPPIXELqueue
deque<short> qparity

Detailed Description

A first-in first-out queue of pixels.

Author(s):
Laurent Najman
Date:
7/22/01
Keywords:
Queue
Version:
Id: FiFo.h,v 1.2 2001/08/28 22:00:17 laurentnajman Exp
Content:
An implementation of FiFo (first-in, first out) queue for use in morphological algorithm.


The documentation for this class was generated from the following file:
Generated at Sun May 12 19:04:25 2002 for OpenMorpho by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000