Mercator
Public Member Functions | Private Attributes
SpiralOrdering Class Reference

A spiral around x,y. More...

#include <RandCache.h>

Inheritance diagram for SpiralOrdering:
ZeroSpiralOrdering RandCache::Ordering

List of all members.

Public Member Functions

 SpiralOrdering (int x, int y)
 Constructor.
RandCache::size_type operator() (int x, int y)
 Determine the order.

Private Attributes

int m_x
 The centre x coordinate of the spiral.
int m_y
 The centre y coordinate of the spiral.

Detailed Description

A spiral around x,y.


Constructor & Destructor Documentation

SpiralOrdering::SpiralOrdering ( int  x,
int  y 
) [inline]

Constructor.

Parameters:
xcentre x coordinate of the spiral.
ycentre y coordinate of the spiral.

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