#include <pdf_collection.h>
Public Member Functions | |
PDFCollection () | |
virtual | ~PDFCollection () |
virtual bool | get_first_element (void **data_ptr) |
virtual int | get_count () |
void | add (T t) |
void | clear () |
T | get (int num) |
T | front () |
T | back () |
int | size () |
Definition at line 103 of file pdf_collection.h.
pdf::PDFCollection< T >::PDFCollection | ( | ) | [inline] |
Definition at line 106 of file pdf_collection.h.
virtual pdf::PDFCollection< T >::~PDFCollection | ( | ) | [inline, virtual] |
Definition at line 107 of file pdf_collection.h.
References pdf::PDFCollection< T >::clear().
00107 {clear();}
void pdf::PDFCollection< T >::add | ( | T | t | ) | [inline] |
Definition at line 124 of file pdf_collection.h.
Referenced by pdf::PDFSearcher::export_search_doc_to_coll(), pdf::PDFSearcher::seach_all(), pdf::PDFPage::search(), and pdf::PDFSearcher::search_next().
T pdf::PDFCollection< T >::back | ( | ) | [inline] |
Definition at line 157 of file pdf_collection.h.
References pdf::PDFCollection< T >::size().
void pdf::PDFCollection< T >::clear | ( | void | ) | [inline] |
Definition at line 129 of file pdf_collection.h.
Referenced by pdf::PDFSearcher::export_search_doc_to_coll(), and pdf::PDFCollection< T >::~PDFCollection().
00130 { 00131 VectIter begin = vect.begin(); 00132 VectIter end = vect.end(); 00133 VectIter iter = begin; 00134 for(; iter != end; ++iter) 00135 { 00136 delete *iter; 00137 } 00138 vect.clear(); 00139 }
T pdf::PDFCollection< T >::front | ( | ) | [inline] |
Definition at line 148 of file pdf_collection.h.
References pdf::PDFCollection< T >::size().
00149 { 00150 if (size() > 0) 00151 { 00152 return vect[0]; 00153 } 00154 return 0; 00155 }
T pdf::PDFCollection< T >::get | ( | int | num | ) | [inline] |
Definition at line 141 of file pdf_collection.h.
Referenced by pdf::PDFSearcher::export_search_doc_to_coll().
00142 { 00143 assert(num >= 0 && num < static_cast<int>(vect.size())); 00144 00145 return vect[num]; 00146 }
virtual int pdf::PDFCollection< T >::get_count | ( | ) | [inline, virtual] |
Implements pdf::PDFCollectionBase.
Definition at line 119 of file pdf_collection.h.
References pdf::PDFCollection< T >::size().
00120 { 00121 return size(); 00122 }
virtual bool pdf::PDFCollection< T >::get_first_element | ( | void ** | data_ptr | ) | [inline, virtual] |
Implements pdf::PDFCollectionBase.
Definition at line 109 of file pdf_collection.h.
References pdf::PDFCollection< T >::size().
00110 { 00111 if (size()) 00112 { 00113 *data_ptr = static_cast<void *>(&vect[0]); 00114 return true; 00115 } 00116 return false; 00117 }
int pdf::PDFCollection< T >::size | ( | ) | [inline] |
Definition at line 166 of file pdf_collection.h.
Referenced by pdf::PDFCollection< T >::back(), pdf::PDFSearcher::export_search_doc_to_coll(), pdf::PDFCollection< T >::front(), pdf::PDFCollection< T >::get_count(), pdf::PDFCollection< T >::get_first_element(), and pdf::PDFSearcher::seach_all().