blob: d0dd43f53f681be18ea636b18392fcb4a275ed1f [file] [log] [blame]
// MyMap.h
#ifndef __COMMON_MYMAP_H
#define __COMMON_MYMAP_H
#include "MyVector.h"
#include "Types.h"
class CMap32
{
struct CNode
{
UInt32 Key;
UInt32 Keys[2];
UInt32 Values[2];
UInt16 Len;
Byte IsLeaf[2];
};
CRecordVector<CNode> Nodes;
public:
void Clear() { Nodes.Clear(); }
bool Find(UInt32 key, UInt32 &valueRes) const;
bool Set(UInt32 key, UInt32 value); // returns true, if there is such key already
};
#endif