#include <workingpartset.h>
Definition at line 32 of file workingpartset.h.
◆ WorkingPartSet()
tesseract::WorkingPartSet::WorkingPartSet |
( |
ColPartition * |
column | ) |
|
|
inlineexplicit |
◆ AddPartition()
void tesseract::WorkingPartSet::AddPartition |
( |
ColPartition * |
part | ) |
|
Definition at line 31 of file workingpartset.cpp.
32 ColPartition* partner = part->SingletonPartner(
true);
33 if (partner !=
nullptr) {
34 ASSERT_HOST(partner->SingletonPartner(
false) == part);
36 if (latest_part_ ==
nullptr || partner ==
nullptr) {
38 part_it_.move_to_last();
41 for (part_it_.move_to_first(); !part_it_.at_last() &&
42 part_it_.data() != partner;
45 part_it_.add_after_then_move(part);
◆ column()
◆ ExtractCompletedBlocks()
void tesseract::WorkingPartSet::ExtractCompletedBlocks |
( |
const ICOORD & |
bleft, |
|
|
const ICOORD & |
tright, |
|
|
int |
resolution, |
|
|
ColPartition_LIST * |
used_parts, |
|
|
BLOCK_LIST * |
blocks, |
|
|
TO_BLOCK_LIST * |
to_blocks |
|
) |
| |
Definition at line 55 of file workingpartset.cpp.
61 MakeBlocks(bleft, tright, resolution, used_parts);
62 BLOCK_IT block_it(blocks);
63 block_it.move_to_last();
64 block_it.add_list_after(&completed_blocks_);
65 TO_BLOCK_IT to_block_it(to_blocks);
66 to_block_it.move_to_last();
67 to_block_it.add_list_after(&to_blocks_);
◆ InsertCompletedBlocks()
void tesseract::WorkingPartSet::InsertCompletedBlocks |
( |
BLOCK_LIST * |
blocks, |
|
|
TO_BLOCK_LIST * |
to_blocks |
|
) |
| |
Definition at line 72 of file workingpartset.cpp.
74 BLOCK_IT block_it(&completed_blocks_);
75 block_it.add_list_before(blocks);
76 TO_BLOCK_IT to_block_it(&to_blocks_);
77 to_block_it.add_list_before(to_blocks);
◆ set_column()
void tesseract::WorkingPartSet::set_column |
( |
ColPartition * |
col | ) |
|
|
inline |
The documentation for this class was generated from the following files: