Bifrost SDK
Bifrost SDK documentation
Amino::TypeId Class Reference

Type identifier for a type. More...

#include <TypeId.h>

Public Member Functions

 TypeId ()=delete
 Can't default construct a TypeId. More...
 
size_t computeHash () const
 Computes a hash for this TypeId. More...
 
bool operator== (TypeId o) const noexcept
 TypeId's equality comparison operators. More...
 
bool operator!= (TypeId o) const noexcept
 TypeId's equality comparison operators. More...
 
bool operator< (TypeId o) const noexcept
 TypeId's ordering comparison operators, to allow storing TypeId in ordered containers (ONLY!). More...
 
bool operator<= (TypeId o) const noexcept
 TypeId's ordering comparison operators, to allow storing TypeId in ordered containers (ONLY!). More...
 
bool operator> (TypeId o) const noexcept
 TypeId's ordering comparison operators, to allow storing TypeId in ordered containers (ONLY!). More...
 
bool operator>= (TypeId o) const noexcept
 TypeId's ordering comparison operators, to allow storing TypeId in ordered containers (ONLY!). More...
 

Detailed Description

Type identifier for a type.

Allows comparing types by their identifiers. Used by Any to identify its payload type.

See getTypeId.

Definition at line 45 of file TypeId.h.

Constructor & Destructor Documentation

◆ TypeId()

Amino::TypeId::TypeId ( )
delete

Can't default construct a TypeId.

Member Function Documentation

◆ computeHash()

size_t Amino::TypeId::computeHash ( ) const
inline

Computes a hash for this TypeId.

Warning
This compute hash member functions is only meant to enable the use of Amino::TypeId in unordered containers. The hashing itself is arbitrary and subject to change. The computed hash may also differ between different compilers and platforms.

Definition at line 58 of file TypeId.h.

◆ operator!=()

bool Amino::TypeId::operator!= ( TypeId  o) const
inlinenoexcept

TypeId's equality comparison operators.

Definition at line 63 of file TypeId.h.

◆ operator<()

bool Amino::TypeId::operator< ( TypeId  o) const
inlinenoexcept

TypeId's ordering comparison operators, to allow storing TypeId in ordered containers (ONLY!).

Warning
The ordering comparison operators are ONLY meant to allow storing TypeId in ordered container. The ordering itself is arbitrary and subject to changes. The ordering may also differ between different compilers and platforms.

Definition at line 76 of file TypeId.h.

◆ operator<=()

bool Amino::TypeId::operator<= ( TypeId  o) const
inlinenoexcept

TypeId's ordering comparison operators, to allow storing TypeId in ordered containers (ONLY!).

Warning
The ordering comparison operators are ONLY meant to allow storing TypeId in ordered container. The ordering itself is arbitrary and subject to changes. The ordering may also differ between different compilers and platforms.

Definition at line 77 of file TypeId.h.

◆ operator==()

bool Amino::TypeId::operator== ( TypeId  o) const
inlinenoexcept

TypeId's equality comparison operators.

Definition at line 62 of file TypeId.h.

◆ operator>()

bool Amino::TypeId::operator> ( TypeId  o) const
inlinenoexcept

TypeId's ordering comparison operators, to allow storing TypeId in ordered containers (ONLY!).

Warning
The ordering comparison operators are ONLY meant to allow storing TypeId in ordered container. The ordering itself is arbitrary and subject to changes. The ordering may also differ between different compilers and platforms.

Definition at line 78 of file TypeId.h.

◆ operator>=()

bool Amino::TypeId::operator>= ( TypeId  o) const
inlinenoexcept

TypeId's ordering comparison operators, to allow storing TypeId in ordered containers (ONLY!).

Warning
The ordering comparison operators are ONLY meant to allow storing TypeId in ordered container. The ordering itself is arbitrary and subject to changes. The ordering may also differ between different compilers and platforms.

Definition at line 79 of file TypeId.h.