PrevUpHomeNext

Class mutually_exclusive_mixins

boost::mixin::mutually_exclusive_mixins

Synopsis

// In header: <boost/mixin/common_mutation_rules.hpp>


class mutually_exclusive_mixins :
  public boost::mixin::mutation_rule, private boost::mixin::mixin_collection
{
public:

  // public member functions
  void apply_to(object_type_mutation &);
};

Description

A mutation rule for mutually exclusive mixins.

If active, such rule will cause a mutation that adds one of the mutually exclusive mixins, to remove all others.

For example, if a, b, and c are mutually exclusive mixins, any mutation that adds, say a, to an object, will automatically remove b and c from it.

mutually_exclusive_mixins public member functions

  1. void apply_to(object_type_mutation & mutation);
    Applies the rule to a mutation.

PrevUpHomeNext