caLib_abstract.neighbourhood

This module defines the notion of a $(NEIGHBOURHOOD). A $(NEIGHBOURHOOD) defines what cells in the lattice that are "neighbours". Most ca $(RULE)s change the state of a cell depending on the cells neighbours.

It provides templates for testing whether a given object is a $(NEIGHBOURHOOD), and what kind of $(NEIGHBOURHOOD) it is.

$(CALIB_ABSTRACT_DESC)

Members

Structs

Neighbourhood
struct Neighbourhood(uint N)

Example of a Neighbourhood

StaticNeighbourhood
struct StaticNeighbourhood(uint N)

Example of a StaticNeighbourhood

Templates

isAnyNeighbourhood
template isAnyNeighbourhood(T)

$(IS_ANY Neighbourhood)

isAnyStaticNeighbourhood
template isAnyStaticNeighbourhood(T)

$(IS_ANY StaticNeighbourhood)

isNeighbourhood
template isNeighbourhood(T, uint N)

Tests if something is a Neighbourhood.

isStaticNeighbourhood
template isStaticNeighbourhood(T, uint N)

Tests if something is a StaticNeighbourhood.

Meta