#include "QSigExStaticList.h"

QSigExStaticList


class description - header file - source file - inheritance tree (.pdf)

class QSigExStaticList

Inheritance Chart:
QSigExStaticList
    private:
void CheckRights() public:
QSigExStaticList() virtual ~QSigExStaticList() Int_t Add(TObject* object) const TObject* At(Int_t i) static TClass* Class() void Clear(Option_t* option = "NULL") Int_t GetSize() virtual TClass* IsA() const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
static Int_t fNInstances Number of instances of QSigExStaticList static TList fList TList object

Class Description

                                                                      
 QSigExStaticList                                                     
                                                                      
 This class securely implements a static simplified version of TList  
 ROOT class.  It allows to create a list that can be read by any      
 class/function that makes an instance of the class. Only the first   
 instance can modify or delete the list, so there's no risk of making 
 unwanted changes on the list with other instances. This class can be 
 useful to pass information to a function without passing it via its  
 arguments.                                                           
                                                                      

void CheckRights()
This protected member function throws an exception if the number of
instances of QSigExStaticList is not equal to 1.
QSigExStaticList()


{fNInstances++;}
virtual ~QSigExStaticList()


{fNInstances--; Clear();}
Int_t Add(TObject* object)

return fList. GetSize()

const TObject* At(Int_t i)

void Clear(Option_t* option=NULL)


Author: Pierre-Luc Drouin
Last update: Fri Nov 17 16:35:15 2006


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.