PlayRho  2.0.0
An interactive physics engine & library.
playrho::d2::part::Discriminator< Base, D > Struct Template Reference

"Discriminator" for named template arguments. More...

#include <playrho/d2/part/Compositor.hpp>

Inheritance diagram for playrho::d2::part::Discriminator< Base, D >:
[legend]
Collaboration diagram for playrho::d2::part::Discriminator< Base, D >:
[legend]

Detailed Description

template<class Base, int D>
struct playrho::d2::part::Discriminator< Base, D >

"Discriminator" for named template arguments.

Note
"[This allows] the various setter types to be identical. (You cannot have multiple direct base classes of the same type. Indirect base classes, on the other hand, can have types that are identical to those of other bases.)"
This class is not intended for standalone use.
Template Parameters
BaseClass to derive from - as a "mixin".
DUnique index of the discriminator within a derived class that can then possibly inherit from multiple discriminators.
See also
https://flylib.com/books/en/3.401.1.126/1/

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