PHObjectHandle< BASE > Class Template Reference
A wrapper for a PHObject pointer. More...
#include <PHObjectHandle.h>
Inheritance diagram for PHObjectHandle< BASE >:


Public Types | |
typedef BASE * | pointer |
typedef BASE & | reference |
Public Member Functions | |
PHObjectHandle () | |
Default ctor. Internal pointer set to 0. | |
PHObjectHandle (pointer ptr) | |
Ctor specifying the underlying pointer. | |
PHObjectHandle (const PHObjectHandle< BASE > &) | |
Copy ctor. | |
PHObjectHandle< BASE > & | operator= (const PHObjectHandle< BASE > &other) |
Assignement operator. | |
virtual | ~PHObjectHandle () |
Dtor. | |
bool | operator! () const |
Returns true if pointer is 0. | |
bool | operator() () const |
Returns true if pointer is non zero. | |
pointer | operator-> () const |
Dereference operator. | |
reference | operator * () const |
Dereference operator. | |
PHObjectHandle< BASE > * | clone () const |
Virtual copy constructor. | |
PHObjectHandle< BASE > * | create () const |
Virtual constructor. | |
pointer | get () const |
Get the internal pointer. | |
virtual void | identify (std::ostream &os=std::cout) const |
identify Function from PHObject | |
virtual int | isValid () const |
isValid returns non zero if object contains vailid data | |
virtual void | Reset () |
Clear Event. |
Detailed Description
template<typename BASE>
class PHObjectHandle< BASE >
A wrapper for a PHObject pointer.
So this object is a plain object, not a pointer, though it behaves like a pointer ;-)
Definition at line 16 of file PHObjectHandle.h.
Member Typedef Documentation
|
Definition at line 19 of file PHObjectHandle.h. Referenced by PHObjectHandle< BASE >::PHObjectHandle(). |
|
Definition at line 20 of file PHObjectHandle.h. |
Constructor & Destructor Documentation
|
Default ctor. Internal pointer set to 0.
Definition at line 87 of file PHObjectHandle.h. |
|
Ctor specifying the underlying pointer.
Definition at line 93 of file PHObjectHandle.h. References PHObjectHandle< BASE >::pointer. |
|
Copy ctor.
Definition at line 100 of file PHObjectHandle.h. |
|
Dtor.
Definition at line 130 of file PHObjectHandle.h. |
Member Function Documentation
|
Virtual copy constructor.
Reimplemented from PHObject. Definition at line 50 of file PHObjectHandle.h. |
|
Virtual constructor.
Reimplemented from PHObject. Definition at line 53 of file PHObjectHandle.h. |
|
Get the internal pointer.
Definition at line 155 of file PHObjectHandle.h. Referenced by PHObjectHandleVectorv2< BASE, DERIVED >::add(), and PHObjectHandleVectorv1< BASE, DERIVED >::add(). |
|
identify Function from PHObject
Reimplemented from PHObject. Definition at line 163 of file PHObjectHandle.h. |
|
isValid returns non zero if object contains vailid data
Reimplemented from PHObject. Definition at line 60 of file PHObjectHandle.h. |
|
Dereference operator.
Definition at line 146 of file PHObjectHandle.h. |
|
Returns true if pointer is 0.
Definition at line 38 of file PHObjectHandle.h. |
|
Returns true if pointer is non zero.
Definition at line 41 of file PHObjectHandle.h. |
|
Dereference operator.
Definition at line 138 of file PHObjectHandle.h. |
|
Assignement operator.
Definition at line 110 of file PHObjectHandle.h. References PHObjectHandle< BASE >::copyTo(). |
|
Clear Event.
Reimplemented from PHObject. Definition at line 175 of file PHObjectHandle.h. |
The documentation for this class was generated from the following file: