On Thu, Feb 7, 2013 at 3:01 AM, Sreenath Kambala
<[email protected]> wrote:
> I'm trying to understand tesseract flow.
> In line no : 52 , Fixspace.ccp  ::: i found "BLOCK_RES_IT block_res_it; "
> this statement.
> But i'm not able figure where the definition for this class is defined.

In general, BLAH_IT is generated by calling ELISTIZE(BLAH) macro from
ccutil/elst.h [1]

Therefore, in ccstruct/pageres.cpp you'll see [2]:

  ELISTIZE (BLOCK_RES)

Note: Using Visual Studio 2008, I can just right-click on BLOCK_RES_IT
in the following line of fixspace.cpp:

  BLOCK_RES_IT block_res_it;

and then choose Go To Definition in the popup menu (or just click on
BLOCK_RES_IT and hit F12) to immediately open up a new tab that shows
me pageres.h at the following line:

  ELISTIZEH (BLOCK_RES) CLISTIZEH (BLOCK_RES)

Repeating the procedure with ELISTIZEH I then get to elst.h, and can
see the #define of ELISTIZE immediately below.

Presumably other C++ IDEs can do something similar.

[1] http://code.google.com/p/tesseract-ocr/source/browse/trunk/ccutil/elst.h#867

[2] 
http://code.google.com/p/tesseract-ocr/source/browse/trunk/ccstruct/pageres.cpp#84

-- 
-- 
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to