pdf::PDFInstanceCollection< T > Class Template Reference

#include <pdf_collection.h>

Inheritance diagram for pdf::PDFInstanceCollection< T >:
Inheritance graph
[legend]
Collaboration diagram for pdf::PDFInstanceCollection< T >:
Collaboration graph
[legend]

Public Member Functions

 PDFInstanceCollection ()
virtual ~PDFInstanceCollection ()
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 ()

Detailed Description

template<class T>
class pdf::PDFInstanceCollection< T >

Definition at line 47 of file pdf_collection.h.


Constructor & Destructor Documentation

template<class T >
pdf::PDFInstanceCollection< T >::PDFInstanceCollection (  )  [inline]

Definition at line 50 of file pdf_collection.h.

00050 : vect() {}

template<class T >
virtual pdf::PDFInstanceCollection< T >::~PDFInstanceCollection (  )  [inline, virtual]

Definition at line 51 of file pdf_collection.h.

References pdf::PDFInstanceCollection< T >::clear().

00051 {clear();}

Here is the call graph for this function:


Member Function Documentation

template<class T >
void pdf::PDFInstanceCollection< T >::add ( t  )  [inline]

Definition at line 66 of file pdf_collection.h.

Referenced by pdf::PDFPage::get_bounding_rectangles().

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

Here is the caller graph for this function:

template<class T >
T& pdf::PDFInstanceCollection< T >::back (  )  [inline]

Definition at line 88 of file pdf_collection.h.

00089     {
00090         size_t len = vect.size();
00091         return vect[len - 1];
00092     }

template<class T >
void pdf::PDFInstanceCollection< T >::clear ( void   )  [inline]

Definition at line 71 of file pdf_collection.h.

Referenced by pdf::PDFInstanceCollection< T >::~PDFInstanceCollection().

00072     {
00073         vect.clear();
00074     }

Here is the caller graph for this function:

template<class T >
T& pdf::PDFInstanceCollection< T >::front (  )  [inline]

Definition at line 83 of file pdf_collection.h.

Referenced by pdf::PDFInstanceCollection< T >::get_first_element().

00084     {
00085         return vect[0];
00086     }

Here is the caller graph for this function:

template<class T >
T& pdf::PDFInstanceCollection< T >::get ( int  num  )  [inline]

Definition at line 76 of file pdf_collection.h.

00077     {
00078         assert(num >= 0 && num < static_cast<int>(vect.size()));
00079 
00080         return vect[num];
00081     }

template<class T >
virtual int pdf::PDFInstanceCollection< T >::get_count (  )  [inline, virtual]

Implements pdf::PDFCollectionBase.

Definition at line 61 of file pdf_collection.h.

00062     {
00063         return static_cast<int>(vect.size());
00064     }

template<class T >
virtual bool pdf::PDFInstanceCollection< T >::get_first_element ( void **  data_ptr  )  [inline, virtual]

Implements pdf::PDFCollectionBase.

Definition at line 53 of file pdf_collection.h.

References pdf::PDFInstanceCollection< T >::front().

00054     {
00055         T &t = front();
00056         
00057         *data_ptr = static_cast<void *>(&t);
00058         return true;
00059     }

Here is the call graph for this function:


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