Banuba SDK
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
bnb::identified_class< IdType, T > Class Template Reference
Inheritance diagram for bnb::identified_class< IdType, T >:
bnb::base_event< effect_event > bnb::base_event< empty_event< Count > > bnb::base_event< full_image_t > bnb::base_event< simple_event< T, Count > > bnb::base_event< T > bnb::effect_event bnb::empty_event< Count > bnb::simple_event< T, Count > bnb::transformable_event< T >

Static Public Member Functions

static const char * get_name () noexcept
 
static IdType get_id () noexcept
 

Detailed Description

template<typename IdType, typename T>
class bnb::identified_class< IdType, T >

Definition at line 18 of file class_unique_id.hpp.

Member Function Documentation

◆ get_id()

template<typename IdType , typename T >
static IdType bnb::identified_class< IdType, T >::get_id ( )
inlinestaticnoexcept

Definition at line 30 of file class_unique_id.hpp.

31 {
32 return static_cast<IdType>(class_unique_id<T>());
33 }

◆ get_name()

template<typename IdType , typename T >
static const char * bnb::identified_class< IdType, T >::get_name ( )
inlinestaticnoexcept

Definition at line 21 of file class_unique_id.hpp.

22 {
23 try {
24 return typeid(T).name();
25 } catch (const std::bad_typeid&) {
26 return "unknown";
27 }
28 }

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