In file ListPtr.hh:

namespace events class ListPtr

Smart pointer for event lists.

Inheritance:


Public Methods

explicit ListPtr (List* ptr = 0)
Default constructor
ListPtr (const List& eventlist)
Constructor
ListPtr (const ListPtr& ptr)
Copy constructor
~ListPtr ()
Destructor
inline ListPtr& operator= (const ListPtr& ptr)
Assignment operator
bool operator== (const ListPtr& ptr) const
Equality operator
bool operator< (const ListPtr& ptr) const
Smaller operator
List* Get ()
Get
const List* Get () const
Get
List& operator* ()
Dereference oprator
const List& operator* () const
Dereference oprator
List* operator-> ()
Member access oprator
const List* operator-> () const
Member access oprator
List* Release ()
Release
void Reset (List* ptr = 0)
Reset
void Reset (const List& eventlist)
Reset
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.

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

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

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

~ListPtr()
Destructs the event list.

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

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

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

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

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

List& operator*()
Dereference operator.

const List& operator*() const
Dereference operator.

List* operator->()
Member access oprator

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

List* Release()
Release the event.

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

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

void 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 hierarchy of classes


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


generated by doc++