wxArt2D
Classes | Public Member Functions | Protected Types | Protected Attributes | List of all members
a2dRouteData::BorderQueue Class Reference

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

#include <route.h>

Collaboration diagram for a2dRouteData::BorderQueue:
Collaboration graph
[legend]

Classes

struct  AllocBlock
 Memory allocation block. More...
 

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.
 

Detailed Description

This is a priority queue for border points.

This queue makes use of the following facts:

Definition at line 174 of file route.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 199 of file route.h.


The documentation for this class was generated from the following files:
a2dRouteData::BorderQueue Class Reference -- Sun Oct 12 2014 17:04:48 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation