pdf::PDFCollection< MarkerEntry * > Class Template Reference

#include <marker_entry_impl.h>

Inheritance diagram for pdf::PDFCollection< MarkerEntry * >:
Inheritance graph
[legend]
Collaboration diagram for pdf::PDFCollection< MarkerEntry * >:
Collaboration graph
[legend]

Public Member Functions

 PDFCollection ()
virtual ~PDFCollection ()
virtual bool get_first_element (void **data_ptr)
virtual int get_count ()
void add (MarkerEntry *t)
void clear ()
MarkerEntryget (int num)
MarkerEntryfront ()
MarkerEntryback ()
int size ()

Detailed Description

template<>
class pdf::PDFCollection< MarkerEntry * >

Definition at line 45 of file pdf/plugin_impl/marker_entry_impl.h.


Constructor & Destructor Documentation

Definition at line 48 of file pdf/plugin_impl/marker_entry_impl.h.

00048 : vect() {}

virtual pdf::PDFCollection< MarkerEntry * >::~PDFCollection (  )  [inline, virtual]

Definition at line 49 of file pdf/plugin_impl/marker_entry_impl.h.

00049 {clear();}


Member Function Documentation

void pdf::PDFCollection< MarkerEntry * >::add ( MarkerEntry t  )  [inline]

Definition at line 66 of file pdf/plugin_impl/marker_entry_impl.h.

00067     {
00068         vect.push_back(t);
00069     }

MarkerEntry* pdf::PDFCollection< MarkerEntry * >::back (  )  [inline]

Definition at line 100 of file pdf/plugin_impl/marker_entry_impl.h.

00101     {
00102         if (size() > 0)
00103         {
00104             return vect[size()-1];
00105         }
00106         return 0;
00107     }

void pdf::PDFCollection< MarkerEntry * >::clear ( void   )  [inline]

Definition at line 71 of file pdf/plugin_impl/marker_entry_impl.h.

References pdf::marker_entry_free_recursive().

00072     {
00073         VectIter begin = vect.begin();
00074         VectIter end   = vect.end();
00075         VectIter iter  = begin;
00076         for(; iter != end; ++iter)
00077         {
00078             MarkerEntry* first_child = reinterpret_cast<MarkerEntry *>(*iter);
00079             marker_entry_free_recursive(first_child);
00080         }
00081         vect.clear();
00082     }

Here is the call graph for this function:

MarkerEntry* pdf::PDFCollection< MarkerEntry * >::front (  )  [inline]

Definition at line 91 of file pdf/plugin_impl/marker_entry_impl.h.

00092     {
00093         if (size() > 0)
00094         {
00095             return vect[0];
00096         }
00097         return 0;
00098     }

MarkerEntry* pdf::PDFCollection< MarkerEntry * >::get ( int  num  )  [inline]

Definition at line 84 of file pdf/plugin_impl/marker_entry_impl.h.

00085     {
00086         assert(num >= 0 && num < static_cast<int>(vect.size()));
00087 
00088         return vect[num];
00089     }

virtual int pdf::PDFCollection< MarkerEntry * >::get_count (  )  [inline, virtual]

Implements pdf::PDFCollectionBase.

Definition at line 61 of file pdf/plugin_impl/marker_entry_impl.h.

00062     {
00063         return size();
00064     }

virtual bool pdf::PDFCollection< MarkerEntry * >::get_first_element ( void **  data_ptr  )  [inline, virtual]

Implements pdf::PDFCollectionBase.

Definition at line 51 of file pdf/plugin_impl/marker_entry_impl.h.

00052     {
00053         if (size())
00054         {
00055             *data_ptr = static_cast<void *>(&vect[0]);
00056             return true;
00057         }
00058         return false;
00059     }

int pdf::PDFCollection< MarkerEntry * >::size (  )  [inline]

Definition at line 109 of file pdf/plugin_impl/marker_entry_impl.h.

00110     {
00111         return static_cast<int>(vect.size());
00112     }


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.2-20100208