Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

PHObjectHandleVectorv1< BASE, DERIVED > Class Template Reference

Implementation of PHObjectHandleVector. More...

#include <PHObjectHandleVectorv1.h>

Inheritance diagram for PHObjectHandleVectorv1< BASE, DERIVED >:

Inheritance graph
[legend]
Collaboration diagram for PHObjectHandleVectorv1< BASE, DERIVED >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef PHObjectHandleVectorv1<
BASE, DERIVED > 
self
typedef PHObjectHandle< BASEvalue_type
typedef unsigned int size_type
typedef PHObjectHandleVectorIterator<
BASE
iterator

Public Member Functions

 PHObjectHandleVectorv1 ()
 PHObjectHandleVectorv1 (const self &other)
selfoperator= (const self &other)
virtual ~PHObjectHandleVectorv1 ()
virtual value_typeadd (const size_type &index)
 Add a new object at position index and returns it.

virtual value_typeadd (const size_type &index, const value_type &value)
 Add an existing object at position index.

virtual size_type capacity () const
virtual selfclone () const
 Virtual copy constructor.

virtual selfcreate () const
 Virtual default constructor.

virtual bool empty () const
virtual iterator erase (iterator first, iterator last)
virtual iterator erase (iterator pos)
virtual const value_typeget (const size_type &index) const
virtual value_typeget (const size_type &index)
virtual void identify (std::ostream &os=std::cout) const
 identify Function from PHObject

virtual iterator insert (iterator pos, size_type n, const value_type &value)
virtual iterator insert (iterator pos, const value_type &value)
virtual bool remove (const size_type &index)
virtual void reserve (const size_type &thesize)
virtual void Reset ()
 Clear Event.

virtual bool resize (const size_type &newsize, const value_type &value)
virtual bool resize (const size_type &newsize)
virtual size_type size () const

Detailed Description

template<typename BASE, typename DERIVED>
class PHObjectHandleVectorv1< BASE, DERIVED >

Implementation of PHObjectHandleVector.

Using TClonesArray as underlying technology. Requirements on type BASE and DERIVED: must have a BASE* create() method (aka virtual ctor) must have a BASE* clone() method (aka virtual copy ctor) must have an << operator

Definition at line 18 of file PHObjectHandleVectorv1.h.


Member Typedef Documentation

template<typename BASE, typename DERIVED>
typedef PHObjectHandleVectorIterator<BASE> PHObjectHandleVectorv1< BASE, DERIVED >::iterator
 

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 25 of file PHObjectHandleVectorv1.h.

Referenced by PHObjectHandleVectorv1< BASE, DERIVED >::erase(), and PHObjectHandleVectorv1< BASE, DERIVED >::insert().

template<typename BASE, typename DERIVED>
typedef PHObjectHandleVectorv1<BASE,DERIVED> PHObjectHandleVectorv1< BASE, DERIVED >::self
 

Definition at line 22 of file PHObjectHandleVectorv1.h.

template<typename BASE, typename DERIVED>
typedef unsigned int PHObjectHandleVectorv1< BASE, DERIVED >::size_type
 

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 24 of file PHObjectHandleVectorv1.h.

Referenced by PHObjectHandleVectorv1< BASE, DERIVED >::add(), PHObjectHandleVectorv1< BASE, DERIVED >::get(), PHObjectHandleVectorv1< BASE, DERIVED >::insert(), PHObjectHandleVectorv1< BASE, DERIVED >::remove(), PHObjectHandleVectorv1< BASE, DERIVED >::reserve(), and PHObjectHandleVectorv1< BASE, DERIVED >::resize().

template<typename BASE, typename DERIVED>
typedef PHObjectHandle<BASE> PHObjectHandleVectorv1< BASE, DERIVED >::value_type
 

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 23 of file PHObjectHandleVectorv1.h.

Referenced by PHObjectHandleVectorv1< BASE, DERIVED >::add(), PHObjectHandleVectorv1< BASE, DERIVED >::get(), PHObjectHandleVectorv1< BASE, DERIVED >::identify(), PHObjectHandleVectorv1< BASE, DERIVED >::insert(), and PHObjectHandleVectorv1< BASE, DERIVED >::resize().


Constructor & Destructor Documentation

template<typename BASE, typename DERIVED>
DERIVED PHObjectHandleVectorv1< BASE, DERIVED >::PHObjectHandleVectorv1  ) 
 

Definition at line 99 of file PHObjectHandleVectorv1.h.

template<typename BASE, typename DERIVED>
PHObjectHandleVectorv1< BASE, DERIVED >::PHObjectHandleVectorv1 const self other  ) 
 

