a2dRouteData::BorderQueue Class Reference

This is a priority queue for border points. More...

#include <wire.h>

Collaboration diagram for a2dRouteData::BorderQueue:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 BorderQueue ()
 constructor
 ~BorderQueue ()
 destructor
void Add (const BorderPoint &brdr)
 Add a border object.
const BorderPointGetBest ()
 Get the best border point.
void RmvBest ()
 Remove the best border point.
bool IsNotEmpty ()
 Check if the queue is empty.

Protected Types

enum  { m_ncost = 1024, m_costmask = 1023 }
 some constants More...

Protected Attributes

unsigned m_mincostindex
 ring index of the current minimum cost (starting point or ring buffer )
BorderPointm_costring [m_ncost]
 The starting points of the cost lists.
BorderPointm_freelist
 The starting point of the free list.
AllocBlockm_memory
 Current memory allocation block.
int m_freememory
 Number of free elements in memory allocation block.

Classes

struct  AllocBlock
 Memory allocation block. More...


Detailed Description

This is a priority queue for border points.

This queue makes use of the following facts:

Definition at line 180 of file wire.h.


Member Enumeration Documentation

anonymous enum [protected]

some constants

Enumerator:
m_ncost  number of descrete cost values ( a power of 2 )
m_costmask  bit mask to project a cost value to a ring buffer index (1-m_ncost)

Definition at line 205 of file wire.h.


The documentation for this class was generated from the following files:
a2dRouteData::BorderQueue Class Reference -- Tue Aug 31 18:33:47 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation