PHObjectVectorTCA< BASE, DERIVED > Class Template Reference
Implementation of PHObjectVector. More...
#include <PHObjectVectorTCA.h>
Inheritance diagram for PHObjectVectorTCA< BASE, DERIVED >:


Public Types | |
typedef PHObjectVectorTCA< BASE, DERIVED > | self |
typedef BASE * | value_type |
typedef const value_type & | const_reference |
typedef value_type & | reference |
typedef unsigned int | size_type |
Public Member Functions | |
PHObjectVectorTCA (const size_type defaultcapacity=10, const size_type maxcapacity=100) | |
PHObjectVectorTCA (const self &other) | |
self & | operator= (const self &other) |
virtual | ~PHObjectVectorTCA () |
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, and returns it. | |
virtual size_type | capacity () const |
Maximum size. | |
virtual PHObjectVectorTCA< BASE, DERIVED > * | clone () const |
Virtual copy constructor. | |
virtual PHObjectVectorTCA< BASE, DERIVED > * | create () const |
Virtual default constructor. | |
virtual bool | empty () const |
Whether this vector is empty. | |
virtual void | erase (const size_type &index) |
Erase one element. | |
virtual value_type | get (const size_type &index) const |
Get the index-th element. | |
virtual void | identify (std::ostream &os=std::cout) const |
Identify from PHObject. | |
virtual int | isValid () const |
isValid from PHObject. | |
virtual void | Reset () |
Reset from PHObject. | |
virtual bool | reserve (const size_type &n) |
Request allocation for at least n elements. | |
virtual bool | resize (const size_type &newsize, value_type v=value_type()) |
Change the size. | |
virtual size_type | size () const |
Get the size of this vector. |
Detailed Description
template<typename BASE, typename DERIVED>
class PHObjectVectorTCA< BASE, DERIVED >
Implementation of PHObjectVector.
Using TClonesArray as underlying technology.
Definition at line 12 of file PHObjectVectorTCA.h.
Member Typedef Documentation
|
Reimplemented from PHObjectVector< BASE >. Definition at line 17 of file PHObjectVectorTCA.h. |
|
Reimplemented from PHObjectVector< BASE >. Definition at line 18 of file PHObjectVectorTCA.h. |
|
Definition at line 15 of file PHObjectVectorTCA.h. |
|
Reimplemented from PHObjectVector< BASE >. Definition at line 19 of file PHObjectVectorTCA.h. Referenced by PHObjectVectorTCA< BASE, DERIVED >::add(), PHObjectVectorTCA< BASE, DERIVED >::erase(), PHObjectVectorTCA< BASE, DERIVED >::get(), PHObjectVectorTCA< BASE, DERIVED >::PHObjectVectorTCA(), PHObjectVectorTCA< BASE, DERIVED >::reserve(), and PHObjectVectorTCA< BASE, DERIVED >::resize(). |
|
Reimplemented from PHObjectVector< BASE >. Definition at line 16 of file PHObjectVectorTCA.h. Referenced by PHObjectVectorTCA< BASE, DERIVED >::add(), and PHObjectVectorTCA< BASE, DERIVED >::resize(). |
Constructor & Destructor Documentation
|
Definition at line 99 of file PHObjectVectorTCA.h. References BASE, and PHObjectVectorTCA< BASE, DERIVED >::size_type. |
|
|
|
Definition at line 147 of file PHObjectVectorTCA.h. |
Member Function Documentation
|
Add an existing object at position index, and returns it.
Implements PHObjectVector< BASE >. Definition at line 176 of file PHObjectVectorTCA.h. References PHObjectVectorTCA< BASE, DERIVED >::capacity(), PHObjectVectorTCA< BASE, DERIVED >::get(), PHObjectVectorTCA< BASE, DERIVED >::size_type, and PHObjectVectorTCA< BASE, DERIVED >::value_type. |
|
Add a new object at position index, and returns it.
Implements PHObjectVector< BASE >. Definition at line 155 of file PHObjectVectorTCA.h. References PHObjectVectorTCA< BASE, DERIVED >::capacity(), PHObjectVectorTCA< BASE, DERIVED >::get(), PHObjectVectorTCA< BASE, DERIVED >::size_type, and PHObjectVectorTCA< BASE, DERIVED >::value_type. Referenced by PHObjectVectorTCA< BASE, DERIVED >::resize(). |
|
Maximum size.
Implements PHObjectVector< BASE >. Definition at line 214 of file PHObjectVectorTCA.h. Referenced by PHObjectVectorTCA< BASE, DERIVED >::add(), and PHObjectVectorTCA< BASE, DERIVED >::identify(). |
|
Virtual copy constructor.
Implements PHObjectVector< BASE >. Definition at line 249 of file PHObjectVectorTCA.h. |
|
Virtual default constructor.
Implements PHObjectVector< BASE >. Definition at line 257 of file PHObjectVectorTCA.h. |
|
Whether this vector is empty.
Reimplemented from PHObjectVector< BASE >. Definition at line 44 of file PHObjectVectorTCA.h. References PHObjectVectorTCA< BASE, DERIVED >::size(). |
|
Erase one element.
Implements PHObjectVector< BASE >. Definition at line 421 of file PHObjectVectorTCA.h. References PHObjectVectorTCA< BASE, DERIVED >::size(), and PHObjectVectorTCA< BASE, DERIVED >::size_type. |
|
Get the index-th element.
Implements PHObjectVector< BASE >. Definition at line 297 of file PHObjectVectorTCA.h. References PHObjectVectorTCA< BASE, DERIVED >::size_type. Referenced by PHObjectVectorTCA< BASE, DERIVED >::add(), and PHObjectVectorTCA< BASE, DERIVED >::identify(). |
|
Identify from PHObject.
Implements PHObjectVector< BASE >. Definition at line 305 of file PHObjectVectorTCA.h. References BASE, PHObjectVectorTCA< BASE, DERIVED >::capacity(), PHObjectVectorTCA< BASE, DERIVED >::get(), and PHObjectVectorTCA< BASE, DERIVED >::size(). |
|
isValid from PHObject.
Implements PHObjectVector< BASE >. Definition at line 56 of file PHObjectVectorTCA.h. |
|
|
|
Request allocation for at least n elements.
Implements PHObjectVector< BASE >. Definition at line 338 of file PHObjectVectorTCA.h. References PHObjectVectorTCA< BASE, DERIVED >::size_type. Referenced by PHObjectVectorTCA< BASE, DERIVED >::resize(). |
|
Reset from PHObject.
Implements PHObjectVector< BASE >. Definition at line 364 of file PHObjectVectorTCA.h. |
|
Change the size.
Implements PHObjectVector< BASE >. Definition at line 373 of file PHObjectVectorTCA.h. References PHObjectVectorTCA< BASE, DERIVED >::add(), PHObjectVectorTCA< BASE, DERIVED >::reserve(), PHObjectVectorTCA< BASE, DERIVED >::size(), PHObjectVectorTCA< BASE, DERIVED >::size_type, and PHObjectVectorTCA< BASE, DERIVED >::value_type. |
|
Get the size of this vector.
Implements PHObjectVector< BASE >. Definition at line 454 of file PHObjectVectorTCA.h. Referenced by PHObjectVectorTCA< BASE, DERIVED >::empty(), PHObjectVectorTCA< BASE, DERIVED >::erase(), PHObjectVectorTCA< BASE, DERIVED >::identify(), and PHObjectVectorTCA< BASE, DERIVED >::resize(). |
The documentation for this class was generated from the following file: