From 54ce350476d4fbedac8022b04da1fdbf390c4d9c Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Thu, 29 Jun 2023 14:32:07 +0200 Subject: [PATCH] MxatomId: implement inline operator== --- LEGO1/mxatomid.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/LEGO1/mxatomid.h b/LEGO1/mxatomid.h index 9a218a1b..6b7dddbb 100644 --- a/LEGO1/mxatomid.h +++ b/LEGO1/mxatomid.h @@ -1,8 +1,14 @@ #ifndef MXATOMID_H #define MXATOMID_H +#include "mxtypes.h" + enum LookupMode { + LookupMode_Exact = 0, + LookupMode_LowerCase = 1, + LookupMode_UpperCase = 2, + LookupMode_LowerCase2 = 3 }; class MxAtomId @@ -17,6 +23,11 @@ class MxAtomId this->m_internal = 0; } + inline MxBool operator ==(const MxAtomId &other) const + { + return this->m_internal == other.m_internal; + } + private: char *m_internal; };