tesseract v5.3.3.20231005
tesseract::X_CLIST< CLASSNAME > Class Template Reference

#include <clst.h>

Inheritance diagram for tesseract::X_CLIST< CLASSNAME >:
tesseract::CLIST

Public Member Functions

 X_CLIST ()=default
 
 X_CLIST (const X_CLIST &)=delete
 
X_CLISToperator= (const X_CLIST &)=delete
 
void deep_clear ()
 
- Public Member Functions inherited from tesseract::CLIST
 ~CLIST ()
 
void internal_deep_clear (void(*zapper)(void *))
 
void shallow_clear ()
 
bool empty () const
 
bool singleton () const
 
void shallow_copy (CLIST *from_list)
 
void assign_to_sublist (CLIST_ITERATOR *start_it, CLIST_ITERATOR *end_it)
 
int32_t length () const
 
void sort (int comparator(const void *, const void *))
 
bool add_sorted (int comparator(const void *, const void *), bool unique, void *new_data)
 
void set_subtract (int comparator(const void *, const void *), bool unique, CLIST *minuend, CLIST *subtrahend)
 

Detailed Description

template<typename CLASSNAME>
class tesseract::X_CLIST< CLASSNAME >

Definition at line 694 of file clst.h.

Constructor & Destructor Documentation

◆ X_CLIST() [1/2]

template<typename CLASSNAME >
tesseract::X_CLIST< CLASSNAME >::X_CLIST ( )
default

◆ X_CLIST() [2/2]

template<typename CLASSNAME >
tesseract::X_CLIST< CLASSNAME >::X_CLIST ( const X_CLIST< CLASSNAME > &  )
delete

Member Function Documentation

◆ deep_clear()

template<typename CLASSNAME >
void tesseract::X_CLIST< CLASSNAME >::deep_clear ( )
inline

Definition at line 700 of file clst.h.

700 {
701 internal_deep_clear([](void *link) {delete static_cast<CLASSNAME *>(link);});
702 }
void internal_deep_clear(void(*zapper)(void *))
Definition: clst.cpp:36

◆ operator=()

template<typename CLASSNAME >
X_CLIST & tesseract::X_CLIST< CLASSNAME >::operator= ( const X_CLIST< CLASSNAME > &  )
delete

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