CMS 3D CMS Logo

Static Public Member Functions

edm::helpers::ViewFiller< T > Struct Template Reference

#include <Wrapper.h>

List of all members.

Static Public Member Functions

static void fill (T const &obj, ProductID const &id, std::vector< void const * > &pointers, helper_vector_ptr &helpers)

Detailed Description

template<typename T>
struct edm::helpers::ViewFiller< T >

Definition at line 358 of file Wrapper.h.


Member Function Documentation

template<typename T >
static void edm::helpers::ViewFiller< T >::fill ( T const &  obj,
ProductID const &  id,
std::vector< void const * > &  pointers,
helper_vector_ptr helpers 
) [inline, static]

the following shoudl work also if T is a RefVector<C>

Definition at line 359 of file Wrapper.h.

References edm::fillView().

Referenced by edm::DoFillView< T >::operator()().

                                                    {
        typedef Ref<T> ref;
        typedef RefVector<T, typename ref::value_type, typename ref::finder_type> ref_vector;
        helpers = helper_vector_ptr(new reftobase::RefVectorHolder<ref_vector>);
        // fillView is the name of an overload set; each concrete
        // collection T should supply a fillView function, in the same
        // namespace at that in which T is defined, or in the 'edm'
        // namespace.
        fillView(obj, id, pointers, * helpers);
        assert(pointers.size() == helpers->size());
     }