caLib_abstract.rule

This module defines the notion of a $(RULE). A $(RULE) is the part of a cellular automaton responsible for changing the ca's cells state. Each generation the $(RULE) is applied to the cellular automaton in order to get it's cells new state. * It provides templates for testing whether a given object is a $(RULE), and what kind of $(RULE) it is. * $(CALIB_ABSTRACT_DESC)

Members

Structs

ReversibleRule
struct ReversibleRule

Example of a ReversibleRule

Rule
struct Rule

Example of a Rule

Examples

1 struct A { void applyRule() {} }
2 struct B { int applyRule(int b) { return int.init; } }
3 
4 static assert( isRule!A );
5 static assert(!isRule!B );
6 static assert(!isRule!string );

Meta