DynaMix  1.3.7
A new take on polymorphism in C++
dynamix::mandatory_mixin< Mixin > Class Template Reference

#include <common_mutation_rules.hpp>

Public Member Functions

virtual void apply_to (object_type_mutation &mutation) override
 Called when applying the mutation rule.
 

Protected Attributes

const mixin_id _id
 

Detailed Description

template<typename Mixin>
class dynamix::mandatory_mixin< Mixin >

A mutation rule for a mandatory mixin.

If active, such rule will cause every mutation to always add the mixin to an object and will ignore any attempts of a mutation to remove it.

Template Parameters
MixinThe mandatory mixin type

The documentation for this class was generated from the following file: