CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes
edm::View< T > Class Template Reference

#include <CaloClusterFwd.h>

Inheritance diagram for edm::View< T >:
edm::ViewBase

Public Types

typedef
boost::indirect_iterator
< typename
seq_t::const_iterator > 
const_iterator
 
typedef T const * const_pointer
 
typedef T const & const_reference
 
typedef
boost::indirect_iterator
< typename
seq_t::const_reverse_iterator > 
const_reverse_iterator
 
typedef seq_t::difference_type difference_type
 
typedef T const * pointer
 
typedef T const & reference
 
typedef unsigned int size_type
 
typedef T value_type
 

Public Member Functions

const_reference at (size_type pos) const
 
const_reference back () const
 
const_iterator begin () const
 
size_type capacity () const
 
bool empty () const
 
const_iterator end () const
 
const_reference front () const
 
size_type max_size () const
 
Viewoperator= (View const &rhs)
 
const_reference operator[] (size_type pos) const
 
Ptr< value_typeptrAt (size_type i) const
 
std::vector< Ptr< value_type >
> const & 
ptrs () const
 
const_reverse_iterator rbegin () const
 
RefToBase< value_typerefAt (size_type i) const
 
const_reverse_iterator rend () const
 
size_type size () const
 
void swap (View &other)
 
 View ()
 
 View (std::vector< void const * > const &pointers, FillViewHelperVector const &helpers, EDProductGetter const *getter)
 
virtual ~View ()
 
- Public Member Functions inherited from edm::ViewBase
std::unique_ptr< ViewBaseclone () const
 
virtual ~ViewBase ()
 

Static Public Member Functions

static void fill_from_range (T *first, T *last, View &output)
 

Private Types

typedef std::vector< T const * > seq_t
 

Private Member Functions

std::unique_ptr< ViewBasedoClone () const override
 

Private Attributes

seq_t items_
 
std::vector< Ptr< value_type > > vPtrs_
 

Additional Inherited Members

- Protected Member Functions inherited from edm::ViewBase
ViewBaseoperator= (ViewBase const &)
 
void swap (ViewBase &)
 
 ViewBase ()
 
 ViewBase (ViewBase const &)
 

Detailed Description

template<typename T>
class edm::View< T >

Class template View<T>

View<T> provides a way to allow reference to the elements (of type T) of some collection in an Event, without knowing about the type of the collection itself. For example, View<int> can refer to the ints in either a vector<int> or a list<int>, without the client code knowing about which type of container manages the ints.

View<T> is not persistable.

View<T> can be used to reference objects of any type that has T as a public base.

Definition at line 14 of file CaloClusterFwd.h.

Member Typedef Documentation

template<typename T>
typedef boost::indirect_iterator<typename seq_t::const_iterator> edm::View< T >::const_iterator

Definition at line 81 of file View.h.

template<typename T>
typedef T const* edm::View< T >::const_pointer

Definition at line 74 of file View.h.

template<typename T>
typedef T const& edm::View< T >::const_reference

Definition at line 77 of file View.h.

template<typename T>
typedef boost::indirect_iterator<typename seq_t::const_reverse_iterator> edm::View< T >::const_reverse_iterator

Definition at line 88 of file View.h.

template<typename T>
typedef seq_t::difference_type edm::View< T >::difference_type

Definition at line 86 of file View.h.

template<typename T>
typedef T const* edm::View< T >::pointer

Definition at line 73 of file View.h.

template<typename T>
typedef T const& edm::View< T >::reference

Definition at line 76 of file View.h.

template<typename T>
typedef std::vector<T const*> edm::View< T >::seq_t
private

Definition at line 71 of file View.h.

template<typename T>
typedef unsigned int edm::View< T >::size_type

Definition at line 85 of file View.h.

template<typename T>
typedef T edm::View< T >::value_type

Definition at line 79 of file View.h.

Constructor & Destructor Documentation

template<typename T>
edm::View< T >::View ( )
template<typename T>
edm::View< T >::View ( std::vector< void const * > const &  pointers,
FillViewHelperVector const &  helpers,
EDProductGetter const *  getter 
)
template<typename T>
virtual edm::View< T >::~View ( )
virtual

Member Function Documentation

template<typename T>
const_reference edm::View< T >::at ( size_type  pos) const
template<typename T>
const_reference edm::View< T >::back ( ) const
template<typename T>
const_iterator edm::View< T >::begin ( ) const
template<typename T>
size_type edm::View< T >::capacity ( ) const
template<typename T>
std::unique_ptr<ViewBase> edm::View< T >::doClone ( ) const
overrideprivatevirtual

Implements edm::ViewBase.

template<typename T>
bool edm::View< T >::empty ( ) const
template<typename T>
const_iterator edm::View< T >::end ( ) const
template<typename T>
static void edm::View< T >::fill_from_range ( T first,
T last,
View< T > &  output 
)
static
template<typename T>
const_reference edm::View< T >::front ( ) const
template<typename T>
size_type edm::View< T >::max_size ( ) const
template<typename T>
View& edm::View< T >::operator= ( View< T > const &  rhs)
template<typename T>
const_reference edm::View< T >::operator[] ( size_type  pos) const
template<typename T>
Ptr<value_type> edm::View< T >::ptrAt ( size_type  i) const
template<typename T>
std::vector<Ptr<value_type> > const& edm::View< T >::ptrs ( ) const
template<typename T>
const_reverse_iterator edm::View< T >::rbegin ( ) const
template<typename T>
RefToBase<value_type> edm::View< T >::refAt ( size_type  i) const
template<typename T>
const_reverse_iterator edm::View< T >::rend ( ) const
template<typename T>
size_type edm::View< T >::size ( ) const
template<typename T>
void edm::View< T >::swap ( View< T > &  other)

Member Data Documentation

template<typename T>
seq_t edm::View< T >::items_
private

Definition at line 137 of file View.h.

template<typename T>
std::vector<Ptr<value_type> > edm::View< T >::vPtrs_
private

Definition at line 138 of file View.h.