mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-23 18:49:08 +08:00
Make lists classes again.
This commit is contained in:
parent
1355287df1
commit
1526cf16fb
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user