|
Any++
|
Macros to define behavior of models for trait's. More...
Macros | |
| #define | __ANY_MODEL_MAP(trait_, t) |
| #define | ANY_TEMPLATE_MODEL_MAP(model_, trait_, trait_types) |
| ANY_TEMPLATE_MODEL_MAP macro. | |
| #define | TRAIT_TYPE(Name, T, Trait, ...) |
| translates to the type defined in the model map of a trait. This is useful for associated types, e.g. Return types, which are defined via ANY_TYPE in the trait | |
| #define | ANY_MODEL_MAP(model_, trait_) |
| ANY_MODEL_MAP macro. | |
Macros to define behavior of models for trait's.
| #define __ANY_MODEL_MAP | ( | trait_, | |
| t ) |
| #define ANY_MODEL_MAP | ( | model_, | |
| trait_ ) |
ANY_MODEL_MAP macro.
| class_ | name of the model, including namespace, in brackets |
| trait_ | name of the trait, including namespace |
Must be placed in global namespace, and reachable for the instantiation of the associated v-table.
| #define ANY_TEMPLATE_MODEL_MAP | ( | model_, | |
| trait_, | |||
| trait_types ) |
ANY_TEMPLATE_MODEL_MAP macro.
| model_ | name of the model, including template parameters and namespace in brackets |
| trait_ | name of the trait, including namespace |
| trait_types | types to be used as template parameters for the trait |
Must be placed in global namespace, and reachable for the instantiation of the associated v-table.
| #define TRAIT_TYPE | ( | Name, | |
| T, | |||
| Trait, | |||
| ... ) |
translates to the type defined in the model map of a trait. This is useful for associated types, e.g. Return types, which are defined via ANY_TYPE in the trait
| Name | name of the type definition in the trait |
| T | model type, including template parameters, in brackets |
| Trait | name of the trait, including namespace |
| ... | additional template parameters for the type if it is a template itself |