openMSX
openmsx::MapConstructorArguments< Base, Derived > Struct Template Reference

Define mapping between constructor arg list of base- and subclass. More...

#include <serialize_meta.hh>

Inheritance diagram for openmsx::MapConstructorArguments< Base, Derived >:
Inheritance graph
[legend]
Collaboration diagram for openmsx::MapConstructorArguments< Base, Derived >:
Collaboration graph
[legend]

Detailed Description

template<typename Base, typename Derived>
struct openmsx::MapConstructorArguments< Base, Derived >

Define mapping between constructor arg list of base- and subclass.

When loading a polymorphic base class, the user must provide the union of constructor arguments for all subclasses (because it's not yet known which concrete subtype will be deserialized). This class defines the mapping between this union of parameters and the subset used for a specific subclass.

In case the parameter list of the subclass is empty or if it is the same as the base class, this mapping will be defined automatically. In the other cases, the user must define a specialization of this class.

Definition at line 124 of file serialize_meta.hh.


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