In file ListPtr.hh:

class ListPtr

Smart pointer for event lists.

Inheritance:


Public Methods

[more]explicit ListPtr (List* ptr = 0)
Default constructor
[more] ListPtr (const List& eventlist)
Constructor
[more] ListPtr (const ListPtr& ptr)
Copy constructor
[more] ~ListPtr ()
Destructor
[more]inline ListPtr& operator= (const ListPtr& ptr)
Assignment operator
[more]bool operator== (const ListPtr& ptr) const
Equality operator
[more]bool operator< (const ListPtr& ptr) const
Smaller operator
[more]List* Get ()
Get
[more]const List* Get () const
Get
[more]List& operator* ()
Dereference oprator
[more]const List& operator* () const
Dereference oprator
[more]List* operator-> ()
Member access oprator
[more]const List* operator-> () const
Member access oprator
[more]List* Release ()
Release
[more]void Reset (List* ptr = 0)
Reset
[more]void Reset (const List& eventlist)
Reset
[more]void Swap (ListPtr& ptr)
Swap


Documentation

A smart pointer for an event list. When copying an event list smart pointer, a new event list is created which is an exact copy of the original.

oexplicit ListPtr(List* ptr = 0)
Creates a pointer to an event list. The event list gets adopted.

o ListPtr(const List& eventlist)
Creates a new copy of the event. The event is not adopted.

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

o ~ListPtr()
Destructs the event list.

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

obool operator== (const ListPtr& ptr) const
Equality. Compares the pointers (needed by CINT).

obool operator< (const ListPtr& ptr) const
Smaller. Compares the pointers (needed by CINT).

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

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

oList& operator*()
Dereference operator.

oconst List& operator*() const
Dereference operator.

oList* operator->()
Member access oprator.

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

oList* Release()
Release the event.

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

ovoid Reset(const List& eventlist)
Resets the event. The new event is copied.

ovoid Swap(ListPtr& ptr)
Swap the pointers.


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