Midge  v3.9.2
Data Processing Framework
_type Class Reference

The prototype class that gets replaced by a type. More...

#include <typechain.hh>

Detailed Description

The prototype class that gets replaced by a type.

The type chain is a chain of inheritance based on the types and positions of those types in a type list.

The functionality will be illustrated with an example:

You start with a set of types: [int, float, char]

You have some prototype class that will be used for the inheritance: template< class _type, int _index > class my_prototype

You will effectively end up with this inheritance chain:

my_prototype< char, 2 > ^ | my_prototype< float, 1 > ^ | my_prototype< int, 0 >

I say "effectively" because the actual chain is somewhat more complicated. for each level of the chain you have:

  1. A type_chain class
  2. That type_chain class inherits from my_prototype
  3. That type_chain class also inherits from the next level of the chain

Definition at line 36 of file typechain.hh.


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