|
CeresEngine 0.2.0
A game development framework
|
A reflection pre-processor that creates a hash for an object. More...
#include <CeresEngine/Foundation/Hash.hpp>
Public Types | |
| using | ReflectedType = std::decay_t< T > |
| The type currently being hashed. | |
Public Member Functions | |
| constexpr | Hasher (T &object, const size_t hash=0) noexcept |
| Creates a new hasher for the given object. | |
| template<auto P> | |
| constexpr void | data (StringView) noexcept |
| Combines the hash with the. | |
| template<auto P> | |
| constexpr void | func (StringView) noexcept |
| No-op. | |
Public Attributes | |
| T & | object |
| The object currently being hashed. | |
| size_t | hash |
| The computed hash. | |
A reflection pre-processor that creates a hash for an object.
The type currently being hashed.
|
inlineexplicitconstexprnoexcept |
Creates a new hasher for the given object.
|
inlineconstexprnoexcept |
Combines the hash with the.
| P | A pointer to the data member to be hashed. |
|
inlineconstexprnoexcept |
No-op.
| size_t CeresEngine::Hasher< T >::hash |
The computed hash.
| T& CeresEngine::Hasher< T >::object |
The object currently being hashed.