In file EventPtr.hh:

class EventPtr

Smart pointer for events.

Inheritance:


Public Methods

[more]explicit EventPtr (Event* ptr = 0)
Default constructor
[more] EventPtr (const Event& event)
Constructor
[more] EventPtr (const EventPtr& ptr)
Copy constructor
[more] ~EventPtr ()
Destructor
[more]EventPtr& operator= (const EventPtr& ptr)
Assignment operator
[more]Event* Get ()
Get
[more]const Event* Get () const
Get
[more]Event& operator* ()
Dereference oprator
[more]const Event& operator* () const
Dereference oprator
[more]Event* operator-> ()
Member access oprator
[more]const Event* operator-> () const
Member access oprator
[more]Event* Release ()
Release
[more]void Reset (Event* ptr = 0)
Reset
[more]void Reset (const Event& ptr)
Reset


Documentation

A smart pointer for events. When copying an event smart pointer, a new event is created with the Copy method.

oexplicit EventPtr(Event* ptr = 0)
Creates an pointer to an event. The event gets adopted.

o EventPtr(const Event& event)
Creates a new copy of the event. The event is not adopted.

o EventPtr(const EventPtr& ptr)
Copies an event list.

o ~EventPtr()
Destructs the event.

oEventPtr& operator= (const EventPtr& ptr)
Assignment. Makes a new pointer with a true copy.

oEvent* Get()
Get a pointer to the event.

oconst Event* Get() const
Get a pointer to the event.

oEvent& operator*()
Dereference operator.

oconst Event& operator*() const
Dereference operator.

oEvent* operator->()
Member access oprator.

oconst Event* operator->() const
Member access oprator.

oEvent* Release()
Release the event.

ovoid Reset(Event* ptr = 0)
Resets the event. The new event gets adopted.

ovoid Reset(const Event& ptr)
Resets the event. The new event is copied.


This class has no child classes.
Author:
Written June 2001 by Masahiro Ito and Daniel Sigg
Version:
1.0

Alphabetic index HTML hierarchy of classes or Java


Please send questions and comments to zweizig_j@ligo-wa.caltech.edu