DynaMix
1.3.7
A new take on polymorphism in C++
|
#include <object_type_template.hpp>
Public Member Functions | |
void | apply_to (object &o) const |
Private Member Functions | |
template<typename Mixin > | |
object_mutator & | add () |
bool | add (const char *mixin_type_name) |
void | add (mixin_id id) |
template<typename Mixin > | |
object_mutator & | remove () |
bool | remove (const char *mixin_type_name) |
void | remove (mixin_id id) |
void | cancel () |
void | create () |
const object_type_mutation & | mutation () const |
Private Attributes | |
object_type_mutation | _mutation |
const object_type_info * | _target_type_info |
bool | _is_created |
An object type template. Internally it represents a prepared object type information.
It makes the construction of objects from the same type (same mixins) slightly faster, than using mutate
.