#include <utility_class_id.h>
Public Member Functions | |
virtual size_t const | class_id () const |
Static Public Member Functions | |
static size_t const | id () |
CRTP Implementation of the ClassIDInterface.
Usage: To enable class IDs for a custom class, simply inherite this class giving itself as the template argument.
Example:
class SomeClass: public ClassID<SomeClass> { ... };
T | The deriving class |
virtual size_t const OpenTissue::utility::ClassID< T >::class_id | ( | ) | const [inline, virtual] |
Query the class ID.
Implements OpenTissue::utility::ClassIDInterface.
Reimplemented in OpenTissue::sdf::Geometry< mesh_type_, grid_type_ >, OpenTissue::geometry::AABB< math_types_ >, OpenTissue::geometry::Capsule< math_types_ >, OpenTissue::geometry::Cylinder< math_types_ >, OpenTissue::geometry::Ellipsoid< math_types_ >, OpenTissue::geometry::HybridVolume< math_types_ >, OpenTissue::geometry::OBB< math_types_ >, OpenTissue::geometry::Plane< math_types_ >, OpenTissue::geometry::Prism< math_types_ >, OpenTissue::geometry::Sphere< math_types_ >, OpenTissue::geometry::Tetrahedron< math_types_ >, OpenTissue::geometry::Torus< math_types_ >, OpenTissue::geometry::Triangle< math_types_ >, OpenTissue::utility::ClassIDCompositor< Base, Self >, DTable::A, DTable::B, OpenTissue::geometry::AABB< typename types::math_policy >, OpenTissue::geometry::AABB< math_types >, OpenTissue::geometry::Cylinder< math_types >, OpenTissue::geometry::OBB< math_types >, OpenTissue::geometry::Plane< types >, OpenTissue::geometry::Plane< math_types >, OpenTissue::geometry::Prism< math_types >, and OpenTissue::geometry::Sphere< math_types >.
static size_t const OpenTissue::utility::ClassID< T >::id | ( | ) | [inline, static] |
Query the object ID.
Reimplemented in OpenTissue::utility::ClassIDCompositor< Base, Self >.