tesseract v5.3.3.20231005
tesseract::list_rec Struct Reference

#include <oldlist.h>

Public Member Functions

list_recfirst_node ()
 
list_reclist_rest ()
 
size_t size ()
 

Public Attributes

list_recnode
 
list_recnext
 

Detailed Description

Definition at line 103 of file oldlist.h.

Member Function Documentation

◆ first_node()

list_rec * tesseract::list_rec::first_node ( )
inline

Definition at line 107 of file oldlist.h.

107 {
108 return node;
109 }
list_rec * node
Definition: oldlist.h:104

◆ list_rest()

list_rec * tesseract::list_rec::list_rest ( )
inline

Definition at line 111 of file oldlist.h.

111 {
112 return next;
113 }
list_rec * next
Definition: oldlist.h:105

◆ size()

size_t tesseract::list_rec::size ( )
inline

Definition at line 118 of file oldlist.h.

118 {
119 auto var_list = this;
120 size_t n = 0;
121 iterate(var_list) n++;
122 return n;
123 }
#define iterate(l)
Definition: oldlist.h:91

Member Data Documentation

◆ next

list_rec* tesseract::list_rec::next

Definition at line 105 of file oldlist.h.

◆ node

list_rec* tesseract::list_rec::node

Definition at line 104 of file oldlist.h.


The documentation for this struct was generated from the following file: