isBlockLattice

Tests if something is a BlockLattice.

returns true if T is a BlockLattice of dimension N, Storing cells of type Ct.

A BlockLattice is a Lattice with the additional functions:
Ct[] getBlock(string)(Coord), Ct[] getBlock(Coord),
void setBlock(string)(Coord, Ct[]), void setBlock(Coord, Ct[]),
void iterateBlocks(string)(void delegate(Coord position)), void iterate(void delegate(Coord position)),
Where Coord is an alias for a typetuple containing int's, one int for each dimension (in a 3 dimensional BlockLattice Coord would be: (int, int, int)).

template isBlockLattice (
T
Ct
uint N
) {}

Members

Aliases

Coord
alias Coord = Repeat!(N, int)
Undocumented in source.

Manifest constants

isBlockLattice
enum isBlockLattice;
Undocumented in source.

Parameters

T

type to be tested

Ct

type of the cells the BlockLattice should contain

N

number of dimensions

Return Value

true if T is a BlockLattice, false if not

Meta