Struct SendIntraMessageIf

Struct Documentation

struct dish2::SendIntraMessageIf

Conditionally send a message to a co-cardinal.

If reg[arg_0] is nonzero, generates a message tagged with the instruction’s tag that contains the core’s current register state. Sends this message to a target cardinal within the cell.

To determine the target cardinal, sums instruction arguments then calculates the remainder of integer division by the number of co-cardinals.

Public Static Functions

template<typename Spec>
void run(sgpl::Core<Spec> &core, const sgpl::Instruction<Spec> &inst, const sgpl::Program<Spec>&, typename Spec::peripheral_t &peripheral) noexcept
std::string name()
size_t prevalence()
template<typename Spec>
auto descriptors(const sgpl::Instruction<Spec> &inst)
template<typename Spec>
std::set<std::string> categories(const sgpl::Instruction<Spec>&)