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

PHObjectHandleVectorv2< BASE, DERIVED > Class Template Reference

Implementation of PHObjectHandleVector. More...

#include <PHObjectHandleVectorv2.h>

Inheritance diagram for PHObjectHandleVectorv2< BASE, DERIVED >:

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

Collaboration graph
[legend]
List of all members.

Public Types

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

Public Member Functions

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

virtual value_type add (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 PHObjectHandleVectorv2< BASE, DERIVED >

Implementation of PHObjectHandleVector.

Using std::vector 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 17 of file PHObjectHandleVectorv2.h.


Member Typedef Documentation

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

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 24 of file PHObjectHandleVectorv2.h.

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

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

Definition at line 21 of file PHObjectHandleVectorv2.h.

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

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 23 of file PHObjectHandleVectorv2.h.

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

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

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 22 of file PHObjectHandleVectorv2.h.

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


Constructor & Destructor Documentation

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

Definition at line 111 of file PHObjectHandleVectorv2.h.

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

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

Definition at line 151 of file PHObjectHandleVectorv2.h.


Member Function Documentation

template<typename BASE, typename DERIVED>
PHObjectHandleVectorv2< BASE, DERIVED >::value_type PHObjectHandleVectorv2< 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 185 of file PHObjectHandleVectorv2.h.

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

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

Add a new object at position index and returns it.

Implements PHObjectHandleVector< BASE >.

Definition at line 159 of file PHObjectHandleVectorv2.h.

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

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

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 228 of file PHObjectHandleVectorv2.h.

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

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

Virtual copy constructor.

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 254 of file PHObjectHandleVectorv2.h.

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

Virtual default constructor.

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 262 of file PHObjectHandleVectorv2.h.

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

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 42 of file PHObjectHandleVectorv2.h.

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

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 46 of file PHObjectHandleVectorv2.h.

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

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

Definition at line 311 of file PHObjectHandleVectorv2.h.

References PHObjectHandleVectorv2< BASE, DERIVED >::iterator.

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

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

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 378 of file PHObjectHandleVectorv2.h.

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

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

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 363 of file PHObjectHandleVectorv2.h.

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

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

template<typename BASE, typename DERIVED>
void PHObjectHandleVectorv2< 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 393 of file PHObjectHandleVectorv2.h.

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

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

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 56 of file PHObjectHandleVectorv2.h.

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

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

Definition at line 439 of file PHObjectHandleVectorv2.h.

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

Referenced by PHObjectHandleVectorv2< BASE, DERIVED >::insert(), and PHObjectHandleVectorv2< BASE, DERIVED >::resize().

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

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

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 467 of file PHObjectHandleVectorv2.h.

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

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

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 486 of file PHObjectHandleVectorv2.h.

References PHObjectHandleVectorv2< BASE, DERIVED >::size_type.

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

Clear Event.

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 498 of file PHObjectHandleVectorv2.h.

References PHObjectHandleVectorv2< BASE, DERIVED >::capacity().

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

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 67 of file PHObjectHandleVectorv2.h.

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

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

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 528 of file PHObjectHandleVectorv2.h.

References PHObjectHandleVector< BASE >::begin(), PHObjectHandleVector< BASE >::end(), PHObjectHandleVectorv2< BASE, DERIVED >::erase(), PHObjectHandleVectorv2< BASE, DERIVED >::insert(), PHObjectHandleVectorv2< BASE, DERIVED >::iterator, PHObjectHandleVectorv2< BASE, DERIVED >::size(), PHObjectHandleVectorv2< BASE, DERIVED >::size_type, and PHObjectHandleVectorv2< BASE, DERIVED >::value_type.

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

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

Reimplemented from PHObjectHandleVector< BASE >.

Definition at line 575 of file PHObjectHandleVectorv2.h.

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


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