PlayRho  2.0.0
An interactive physics engine & library.
playrho::TypeID Class Reference

Type identifier. More...

#include <playrho/TypeInfo.hpp>

Public Member Functions

 TypeID () noexcept=default
 Default constructor. More...
 
constexpr const char * GetName () const noexcept
 Gets demangled name of the type this was generated for as a a non-null, null terminated string buffer.
 

Friends

template<typename T >
TypeID GetTypeID () noexcept
 Gets the type ID for the function's template parameter type with its name demangled.
 
template<typename T >
TypeID GetTypeID (const T &) noexcept
 Gets the type ID for the function parameter type with its name demangled.
 
bool operator!= (const TypeID &lhs, const TypeID &rhs) noexcept
 Inequality operator support via "hidden friend" function.
 
bool operator< (const TypeID &lhs, const TypeID &rhs) noexcept
 Less-than operator support via "hidden friend" function. More...
 
bool operator<= (const TypeID &lhs, const TypeID &rhs) noexcept
 Less-than-or-equal operator support via "hidden friend" function. More...
 
bool operator== (const TypeID &lhs, const TypeID &rhs) noexcept
 Equality operator support via "hidden friend" function.
 
bool operator> (const TypeID &lhs, const TypeID &rhs) noexcept
 Greater-than operator support via "hidden friend" function. More...
 
bool operator>= (const TypeID &lhs, const TypeID &rhs) noexcept
 Greater-than-or-equal operator support via "hidden friend" function. More...
 

Detailed Description

Type identifier.

Note
This provides value semantics like being copyable, assignable, and equality comparable.

Constructor & Destructor Documentation

◆ TypeID()

playrho::TypeID::TypeID ( )
defaultnoexcept

Default constructor.

Postcondition
A type identifier equivalent to the value returned by GetTypeID<void>().

Friends And Related Function Documentation

◆ operator<

bool operator< ( const TypeID lhs,
const TypeID rhs 
)
friend

Less-than operator support via "hidden friend" function.

Note
The ordering of type IDs is unspecified. This is provided anyway to support things like associative containers.

◆ operator<=

bool operator<= ( const TypeID lhs,
const TypeID rhs 
)
friend

Less-than-or-equal operator support via "hidden friend" function.

Note
The ordering of type IDs is unspecified. This is provided anyway to support things like associative containers.

◆ operator>

bool operator> ( const TypeID lhs,
const TypeID rhs 
)
friend

Greater-than operator support via "hidden friend" function.

Note
The ordering of type IDs is unspecified. This is provided anyway to support things like associative containers.

◆ operator>=

bool operator>= ( const TypeID lhs,
const TypeID rhs 
)
friend

Greater-than-or-equal operator support via "hidden friend" function.

Note
The ordering of type IDs is unspecified. This is provided anyway to support things like associative containers.

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