template<typename BASE, typename DERIVED>
PHObjectHandleVectorv1< BASE, DERIVED >::~PHObjectHandleVectorv1  )  [virtual]
 

Definition at line 136 of file PHObjectHandleVectorv1.h.


Member Function Documentation

template<typename BASE, typename DERIVED>
PHObjectHandleVectorv1< BASE, DERIVED >::value_type & PHObjectHandleVectorv1< BASE, DERIVED >::add const size_type index,
const value_type value
[virtual]
 

Add an existing object at position index.

Implements PHObjectHandleVector< BASE >.

Definition at line 169 of file PHObjectHandleVectorv1.h.

References PHObjectHandleVectorv1< BASE, DERIVED >::capacity(), PHObjectHandleVectorv1< BASE, DERIVED >::get(), PHObjectHandle< BASE >::get(), PHObjectHandleVectorv1< BASE, DERIVED >::size_type, and PHObjectHandleVectorv1< BASE, DERIVED >::value_type.

template<typename BASE, typename DERIVED>
PHObjectHandleVectorv1< BASE, DERIVED >::value_type & PHObjectHandleVectorv1< BASE, DERIVED >::add const size_type index  )  [virtual]
 

Add a new object at position index and returns it.

Implements PHObjectHandleVector< BASE >.

Definition at line 144 of file PHObjectHandleVectorv1.h.

References PHObjectHandleVectorv1< BASE, DERIVED >::capacity(), PHObjectHandleVectorv1< BASE, DERIVED >::get(), PHObjectHandleVectorv1< BASE, DERIVED >::size_type, and PHObjectHandleVectorv1< BASE, DERIVED >::value_type.

template<typename BASE, typename DERIVED>
PHObjectHandleVectorv1< BASE, DERIVED >::size_type PHObjectHandleVectorv1< BASE, DERIVED >::capacity  )  const [virtual]
 

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 208 of file PHObjectHandleVectorv1.h.

Referenced by PHObjectHandleVectorv1< BASE, DERIVED >::add(), PHObjectHandleVectorv1< BASE, DERIVED >::identify(), and PHObjectHandleVectorv1< BASE, DERIVED >::insert().

template<typename BASE, typename DERIVED>
PHObjectHandleVectorv1< BASE, DERIVED > * PHObjectHandleVectorv1< BASE, DERIVED >::clone  )  const [virtual]
 

Virtual copy constructor.

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 251 of file PHObjectHandleVectorv1.h.

template<typename BASE, typename DERIVED>
PHObjectHandleVectorv1< BASE, DERIVED > * PHObjectHandleVectorv1< BASE, DERIVED >::create  )  const [virtual]
 

Virtual default constructor.

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 259 of file PHObjectHandleVectorv1.h.

template<typename BASE, typename DERIVED>
virtual bool PHObjectHandleVectorv1< BASE, DERIVED >::empty  )  const [inline, virtual]
 

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 43 of file PHObjectHandleVectorv1.h.

template<typename BASE, typename DERIVED>
virtual iterator PHObjectHandleVectorv1< BASE, DERIVED >::erase iterator  pos  )  [inline, virtual]
 

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 47 of file PHObjectHandleVectorv1.h.

References PHObjectHandleVectorv1< BASE, DERIVED >::erase(), and PHObjectHandleVectorv1< BASE, DERIVED >::iterator.

template<typename BASE, typename DERIVED>
PHObjectHandleVectorv1< BASE, DERIVED >::iterator PHObjectHandleVectorv1< BASE, DERIVED >::erase iterator  first,
iterator  last
[virtual]
 

Definition at line 296 of file PHObjectHandleVectorv1.h.

References PHObjectHandleVectorv1< BASE, DERIVED >::iterator.

Referenced by PHObjectHandleVectorv1< BASE, DERIVED >::erase(), and PHObjectHandleVectorv1< BASE, DERIVED >::remove().

template<typename BASE, typename DERIVED>
PHObjectHandleVectorv1< BASE, DERIVED >::value_type & PHObjectHandleVectorv1< BASE, DERIVED >::get const size_type index  )  [virtual]
 

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 341 of file PHObjectHandleVectorv1.h.

References PHObjectHandleVectorv1< BASE, DERIVED >::size_type, and PHObjectHandleVectorv1< BASE, DERIVED >::value_type.

template<typename BASE, typename DERIVED>
const PHObjectHandleVectorv1< BASE, DERIVED >::value_type & PHObjectHandleVectorv1< BASE, DERIVED >::get const size_type index  )  const [virtual]
 

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 330 of file PHObjectHandleVectorv1.h.

References PHObjectHandleVectorv1< BASE, DERIVED >::size_type, and PHObjectHandleVectorv1< BASE, DERIVED >::value_type.

