DynaMix  1.3.7
A new take on polymorphism in C++
dynamix::substitute_mixin< SourceMixin, TargetMixin > 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 _source_id
 
const mixin_id _target_id
 

Detailed Description

template<typename SourceMixin, typename TargetMixin>
class dynamix::substitute_mixin< SourceMixin, TargetMixin >

A mutation rule for a substitute mixin.

If active, such rule will cause any mutation that tries to add SourceMixin to instead add TargetMixin.

Template Parameters
SourceMixinThe mixin type to be substituted
TargetMixinThe mixin type that is the substitute

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