#include <utility_class_id.h>
Public Member Functions | |
virtual size_t const | class_id () const |
Static Public Member Functions | |
static size_t const | id () |
Helper class for solving ambiguousity between class IDs. This class enables inheritance from another class, which already have a class ID.
Problem:
class SomeBase: public ClassID<SomeBase> { ... }; class SomeClass: public SomeBase , public ClassID<SomeClass> { ... }; // Error: id() and class_id() will be ambiguous
Solution:
class SomeClass: public ClassIDCompositor<SomeBase, SomeClass> { ... };
Base | Some base class, which will also be inherited | |
Self | The deriving class |
virtual size_t const OpenTissue::utility::ClassIDCompositor< Base, Self >::class_id | ( | ) | const [inline, virtual] |
Query the class ID.
Reimplemented from OpenTissue::utility::ClassID< Self >.
static size_t const OpenTissue::utility::ClassIDCompositor< Base, Self >::id | ( | ) | [inline, static] |