ca-lib2 v2.0.2 (2017-03-16T06:40:07Z)
Dub
Repo
TotalisticRule
caLib
rules
TotalisticRule
Undocumented in source.
struct
TotalisticRule (
Lt
)
if
(
isAnyLattice
!
Lt
&&
Lt
.
Dimension
== 2
&&
is
(
Lt
.
CellStateType
:
ubyte
)
&&
isStaticNeighbourhood
!(
Lt
.
NeighbourhoodType
, 2)
&&
Lt
.
NeighbourhoodType
.
NeighboursAmount
+ 1 < uint.
max
) {
enum
uint
configurations
;
BigInt
maxRuleNumber
;
this
(Lt* lattice, BigInt ruleNumber);
this
(Lt* lattice, ubyte[] ruleSet);
void
applyRule
();
BigInt
getRuleNumber
();
ubyte
[]
getRuleSet
();
}
Constructors
this
this
(Lt* lattice, BigInt ruleNumber)
Undocumented in source.
this
this
(Lt* lattice, ubyte[] ruleSet)
Undocumented in source.
Members
Functions
applyRule
void
applyRule
()
Undocumented in source. Be warned that the author may not have intended to support it.
getRuleNumber
BigInt
getRuleNumber
()
Undocumented in source. Be warned that the author may not have intended to support it.
getRuleSet
ubyte
[]
getRuleSet
()
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
configurations
enum
uint
configurations
;
Undocumented in source.
maxRuleNumber
BigInt
maxRuleNumber
;
Undocumented in source.
Meta
Source
See Implementation
caLib
rules
TotalisticRule
functions
create_TotalisticRule
structs
TotalisticRule