diff options
author | rtk0c <[email protected]> | 2022-06-02 21:34:16 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-06-02 21:34:16 -0700 |
commit | bd07ae3f4e1bcdedc3e373460671ca9713a03de5 (patch) | |
tree | 15c897891474a97983f247196923f8e4f2184083 /source/10-common/Type2ObjectMap.hpp | |
parent | 8a0f2cd0b398ee0b7740e44a0e5fb2f75d090ccb (diff) |
Changeset: 60 Add struct/class scanning to codegen
Diffstat (limited to 'source/10-common/Type2ObjectMap.hpp')
-rw-r--r-- | source/10-common/Type2ObjectMap.hpp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/source/10-common/Type2ObjectMap.hpp b/source/10-common/Type2ObjectMap.hpp new file mode 100644 index 0000000..24c45f3 --- /dev/null +++ b/source/10-common/Type2ObjectMap.hpp @@ -0,0 +1,38 @@ +#pragma once + +#include "TypeTraits.hpp" + +#include <cstddef> + +template <typename TValue> +class Type2ObjectMap { +public: + template <typename TType> + TType& Insert(TType&& value) { + // TODO + } + + template <typename TType> + TType& InsertOrAssign(TType& value) { + // TODO + } + + template <typename TType> + TType Remove() { + // TODO + } + + template <typename TType> + const TValue* Find() const { + // TODO + } + + template <class TType> + TValue* Find() { + return const_cast<TValue*>(const_cast<const Type2ObjectMap*>(this)->Find<TType>()); + } + + size_t size() const { + // TODO + } +}; |