Referenced by PHObjectHandleVectorv1< BASE, DERIVED >::add().

template<typename BASE, typename DERIVED>
void PHObjectHandleVectorv1< BASE, DERIVED >::identify std::ostream &  os = std::cout  )  const [virtual]
 

identify Function from PHObject

Parameters:
os Output Stream

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 352 of file PHObjectHandleVectorv1.h.

References PHObjectHandleVectorv1< BASE, DERIVED >::capacity(), PHObjectHandleVectorv1< BASE, DERIVED >::size(), and PHObjectHandleVectorv1< BASE, DERIVED >::value_type.

template<typename BASE, typename DERIVED>
virtual iterator PHObjectHandleVectorv1< BASE, DERIVED >::insert iterator  pos,
const value_type value
[inline, virtual]
 

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 57 of file PHObjectHandleVectorv1.h.

References PHObjectHandleVectorv1< BASE, DERIVED >::insert(), PHObjectHandleVectorv1< BASE, DERIVED >::iterator, and PHObjectHandleVectorv1< BASE, DERIVED >::value_type.

template<typename BASE, typename DERIVED>
PHObjectHandleVectorv1< BASE, DERIVED >::iterator PHObjectHandleVectorv1< BASE, DERIVED >::insert iterator  pos,
size_type  n,
const value_type value
[virtual]
 

Definition at line 387 of file PHObjectHandleVectorv1.h.

References PHObjectHandleVector< BASE >::begin(), PHObjectHandleVectorv1< BASE, DERIVED >::capacity(), PHObjectHandleVector< BASE >::end(), PHObjectHandleVectorv1< BASE, DERIVED >::iterator, PHObjectHandleVectorv1< BASE, DERIVED >::size_type, and PHObjectHandleVectorv1< BASE, DERIVED >::value_type.

Referenced by PHObjectHandleVectorv1< BASE, DERIVED >::insert().

template<typename BASE, typename DERIVED>
self& PHObjectHandleVectorv1< BASE, DERIVED >::operator= const self other  ) 
 

template<typename BASE, typename DERIVED>
bool PHObjectHandleVectorv1< BASE, DERIVED >::remove const size_type index  )  [virtual]
 

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 416 of file PHObjectHandleVectorv1.h.

References PHObjectHandleVector< BASE >::begin(), PHObjectHandleVectorv1< BASE, DERIVED >::erase(), PHObjectHandleVectorv1< BASE, DERIVED >::size(), and PHObjectHandleVectorv1< BASE, DERIVED >::size_type.

template<typename BASE, typename DERIVED>
void PHObjectHandleVectorv1< BASE, DERIVED >::reserve const size_type thesize  )  [virtual]
 

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 432 of file PHObjectHandleVectorv1.h.

References PHObjectHandleVectorv1< BASE, DERIVED >::size_type.

Referenced by PHObjectHandleVectorv1< BASE, DERIVED >::resize().

template<typename BASE, typename DERIVED>
void PHObjectHandleVectorv1< BASE, DERIVED >::Reset  )  [virtual]
 

Clear Event.

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 448 of file PHObjectHandleVectorv1.h.

template<typename BASE, typename DERIVED>
virtual bool PHObjectHandleVectorv1< BASE, DERIVED >::resize const size_type newsize  )  [inline, virtual]
 

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 68 of file PHObjectHandleVectorv1.h.

References PHObjectHandleVectorv1< BASE, DERIVED >::resize(), PHObjectHandleVectorv1< BASE, DERIVED >::size_type, and PHObjectHandleVectorv1< BASE, DERIVED >::value_type.

template<typename BASE, typename DERIVED>
bool PHObjectHandleVectorv1< BASE, DERIVED >::resize const size_type newsize,
const value_type value
[virtual]
 

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 458 of file PHObjectHandleVectorv1.h.

References PHObjectHandleVectorv1< BASE, DERIVED >::reserve(), PHObjectHandleVectorv1< BASE, DERIVED >::size_type, and PHObjectHandleVectorv1< BASE, DERIVED >::value_type.

Referenced by PHObjectHandleVectorv1< BASE, DERIVED >::resize().

template<typename BASE, typename DERIVED>
PHObjectHandleVectorv1< BASE, DERIVED >::size_type PHObjectHandleVectorv1< BASE, DERIVED >::size  )  const [virtual]
 

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 490 of file PHObjectHandleVectorv1.h.

Referenced by PHObjectHandleVectorv1< BASE, DERIVED >::identify(), and PHObjectHandleVectorv1< BASE, DERIVED >::remove().


The documentation for this class was generated from the following file: