#include <elst2.h>
Definition at line 88 of file elst2.h.
| void ELIST2::add_sorted |
( |
int |
comparatorconst void *, const void *, |
|
|
ELIST2_LINK * |
new_link |
|
) |
| |
Definition at line 169 of file elst2.cpp.
174 new_link->next = new_link;
175 new_link->prev = new_link;
178 new_link->prev =
last;
180 new_link->next->prev = new_link;
186 for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) {
188 if (comparator(&link, &new_link) > 0)
191 if (it.cycled_list())
192 it.add_to_end(new_link);
194 it.add_before_then_move(new_link);
Definition at line 79 of file elst2.cpp.
83 "Destination list must be empty before extracting a sublist";
93 last = start_it->extract_sublist (end_it);
const ERRCODE NULL_OBJECT
void error(const char *caller, TessErrorLogCode action, const char *format,...) const
| bool ELIST2::empty |
( |
| ) |
const |
|
inline |
| void ELIST2::internal_clear |
( |
void(*)(ELIST2_LINK *) |
zapper | ) |
|
Definition at line 43 of file elst2.cpp.
const ERRCODE NULL_OBJECT
void error(const char *caller, TessErrorLogCode action, const char *format,...) const
| inT32 ELIST2::length |
( |
| ) |
const |
Definition at line 103 of file elst2.cpp.
112 for (it.mark_cycle_pt (); !it.cycled_list (); it.forward ())
const ERRCODE NULL_OBJECT
void error(const char *caller, TessErrorLogCode action, const char *format,...) const
| void ELIST2::shallow_copy |
( |
ELIST2 * |
from_list | ) |
|
|
inline |
| bool ELIST2::singleton |
( |
| ) |
const |
|
inline |
| void ELIST2::sort |
( |
int |
comparatorconst void *, const void * | ) |
|
Definition at line 127 of file elst2.cpp.
147 for (it.mark_cycle_pt (); !it.cycled_list (); it.forward ()) {
148 *current = it.extract ();
153 qsort ((
char *) base, count,
sizeof (*base), comparator);
157 for (i = 0; i <
count; i++) {
158 it.add_to_end (*current);
const ERRCODE NULL_OBJECT
void error(const char *caller, TessErrorLogCode action, const char *format,...) const
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/tesseract-ocr-3.02.02/ccutil/elst2.h
- /home/abuild/rpmbuild/BUILD/tesseract-ocr-3.02.02/ccutil/elst2.cpp