2016-03-27 11:49:47 +02:00
|
|
|
/*
|
|
|
|
===========================================================================
|
|
|
|
Copyright (C) 2015 the OpenMoHAA team
|
|
|
|
|
|
|
|
This file is part of OpenMoHAA source code.
|
|
|
|
|
|
|
|
OpenMoHAA source code is free software; you can redistribute it
|
|
|
|
and/or modify it under the terms of the GNU General Public License as
|
|
|
|
published by the Free Software Foundation; either version 2 of the License,
|
|
|
|
or (at your option) any later version.
|
|
|
|
|
|
|
|
OpenMoHAA source code is distributed in the hope that it will be
|
|
|
|
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with OpenMoHAA source code; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
===========================================================================
|
|
|
|
*/
|
|
|
|
|
|
|
|
// con_arrayset.h: con_set with an index table
|
|
|
|
|
2023-08-19 02:56:51 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "mem_blockalloc.h"
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename key, typename value>
|
2023-08-19 02:56:51 +02:00
|
|
|
class con_arrayset_enum;
|
2016-03-27 11:49:47 +02:00
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename k, typename v>
|
|
|
|
class con_arrayset : public con_set<k, v>
|
2016-03-27 11:49:47 +02:00
|
|
|
{
|
2023-08-19 03:02:30 +02:00
|
|
|
friend class con_arrayset_enum<k, v>;
|
2023-08-19 02:56:51 +02:00
|
|
|
|
|
|
|
public:
|
2023-08-19 03:02:30 +02:00
|
|
|
class Entry
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
k key;
|
|
|
|
v value;
|
|
|
|
unsigned int index;
|
2023-08-19 02:56:51 +02:00
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
Entry *next;
|
2023-08-19 02:56:51 +02:00
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
public:
|
|
|
|
void *operator new(size_t size);
|
|
|
|
void operator delete(void *ptr);
|
2023-08-19 02:56:51 +02:00
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
Entry();
|
2023-08-19 02:56:51 +02:00
|
|
|
|
|
|
|
#ifdef ARCHIVE_SUPPORTED
|
2023-08-19 03:02:30 +02:00
|
|
|
void Archive(Archiver& arc);
|
2023-08-19 02:56:51 +02:00
|
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
|
|
public:
|
|
|
|
static MEM_BlockAlloc<Entry> Entry_allocator;
|
|
|
|
|
2016-03-27 11:49:47 +02:00
|
|
|
private:
|
2023-08-19 03:02:30 +02:00
|
|
|
Entry **table; // hashtable
|
|
|
|
unsigned int tableLength;
|
|
|
|
unsigned int threshold;
|
|
|
|
unsigned int count; // num of entries
|
|
|
|
short unsigned int tableLengthIndex;
|
|
|
|
Entry *defaultEntry;
|
|
|
|
Entry **reverseTable; // the index table
|
2016-03-27 11:49:47 +02:00
|
|
|
|
|
|
|
protected:
|
2023-08-19 03:02:30 +02:00
|
|
|
Entry *findKeyEntry(const k& key) const;
|
|
|
|
Entry *addKeyEntry(const k& key);
|
|
|
|
Entry *addNewKeyEntry(const k& key);
|
2016-03-27 11:49:47 +02:00
|
|
|
|
|
|
|
public:
|
2023-08-19 03:02:30 +02:00
|
|
|
con_arrayset();
|
|
|
|
~con_arrayset();
|
2023-08-19 02:56:51 +02:00
|
|
|
|
|
|
|
#ifdef ARCHIVE_SUPPORTED
|
2023-08-19 03:02:30 +02:00
|
|
|
void Archive(Archiver& arc);
|
2023-08-19 02:56:51 +02:00
|
|
|
#endif
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
void clear();
|
|
|
|
void resize(int count = 0);
|
2016-03-27 11:49:47 +02:00
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
unsigned int findKeyIndex(const k& key);
|
|
|
|
unsigned int addKeyIndex(const k& key);
|
|
|
|
unsigned int addNewKeyIndex(const k& key);
|
|
|
|
bool remove(const k &key);
|
2016-03-27 11:49:47 +02:00
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
v& operator[](unsigned int index);
|
2016-03-27 11:49:47 +02:00
|
|
|
};
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename k, typename v>
|
|
|
|
MEM_BlockAlloc<typename con_arrayset<k, v>::Entry> con_arrayset<k, v>::Entry_allocator;
|
2023-08-19 02:56:51 +02:00
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename k, typename v>
|
|
|
|
void *con_arrayset<k, v>::Entry::operator new(size_t size)
|
2023-08-19 02:56:51 +02:00
|
|
|
{
|
2023-08-19 15:48:50 +02:00
|
|
|
return Entry_allocator.Alloc();
|
2023-08-19 02:56:51 +02:00
|
|
|
}
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename k, typename v>
|
|
|
|
void con_arrayset<k, v>::Entry::operator delete(void *ptr)
|
2023-08-19 02:56:51 +02:00
|
|
|
{
|
2023-08-19 15:48:50 +02:00
|
|
|
Entry_allocator.Free(ptr);
|
2023-08-19 02:56:51 +02:00
|
|
|
}
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename k, typename v>
|
2023-08-19 02:56:51 +02:00
|
|
|
con_arrayset<k, v>::Entry::Entry()
|
|
|
|
{
|
2023-08-19 03:02:30 +02:00
|
|
|
this->key = k();
|
|
|
|
this->value = v();
|
2023-08-19 02:56:51 +02:00
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
index = 0;
|
|
|
|
next = NULL;
|
2023-08-19 02:56:51 +02:00
|
|
|
}
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename key, typename value>
|
2016-03-27 11:49:47 +02:00
|
|
|
con_arrayset<key, value>::con_arrayset()
|
|
|
|
{
|
2023-08-19 02:56:51 +02:00
|
|
|
tableLength = 1;
|
2023-08-19 03:02:30 +02:00
|
|
|
table = &defaultEntry;
|
2023-08-19 02:56:51 +02:00
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
threshold = 1;
|
|
|
|
count = 0;
|
2023-08-19 02:56:51 +02:00
|
|
|
tableLengthIndex = 0;
|
|
|
|
|
|
|
|
defaultEntry = NULL;
|
2023-08-19 03:02:30 +02:00
|
|
|
reverseTable = (&this->defaultEntry) - 1;
|
2016-03-27 11:49:47 +02:00
|
|
|
}
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename key, typename value>
|
2016-03-27 11:49:47 +02:00
|
|
|
con_arrayset<key, value>::~con_arrayset()
|
|
|
|
{
|
2023-08-19 02:56:51 +02:00
|
|
|
clear();
|
2016-03-27 11:49:47 +02:00
|
|
|
}
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename key, typename value>
|
|
|
|
void con_arrayset<key, value>::resize(int count)
|
2016-03-27 11:49:47 +02:00
|
|
|
{
|
2023-08-19 03:02:30 +02:00
|
|
|
Entry **oldReverseTable = reverseTable;
|
|
|
|
Entry **oldTable = table;
|
|
|
|
Entry *e, *old;
|
2023-08-19 02:56:51 +02:00
|
|
|
unsigned int index;
|
|
|
|
unsigned int oldTableLength = tableLength;
|
|
|
|
unsigned int i;
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
if (count > 0) {
|
|
|
|
tableLength += count;
|
|
|
|
threshold = tableLength;
|
|
|
|
} else {
|
|
|
|
//threshold = ( unsigned int )( ( float )tableLength * 0.75f );
|
|
|
|
threshold = (unsigned int)((float)tableLength * 0.75);
|
|
|
|
if (threshold < 1) {
|
|
|
|
threshold = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
tableLength += threshold;
|
|
|
|
}
|
|
|
|
|
|
|
|
// allocate a new table
|
|
|
|
table = new Entry *[tableLength]();
|
|
|
|
memset(table, 0, tableLength * sizeof(Entry *));
|
|
|
|
|
|
|
|
// rehash the table
|
|
|
|
for (i = oldTableLength; i > 0; i--) {
|
|
|
|
// rehash all entries from the old table
|
|
|
|
for (e = oldTable[i - 1]; e != NULL; e = old) {
|
|
|
|
old = e->next;
|
|
|
|
|
|
|
|
// insert the old entry to the table hashindex
|
|
|
|
index = HashCode<key>(e->key) % tableLength;
|
|
|
|
|
|
|
|
e->next = table[index];
|
|
|
|
table[index] = e;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (oldTableLength > 1) {
|
|
|
|
// delete the previous table
|
|
|
|
delete[] oldTable;
|
|
|
|
}
|
|
|
|
|
|
|
|
// allocate a bigger reverse table
|
|
|
|
reverseTable = (new Entry *[this->tableLength]()) - 1;
|
|
|
|
|
|
|
|
for (i = 1; i <= oldTableLength; i++) {
|
|
|
|
reverseTable[i] = oldReverseTable[i];
|
|
|
|
}
|
|
|
|
|
|
|
|
if (oldTableLength > 1) {
|
|
|
|
++oldReverseTable;
|
|
|
|
delete[] oldReverseTable;
|
|
|
|
}
|
2016-03-27 11:49:47 +02:00
|
|
|
}
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename key, typename value>
|
2016-03-27 11:49:47 +02:00
|
|
|
void con_arrayset<key, value>::clear()
|
|
|
|
{
|
2023-08-19 03:02:30 +02:00
|
|
|
Entry *entry = NULL;
|
|
|
|
Entry *next = NULL;
|
2023-08-19 02:56:51 +02:00
|
|
|
unsigned int i;
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
if (this->tableLength > 1) {
|
|
|
|
reverseTable++;
|
|
|
|
delete[] reverseTable;
|
|
|
|
reverseTable = (&this->defaultEntry) - 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
for (i = 0; i < tableLength; i++) {
|
|
|
|
for (entry = table[i]; entry != NULL; entry = next) {
|
|
|
|
next = entry->next;
|
|
|
|
delete entry;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (tableLength > 1) {
|
|
|
|
delete[] table;
|
|
|
|
}
|
|
|
|
|
|
|
|
tableLength = 1;
|
|
|
|
table = &defaultEntry;
|
|
|
|
|
|
|
|
threshold = 1;
|
|
|
|
count = 0;
|
|
|
|
tableLengthIndex = 0;
|
|
|
|
|
|
|
|
defaultEntry = NULL;
|
2023-08-19 02:56:51 +02:00
|
|
|
}
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename k, typename v>
|
|
|
|
typename con_arrayset<k, v>::Entry *con_arrayset<k, v>::findKeyEntry(const k& key) const
|
2023-08-19 02:56:51 +02:00
|
|
|
{
|
2023-08-19 03:02:30 +02:00
|
|
|
Entry *entry;
|
2023-08-19 02:56:51 +02:00
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
entry = table[HashCode<k>(key) % tableLength];
|
2023-08-19 02:56:51 +02:00
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
for (; entry != NULL; entry = entry->next) {
|
2023-08-19 02:56:51 +02:00
|
|
|
if (entry->key == key) {
|
|
|
|
return entry;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return NULL;
|
2016-03-27 11:49:47 +02:00
|
|
|
}
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename k, typename v>
|
|
|
|
typename con_arrayset<k, v>::Entry *con_arrayset<k, v>::addKeyEntry(const k& key)
|
2023-08-19 02:56:51 +02:00
|
|
|
{
|
2023-08-19 03:02:30 +02:00
|
|
|
Entry *entry;
|
2023-08-19 02:56:51 +02:00
|
|
|
|
|
|
|
entry = findKeyEntry(key);
|
|
|
|
|
|
|
|
if (entry != NULL) {
|
|
|
|
return entry;
|
2023-08-19 03:02:30 +02:00
|
|
|
} else {
|
2023-08-19 02:56:51 +02:00
|
|
|
return addNewKeyEntry(key);
|
|
|
|
}
|
|
|
|
}
|
2016-03-27 11:49:47 +02:00
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename k, typename v>
|
|
|
|
typename con_arrayset<k, v>::Entry *con_arrayset<k, v>::addNewKeyEntry(const k& key)
|
2016-03-27 11:49:47 +02:00
|
|
|
{
|
2023-08-19 03:02:30 +02:00
|
|
|
Entry *entry;
|
|
|
|
int index;
|
2023-08-19 02:56:51 +02:00
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
if (count >= threshold) {
|
2023-08-19 02:56:51 +02:00
|
|
|
resize();
|
|
|
|
}
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
index = HashCode<k>(key) % tableLength;
|
2023-08-19 02:56:51 +02:00
|
|
|
|
|
|
|
count++;
|
2016-03-27 11:49:47 +02:00
|
|
|
|
2023-08-19 02:56:51 +02:00
|
|
|
entry = new Entry;
|
2016-03-27 11:49:47 +02:00
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
if (defaultEntry == NULL) {
|
2023-08-19 02:56:51 +02:00
|
|
|
defaultEntry = entry;
|
2023-08-19 03:02:30 +02:00
|
|
|
entry->next = NULL;
|
|
|
|
} else {
|
2023-08-19 02:56:51 +02:00
|
|
|
entry->next = table[index];
|
|
|
|
}
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
entry->key = key;
|
2023-08-19 02:56:51 +02:00
|
|
|
entry->index = count;
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
table[index] = entry;
|
|
|
|
reverseTable[count] = entry;
|
2016-03-27 11:49:47 +02:00
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
return entry;
|
2016-03-27 11:49:47 +02:00
|
|
|
}
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename k, typename v>
|
|
|
|
unsigned int con_arrayset<k, v>::addKeyIndex(const k& key)
|
2016-03-27 11:49:47 +02:00
|
|
|
{
|
2023-08-19 03:02:30 +02:00
|
|
|
Entry *entry = this->addKeyEntry(key);
|
2016-03-27 11:49:47 +02:00
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
return entry->index;
|
2016-03-27 11:49:47 +02:00
|
|
|
}
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename k, typename v>
|
|
|
|
unsigned int con_arrayset<k, v>::addNewKeyIndex(const k& key)
|
2016-03-27 11:49:47 +02:00
|
|
|
{
|
2023-08-19 03:02:30 +02:00
|
|
|
Entry *entry = this->addNewKeyEntry(key);
|
2016-03-27 11:49:47 +02:00
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
return entry->index;
|
2016-03-27 11:49:47 +02:00
|
|
|
}
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename k, typename v>
|
|
|
|
unsigned int con_arrayset<k, v>::findKeyIndex(const k& key)
|
2016-03-27 11:49:47 +02:00
|
|
|
{
|
2023-08-19 03:02:30 +02:00
|
|
|
Entry *entry = this->findKeyEntry(key);
|
2016-03-27 11:49:47 +02:00
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
if (entry != NULL) {
|
|
|
|
return entry->index;
|
|
|
|
} else {
|
|
|
|
return 0;
|
|
|
|
}
|
2016-03-27 11:49:47 +02:00
|
|
|
}
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename k, typename v>
|
|
|
|
bool con_arrayset<k, v>::remove(const k& key)
|
2016-03-27 11:49:47 +02:00
|
|
|
{
|
2023-08-19 03:02:30 +02:00
|
|
|
int i;
|
|
|
|
|
|
|
|
for (i = 1; i <= this->tableLength; i++) {
|
|
|
|
if (reverseTable[i] && reverseTable[i]->key == key) {
|
|
|
|
reverseTable[i] = NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return con_set<k, v>::remove(key);
|
2016-03-27 11:49:47 +02:00
|
|
|
}
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename key, typename value>
|
|
|
|
value& con_arrayset<key, value>::operator[](unsigned int index)
|
2016-03-27 11:49:47 +02:00
|
|
|
{
|
2023-08-19 03:02:30 +02:00
|
|
|
return reverseTable[index]->key;
|
2016-03-27 11:49:47 +02:00
|
|
|
}
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename key, typename value>
|
2023-08-19 02:56:51 +02:00
|
|
|
class con_arrayset_enum
|
|
|
|
{
|
2023-08-19 03:02:30 +02:00
|
|
|
friend class con_map_enum<key, value>;
|
2023-08-19 02:56:51 +02:00
|
|
|
|
|
|
|
public:
|
2023-08-19 03:02:30 +02:00
|
|
|
using Entry = typename con_arrayset<key, value>::Entry;
|
2023-08-19 02:56:51 +02:00
|
|
|
|
|
|
|
protected:
|
2023-08-19 03:02:30 +02:00
|
|
|
con_arrayset<key, value> *m_Set;
|
|
|
|
unsigned int m_Index;
|
|
|
|
Entry *m_CurrentEntry;
|
|
|
|
Entry *m_NextEntry;
|
2023-08-19 02:56:51 +02:00
|
|
|
|
|
|
|
public:
|
2023-08-19 03:02:30 +02:00
|
|
|
con_arrayset_enum();
|
|
|
|
con_arrayset_enum(con_arrayset<key, value>& set);
|
2023-08-19 02:56:51 +02:00
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
bool operator=(con_arrayset<key, value>& set);
|
2023-08-19 02:56:51 +02:00
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
Entry *NextElement(void);
|
|
|
|
Entry *CurrentElement(void);
|
2023-08-19 02:56:51 +02:00
|
|
|
};
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename key, typename value>
|
|
|
|
con_arrayset_enum<key, value>::con_arrayset_enum()
|
2023-08-19 02:56:51 +02:00
|
|
|
{
|
2023-08-19 03:02:30 +02:00
|
|
|
m_Set = NULL;
|
|
|
|
m_Index = 0;
|
|
|
|
m_CurrentEntry = NULL;
|
|
|
|
m_NextEntry = NULL;
|
2023-08-19 02:56:51 +02:00
|
|
|
}
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename key, typename value>
|
|
|
|
con_arrayset_enum<key, value>::con_arrayset_enum(con_arrayset<key, value>& set)
|
2023-08-19 02:56:51 +02:00
|
|
|
{
|
2023-08-19 03:02:30 +02:00
|
|
|
*this = set;
|
2023-08-19 02:56:51 +02:00
|
|
|
}
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename key, typename value>
|
|
|
|
bool con_arrayset_enum<key, value>::operator=(con_arrayset<key, value>& set)
|
2023-08-19 02:56:51 +02:00
|
|
|
{
|
2023-08-19 03:02:30 +02:00
|
|
|
m_Set = &set;
|
|
|
|
m_Index = m_Set->tableLength;
|
|
|
|
m_CurrentEntry = NULL;
|
|
|
|
m_NextEntry = NULL;
|
2023-08-19 02:56:51 +02:00
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
return true;
|
2023-08-19 02:56:51 +02:00
|
|
|
}
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename key, typename value>
|
|
|
|
typename con_arrayset_enum<key, value>::Entry *con_arrayset_enum<key, value>::CurrentElement(void)
|
2023-08-19 02:56:51 +02:00
|
|
|
{
|
2023-08-19 03:02:30 +02:00
|
|
|
return m_CurrentEntry;
|
2023-08-19 02:56:51 +02:00
|
|
|
}
|
|
|
|
|
2023-08-19 03:02:30 +02:00
|
|
|
template<typename key, typename value>
|
|
|
|
typename con_arrayset_enum<key, value>::Entry *con_arrayset_enum<key, value>::NextElement(void)
|
2023-08-19 02:56:51 +02:00
|
|
|
{
|
2023-08-19 03:02:30 +02:00
|
|
|
if (!m_NextEntry) {
|
|
|
|
while (1) {
|
|
|
|
if (!m_Index) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
m_Index--;
|
|
|
|
m_NextEntry = m_Set->table[m_Index];
|
|
|
|
|
|
|
|
if (m_NextEntry) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!m_NextEntry) {
|
|
|
|
m_CurrentEntry = NULL;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
m_CurrentEntry = m_NextEntry;
|
|
|
|
m_NextEntry = m_NextEntry->next;
|
|
|
|
|
|
|
|
return m_CurrentEntry;
|
2023-08-19 02:56:51 +02:00
|
|
|
}
|