In file ChainPtr.hh:

namespace events class ChainPtr

Smart pointer for event lists.

Inheritance:


Public Methods

explicit ChainPtr (Chain* ptr = 0)
Default constructor
ChainPtr (const Chain& eventchain)
Constructor
ChainPtr (const ChainPtr& ptr)
Copy constructor
~ChainPtr ()
Destructor
inline ChainPtr& operator= (const ChainPtr& ptr)
Assignment operator
bool operator== (const ChainPtr& ptr) const
Equality operator
bool operator< (const ChainPtr& ptr) const
Smaller operator
Chain* Get ()
Get
const Chain* Get () const
Get
Chain& operator* ()
Dereference oprator
const Chain& operator* () const
Dereference oprator
Chain* operator-> ()
Member access oprator
const Chain* operator-> () const
Member access oprator
Chain* Release ()
Release
void Reset (Chain* ptr = 0)
Reset
void Reset (const Chain& eventchain)
Reset
void Swap (ChainPtr& 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 ChainPtr(Chain* ptr = 0)
Creates a pointer to an event list. The event list gets adopted.

ChainPtr(const Chain& eventchain)
Creates a new copy of the event. The event is not adopted.

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

~ChainPtr()
Destructs the event list.

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

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

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

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

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

Chain& operator*()
Dereference operator.

const Chain& operator*() const
Dereference operator.

Chain* operator->()
Member access oprator

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

Chain* Release()
Release the event.

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

void Reset(const Chain& eventchain)
Resets the event. The new event is copied.

void Swap(ChainPtr& 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++