Banuba SDK
Loading...
Searching...
No Matches
bnb::identified_class< IdType, T > Class Template Reference

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: