started working on new Autoarr and Hashtable

This commit is contained in:
2022-05-10 01:07:07 +03:00
parent 745ae56aad
commit 343d23dc26
8 changed files with 125 additions and 3 deletions

View File

@@ -4,7 +4,6 @@
extern "C" {
#endif
#include "../base/base.h"
#include "hash.h"
#include "KeyValuePair.h"

View File

@@ -0,0 +1,35 @@
#include "Hashtable2.hpp"
//
//
//
template<typename TKey, typename TValue>
Hashtable2<TKey, TValue>::Hashtable2() {
}
template<typename TKey, typename TValue>
TValue Hashtable2<TKey, TValue>::Get(TKey key) {
}
template<typename TKey, typename TValue>
TValue Hashtable2<TKey, TValue>::GetPtr(TKey key) {
}
template<typename TKey, typename TValue>
bool Hashtable2<TKey, TValue>::AddOrSet(TKey key, TValue) {
}
template<typename TKey, typename TValue>
bool Hashtable2<TKey, TValue>::Remove(TKey) {
}
template<typename TKey, typename TValue>
Hashtable2<TKey, TValue>::~Hashtable2() {
}

View File

@@ -0,0 +1,20 @@
#pragma once
#include "hash.h"
#include "../Autoarr/Autoarr2.hpp"
template <typename TKey, typename TValue>
class Hashtable2{
uint8 hein;
public:
Autoarr2<TKey>* Keys;
Autoarr2<TValue>* Values;
Hashtable2();
TValue Get(TKey key);
TValue GetPtr(TKey key);
bool AddOrSet(TKey key, TValue);
bool Remove(TKey);
~Hashtable2();
};