mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 10:32:29 +00:00
chore(hash): clean up param names and function signatures
This commit is contained in:
parent
8e6e2d2240
commit
b1a5b24f6d
1 changed files with 17 additions and 17 deletions
|
|
@ -17,26 +17,26 @@ class TSHashTable {
|
||||||
// Member functions
|
// Member functions
|
||||||
~TSHashTable();
|
~TSHashTable();
|
||||||
void Clear();
|
void Clear();
|
||||||
uint32_t ComputeSlot(uint32_t);
|
uint32_t ComputeSlot(uint32_t hashval);
|
||||||
void Destroy();
|
void Destroy();
|
||||||
int32_t GetLinkOffset();
|
int32_t GetLinkOffset();
|
||||||
T* Head();
|
T* Head();
|
||||||
void Initialize();
|
void Initialize();
|
||||||
bool Initialized();
|
bool Initialized();
|
||||||
void Insert(T*, uint32_t, const TKey&);
|
void Insert(T* ptr, uint32_t hashval, const TKey& key);
|
||||||
void InternalClear(int32_t warn);
|
void InternalClear(int32_t warn);
|
||||||
void InternalDelete(T* ptr);
|
void InternalDelete(T* ptr);
|
||||||
void InternalLinkNode(T*, uint32_t);
|
void InternalLinkNode(T* ptr, uint32_t hashval);
|
||||||
T* InternalNew(STORM_EXPLICIT_LIST(T, m_linktoslot)*, size_t, size_t);
|
T* InternalNew(STORM_EXPLICIT_LIST(T, m_linktoslot)* listptr, size_t extrabytes, uint32_t flags);
|
||||||
T* InternalNewNode(uint32_t, size_t, size_t);
|
T* InternalNewNode(uint32_t, size_t extrabytes, uint32_t flags);
|
||||||
int32_t MonitorFullness(uint32_t);
|
int32_t MonitorFullness(uint32_t slot);
|
||||||
T* New(const char*, size_t, size_t);
|
T* New(const char* str, size_t extrabytes, uint32_t flags);
|
||||||
T* New(uint32_t, const char*, size_t, uint32_t);
|
T* New(uint32_t hashval, const char* str, size_t extrabytes, uint32_t flags);
|
||||||
T* New(uint32_t, const TKey&, size_t, uint32_t);
|
T* New(uint32_t hashval, const TKey& key, size_t extrabytes, uint32_t flags);
|
||||||
T* Next(const T*);
|
T* Next(const T* ptr);
|
||||||
T* Ptr(const char*);
|
T* Ptr(const char* str);
|
||||||
T* Ptr(uint32_t, const TKey&);
|
T* Ptr(uint32_t hashval, const TKey& key);
|
||||||
void Unlink(T*);
|
void Unlink(T* ptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T, class TKey>
|
template <class T, class TKey>
|
||||||
|
|
@ -135,12 +135,12 @@ void TSHashTable<T, TKey>::InternalLinkNode(T* ptr, uint32_t hashval) {
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class T, class TKey>
|
template <class T, class TKey>
|
||||||
T* TSHashTable<T, TKey>::InternalNew(STORM_EXPLICIT_LIST(T, m_linktoslot)* listptr, size_t extrabytes, size_t flags) {
|
T* TSHashTable<T, TKey>::InternalNew(STORM_EXPLICIT_LIST(T, m_linktoslot)* listptr, size_t extrabytes, uint32_t flags) {
|
||||||
return listptr->NewNode(1, extrabytes, flags);
|
return listptr->NewNode(1, extrabytes, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class T, class TKey>
|
template <class T, class TKey>
|
||||||
T* TSHashTable<T, TKey>::InternalNewNode(uint32_t hashval, size_t extrabytes, size_t flags) {
|
T* TSHashTable<T, TKey>::InternalNewNode(uint32_t hashval, size_t extrabytes, uint32_t flags) {
|
||||||
if (!this->Initialized()) {
|
if (!this->Initialized()) {
|
||||||
this->Initialize();
|
this->Initialize();
|
||||||
}
|
}
|
||||||
|
|
@ -166,9 +166,9 @@ int32_t TSHashTable<T, TKey>::MonitorFullness(uint32_t slot) {
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class T, class TKey>
|
template <class T, class TKey>
|
||||||
T* TSHashTable<T, TKey>::New(const char* str, size_t a2, size_t a3) {
|
T* TSHashTable<T, TKey>::New(const char* str, size_t extrabytes, uint32_t flags) {
|
||||||
uint32_t hashval = SStrHashHT(str);
|
uint32_t hashval = SStrHashHT(str);
|
||||||
return this->New(hashval, str, a2, a3);
|
return this->New(hashval, str, extrabytes, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class T, class TKey>
|
template <class T, class TKey>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue