images::DataContainer< T > Class Template Reference

#include <collection_impl.h>

Inheritance diagram for images::DataContainer< T >:
Inheritance graph
[legend]
Collaboration diagram for images::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 images::DataContainer< T >

Definition at line 53 of file images/plugin_impl/collection_impl.h.


Constructor & Destructor Documentation

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

Definition at line 56 of file images/plugin_impl/collection_impl.h.

00056 {}

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

Definition at line 57 of file images/plugin_impl/collection_impl.h.

00057 {}


Member Function Documentation

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

Implements images::DataContainerBase.

Definition at line 66 of file images/plugin_impl/collection_impl.h.

00067     {
00068         return static_cast<int>(data.size());
00069     }

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

Implements images::DataContainerBase.

Definition at line 60 of file images/plugin_impl/collection_impl.h.

00061     {
00062         *data_ptr = &data[0];
00063         return true;
00064     }

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

Definition at line 71 of file images/plugin_impl/collection_impl.h.

Referenced by images::PluginCollectionImpl::take_data_ref().

00072     {
00073         return data;
00074     }

Here is the caller graph for this function:


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