Make lists classes again.

This commit is contained in:
Egor Pugin 2024-11-22 21:52:51 +03:00
parent 1355287df1
commit 1526cf16fb
2 changed files with 18 additions and 14 deletions

View File

@ -1110,13 +1110,15 @@ public:
// add TESS_API?
// move templated lists to public include dirs?
#define ELISTIZEH(CLASSNAME) \
struct CLASSNAME##_LIST : ELIST<CLASSNAME> { \
using ELIST<CLASSNAME>::ELIST; \
}; \
struct CLASSNAME##_IT : ELIST<CLASSNAME>::ITERATOR { \
using base = ELIST<CLASSNAME>::ITERATOR; \
using base::base; \
#define ELISTIZEH(CLASSNAME) \
class CLASSNAME##_LIST : public ELIST<CLASSNAME> { \
public: \
using ELIST<CLASSNAME>::ELIST; \
}; \
class CLASSNAME##_IT : public ELIST<CLASSNAME>::ITERATOR { \
public: \
using base = ELIST<CLASSNAME>::ITERATOR; \
using base::base; \
};
} // namespace tesseract

View File

@ -1159,13 +1159,15 @@ public:
// add TESS_API?
// move templated lists to public include dirs?
#define ELIST2IZEH(CLASSNAME) \
struct CLASSNAME##_LIST : ELIST2<CLASSNAME> { \
using ELIST2<CLASSNAME>::ELIST2; \
}; \
struct CLASSNAME##_IT : ELIST2<CLASSNAME>::ITERATOR { \
using base = ELIST2<CLASSNAME>::ITERATOR; \
using base::base; \
#define ELIST2IZEH(CLASSNAME) \
class CLASSNAME##_LIST : public ELIST2<CLASSNAME> { \
public: \
using ELIST2<CLASSNAME>::ELIST2; \
}; \
class CLASSNAME##_IT : public ELIST2<CLASSNAME>::ITERATOR { \
public: \
using base = ELIST2<CLASSNAME>::ITERATOR; \
using base::base; \
};
} // namespace tesseract