ELIST_LINK Class Reference

#include <elst.h>

Inheritance diagram for ELIST_LINK:

ASSOC BLOB_CHOICE BLOCK_RES C_BLOB C_OUTLINE_FRAG CHAR_SAMPLE CHAR_SAMPLES FPSEGPT FRAGMENT ICOORDELT MENU_L OUTLINE_FRAG PBLOB PIXROW REGION_OCC ROW ROW_RES SORTED_FLOAT WERD WERD_RES List of all members.

Detailed Description

Singly linked lists with embedded links; generic list class.

No destructor - elements are assumed to be destroyed EITHER after they have been extracted from a list OR by the ELIST destructor which walks the list.

Note:
None of the serialise member functions are required for ELIST_LINKS as they are never serialised. (We demand that the derived class terminates recursion - just to make sure that it defines the member functions anyway.)

Definition at line 78 of file elst.h.

Public Member Functions

Private Attributes

Friends


Constructor & Destructor Documentation

ELIST_LINK::ELIST_LINK (  )  [inline]

Definition at line 86 of file elst.h.

References NULL.

00086                  {
00087       next = NULL;
00088     }

ELIST_LINK::ELIST_LINK ( const ELIST_LINK  )  [inline]

Definition at line 91 of file elst.h.

References NULL.

00092                                    {  //dont copy link
00093       next = NULL;
00094     }


Member Function Documentation

void ELIST_LINK::de_serialise_asc ( FILE *  f  ) 

Reimplemented in ICOORDELT.

Definition at line 39 of file elst.cpp.

References ABORT, ERRCODE::error(), and SERIALISE_LINKS.

00040                                            {
00041   SERIALISE_LINKS.error ("ELIST_LINK::de_serialise_asc", ABORT,
00042     "Don't call this, override!");
00043 }

void ELIST_LINK::operator= ( const ELIST_LINK  )  [inline]

Definition at line 96 of file elst.h.

References NULL.

Referenced by WERD::operator=(), and WERD_RES::operator=().

00097                         {
00098       next = NULL;
00099     }

void ELIST_LINK::serialise_asc ( FILE *  f  ) 

Generates an error, as it should never be called.

Definition at line 32 of file elst.cpp.

References ABORT, ERRCODE::error(), and SERIALISE_LINKS.

00033                                         {
00034   SERIALISE_LINKS.error ("ELIST_LINK::serialise_asc", ABORT,
00035     "Don't call this, override!");
00036 }


Friends And Related Function Documentation

friend class ELIST [friend]

Definition at line 81 of file elst.h.

friend class ELIST_ITERATOR [friend]

Definition at line 80 of file elst.h.


Member Data Documentation

ELIST_LINK* ELIST_LINK::next [private]

Definition at line 83 of file elst.h.

Referenced by ELIST_ITERATOR::add_after_stay_put(), ELIST_ITERATOR::add_after_then_move(), ELIST_ITERATOR::add_before_stay_put(), ELIST_ITERATOR::add_before_then_move(), ELIST_ITERATOR::add_list_after(), ELIST_ITERATOR::add_list_before(), ELIST_ITERATOR::add_to_end(), ELIST_ITERATOR::data_relative(), ELIST_ITERATOR::exchange(), PIXROW::extend(), ELIST_ITERATOR::extract(), ELIST_ITERATOR::extract_sublist(), ELIST_ITERATOR::forward(), ELIST::internal_clear(), ELIST::internal_de_dump(), ELIST_ITERATOR::move_to_first(), ELIST_ITERATOR::set_to_list(), try_point_pairs(), and vertical_projection_point().


The documentation for this class was generated from the following files:
Generated on Wed Feb 28 19:49:31 2007 for Tesseract by  doxygen 1.5.1