#include <elst.h>
Definition at line 114 of file elst.h.
| bool ELIST::add_sorted |
( |
int |
comparatorconst void *, const void *, |
|
|
bool |
unique, |
|
|
ELIST_LINK * |
new_link |
|
) |
| |
|
inline |
Definition at line 175 of file elst.h.
ELIST_LINK * add_sorted_and_find(int comparator(const void *, const void *), bool unique, ELIST_LINK *new_link)
| ELIST_LINK * ELIST::add_sorted_and_find |
( |
int |
comparatorconst void *, const void *, |
|
|
bool |
unique, |
|
|
ELIST_LINK * |
new_link |
|
) |
| |
Definition at line 173 of file elst.cpp.
179 new_link->next = new_link;
188 for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) {
190 int compare = comparator(&link, &new_link);
193 }
else if (unique && compare == 0) {
197 if (it.cycled_list())
198 it.add_to_end(new_link);
200 it.add_before_then_move(new_link);
Definition at line 78 of file elst.cpp.
82 "Destination list must be empty before extracting a sublist";
92 last = start_it->extract_sublist (end_it);
const ERRCODE NULL_OBJECT
void error(const char *caller, TessErrorLogCode action, const char *format,...) const
| bool ELIST::empty |
( |
| ) |
const |
|
inline |
| void ELIST::internal_clear |
( |
void(*)(ELIST_LINK *) |
zapper | ) |
|
Definition at line 42 of file elst.cpp.
const ERRCODE NULL_OBJECT
void error(const char *caller, TessErrorLogCode action, const char *format,...) const
| inT32 ELIST::length |
( |
| ) |
const |
Definition at line 102 of file elst.cpp.
111 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 ELIST::shallow_copy |
( |
ELIST * |
from_list | ) |
|
|
inline |
Definition at line 141 of file elst.h.
143 last = from_list->last;
| bool ELIST::singleton |
( |
| ) |
const |
|
inline |
| void ELIST::sort |
( |
int |
comparatorconst void *, const void * | ) |
|
Definition at line 126 of file elst.cpp.
146 for (it.mark_cycle_pt (); !it.cycled_list (); it.forward ()) {
147 *current = it.extract ();
152 qsort ((
char *) base, count,
sizeof (*base), comparator);
156 for (i = 0; i <
count; i++) {
157 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/elst.h
- /home/abuild/rpmbuild/BUILD/tesseract-ocr-3.02.02/ccutil/elst.cpp