text::DataContainer< T * > Class Template Reference

#include <collection_impl.h>

Inheritance diagram for text::DataContainer< T * >:
Inheritance graph
[legend]
Collaboration diagram for text::DataContainer< T * >:
Collaboration graph
[legend]

Public Member Functions

 DataContainer ()
 ~DataContainer ()
virtual bool get_first_element (void **data_ptr)
virtual int get_count ()
std::vector< T * > & ref ()

Detailed Description

template<typename T>
class text::DataContainer< T * >

Definition at line 81 of file plaintext/plugin_impl/collection_impl.h.


Constructor & Destructor Documentation

template<typename T >
text::DataContainer< T * >::DataContainer (  )  [inline]

Definition at line 84 of file plaintext/plugin_impl/collection_impl.h.

00084 {}

template<typename T >
text::DataContainer< T * >::~DataContainer (  )  [inline]

Definition at line 85 of file plaintext/plugin_impl/collection_impl.h.

References data.

00086     {
00087         for (unsigned int i=0; i<data.size(); i++)
00088         {
00089             delete data[i];
00090         }
00091     }


Member Function Documentation

template<typename T >
virtual int text::DataContainer< T * >::get_count (  )  [inline, virtual]

Implements text::DataContainerBase.

Definition at line 100 of file plaintext/plugin_impl/collection_impl.h.

References data.

00101     {
00102         return static_cast<int>(data.size());
00103     }

template<typename T >
virtual bool text::DataContainer< T * >::get_first_element ( void **  data_ptr  )  [inline, virtual]

Implements text::DataContainerBase.

Definition at line 94 of file plaintext/plugin_impl/collection_impl.h.

References data.

00095     {
00096         *data_ptr = &data[0];
00097         return true;
00098     }

template<typename T >
std::vector<T*>& text::DataContainer< T * >::ref (  )  [inline]

Definition at line 105 of file plaintext/plugin_impl/collection_impl.h.

References data.

00106     {
00107         return data;
00108     }


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