Add CAnimationDatabaseGame

Former-commit-id: 1f30508cd3
This commit is contained in:
Henrique Gemignani Passos Lima
2022-11-17 17:46:10 +02:00
parent c8d4b77885
commit f344adf167
22 changed files with 303 additions and 82 deletions

View File

@@ -5,6 +5,7 @@
#include "rstl/pair.hpp"
#include "rstl/rmemory_allocator.hpp"
#include "rstl/iterator.hpp"
namespace rstl {
template < typename P >
@@ -82,6 +83,10 @@ private:
public:
struct const_iterator {
typedef int difference_type;
typedef forward_iterator_tag iterator_category;
typedef P* value_type;
node* mNode;
const header* mHeader;
// bool x8_;
@@ -136,6 +141,15 @@ public:
return const_iterator(nullptr, &x8_header, false);
}
iterator begin() {
// TODO
return iterator(x8_header.get_leftmost(), &x8_header, false);
}
iterator end() {
// TODO
return iterator(nullptr, &x8_header, false);
}
const_iterator find(const T& key) const {
node* n = x8_header.get_root();
node* needle = nullptr;
@@ -197,6 +211,8 @@ public:
x4_count = 0;
}
int size() const { return x4_count; }
private:
uchar x0_;
uchar x1_;