Clementine
Public Member Functions | Friends | List of all members
entt::type_info Class Referencefinal

Implementation specific information about a type. More...

#include <entt.hpp>

Public Member Functions

 type_info () ENTT_NOEXCEPT
 Default constructor.
 
 type_info (const type_info &) ENTT_NOEXCEPT=default
 Default copy constructor.
 
 type_info (type_info &&) ENTT_NOEXCEPT=default
 Default move constructor.
 
type_infooperator= (const type_info &) ENTT_NOEXCEPT=default
 Default copy assignment operator. More...
 
type_infooperator= (type_info &&) ENTT_NOEXCEPT=default
 Default move assignment operator. More...
 
 operator bool () const ENTT_NOEXCEPT
 Checks if a type info object is properly initialized. More...
 
id_type seq () const ENTT_NOEXCEPT
 Type sequential identifier. More...
 
id_type hash () const ENTT_NOEXCEPT
 Type hash. More...
 
std::string_view name () const ENTT_NOEXCEPT
 Type name. More...
 
bool operator== (const type_info &other) const ENTT_NOEXCEPT
 Compares the contents of two type info objects. More...
 

Friends

template<typename >
type_info type_id () ENTT_NOEXCEPT
 Returns the type info object for a given type. More...
 

Detailed Description

Implementation specific information about a type.

Member Function Documentation

◆ hash()

id_type entt::type_info::hash ( ) const
inline

Type hash.

Returns
Type hash.

◆ name()

std::string_view entt::type_info::name ( ) const
inline

Type name.

Returns
Type name.

◆ operator bool()

entt::type_info::operator bool ( ) const
inlineexplicit

Checks if a type info object is properly initialized.

Returns
True if the object is properly initialized, false otherwise.

◆ operator=() [1/2]

type_info& entt::type_info::operator= ( const type_info )
default

Default copy assignment operator.

Returns
This type info object.

◆ operator=() [2/2]

type_info& entt::type_info::operator= ( type_info &&  )
default

Default move assignment operator.

Returns
This type info object.

◆ operator==()

bool entt::type_info::operator== ( const type_info other) const
inline

Compares the contents of two type info objects.

Parameters
otherObject with which to compare.
Returns
False if the two contents differ, true otherwise.

◆ seq()

id_type entt::type_info::seq ( ) const
inline

Type sequential identifier.

Returns
Type sequential identifier.

Friends And Related Function Documentation

◆ type_id

template<typename >
type_info type_id ( )
friend

Returns the type info object for a given type.

Template Parameters
TypeType for which to generate a type info object.
Returns
The type info object for the given type.

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