| v2.10-0 (21000JUN2005) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object for managing pointers on specific objects.
General purpose of this object - store pointer on any kind of object (derived from TObject) with/without ownership and provide a general interface to set/get and store/restore this object. Slot always belong to another object (has owner). Slot always knows, what kind of object should be assigned to it (via Class property).
Slots may be distributed in different places of fitter: in data object (typically for assigning data like TH1, TGraph or other), sometimes in model object (like in TGo4FitModelFromData in slot TGo4FitData object should be placed to provide bins for model component) or complex hierarchy of these objects possible. Fitter has a method to collect a list of all slots from all possible places. Once all slots are collected, fitter know, how many and what kind of objects should be (or can be) assigned to fitter before start fitting. Fitter (see TGo4FitterAbstract description) has a set of function for manipulating with objects in slots.
Field Summary | |
protected Bool_t | fbNeeded Flag, is this object should always be set. |
protected Bool_t | fbOwned Ownership flag of object. |
protected Int_t | fiSaveFlag Describe saving of object in slot. |
protected Int_t | fiSaveOwnership |
protected Int_t | fiSaveSlot |
protected TClass* | fxClass Class of object, which should be assigned to slot. |
protected TObject* | fxObject Pointer on assigned object. |
Fields inherited from class TNamed |
fName, fTitle |
Constructor Summary | |
TGo4FitSlot() Default constructor. | |
TGo4FitSlot(TNamed* iOwner, TClass* iClass) Creates TGo4FitSlot object. | |
TGo4FitSlot(const char * iName, const char * iTitle, TNamed* iOwner, TClass* iClass, Bool_t iNeeded, TObject* iObject, Bool_t iOwned) Creates TGo4FitSlot object. |
Destructor Summary | |
virtual synchronized | ~TGo4FitSlot() Destroys TFo4FitSlot object. |
Method Summary | |
Bool_t | CanConnectToSlot(TGo4FitSlot* slot) Checks, if slot can be connected to other |
protected void | CheckOwnership() Sets up ownership relation between object and owner of slot. |
void | Clear() Clear pointer on object in slot. |
void | ClearConnectionToSlot() Clear connection to other slot |
TObject* | CloneObject(const char * newname) Clone object in slot and returns pointer on new object. |
Bool_t | ConnectToSlot(TGo4FitSlot* slot) Connect this slot to provided slot. |
TClass* | GetClass() Return pointer on class for desired object. |
const TGo4FitSlot* | GetConnectedSlot() Returns pointer to connected slot or 0, if not connected |
Bool_t | GetNeeded() Return requirement status for slot. |
const TObject* | GetObject() Return pointer on assigned object. |
const const char * | GetObjectName() Return name of assigned object. |
Bool_t | GetOwned() Return ownership flag. |
Int_t | GetSaveFlag() Returns save flag. |
protected Bool_t | HasSaveSettings() |
const Bool_t | IsConnectedToSlot() Returns kTRUE, if slot connected to another slot |
const Bool_t | IsEmpty() Return kTRUE, if no object in slot. |
const Bool_t | IsObject() Return kTRUE, if object assigned to slot. |
const Bool_t | IsRequired() Returns kTRUE, if object required, but not yet set. |
Bool_t | IsSuitable(TObject* obj) Checks, if object class corresponds to class, specified for slot |
virtual const void | Print(Option_t* option) Print information on standard output. |
void | SetDefaults(TNamed* iOwner, TClass* iClass) Set basic fields of slot. |
void | SetNeeded(Bool_t iNeeded) Set requirement flag for object. |
Bool_t | SetObject(TObject* iObject, Bool_t iOwned, Bool_t CheckClass) Sets object to slot. |
void | SetOwned(Bool_t iOwned) Explicity sets ownership flag. |
void | SetSaveFlag(Int_t iSaveFlag) Set save flag for saving of object in slot, when slot stored to streamer: 0 - object will be saved if it owned, 1 - object always will be saved 2 - object never will be saved. |
protected void | SetSaveSettings(Int_t save, Int_t own) |
protected Bool_t | WillBeSaved() |
Methods inherited from class Go4Fit.TGo4FitNamed |
GetFullName, GetOwner, GetOwnerFullName, SetOwner |
Methods inherited from class TNamed |
operator=, Clear, Clone, Compare, Copy, FillBuffer, GetName, GetTitle, Hash, IsSortable, SetName, SetNameTitle, SetTitle, ls, Sizeof, Class, Class_Name, Class_Version, Dictionary, IsA, ShowMembers, Streamer, StreamerNVirtual, DeclFileName, ImplFileLine, ImplFileName, DeclFileLine |
Field Detail |
protected Bool_t fbNeeded
protected Bool_t fbOwned
protected Int_t fiSaveFlag
protected Int_t fiSaveOwnership
protected Int_t fiSaveSlot
protected TClass* fxClass
protected TObject* fxObject
Constructor Detail |
public TGo4FitSlot()
public TGo4FitSlot(TNamed* iOwner, TClass* iClass)
public TGo4FitSlot(const char * iName, const char * iTitle, TNamed* iOwner, TClass* iClass, Bool_t iNeeded, TObject* iObject, Bool_t iOwned)
Method Detail |
public virtual synchronized ~TGo4FitSlot()
Method Detail |
public Bool_t CanConnectToSlot(TGo4FitSlot* slot)
protected void CheckOwnership()
public void Clear()
public void ClearConnectionToSlot()
public TObject* CloneObject(const char * newname)
public Bool_t ConnectToSlot(TGo4FitSlot* slot)
public TClass* GetClass()
public const TGo4FitSlot* GetConnectedSlot()
public Bool_t GetNeeded()
public const TObject* GetObject()
public const const char * GetObjectName()
public Bool_t GetOwned()
public Int_t GetSaveFlag()
protected Bool_t HasSaveSettings()
public const Bool_t IsConnectedToSlot()
public const Bool_t IsEmpty()
public const Bool_t IsObject()
public const Bool_t IsRequired()
public Bool_t IsSuitable(TObject* obj)
public virtual const void Print(Option_t* option)
public void SetDefaults(TNamed* iOwner, TClass* iClass)
public void SetNeeded(Bool_t iNeeded)
public Bool_t SetObject(TObject* iObject, Bool_t iOwned, Bool_t CheckClass)
public void SetOwned(Bool_t iOwned)
public void SetSaveFlag(Int_t iSaveFlag)
protected void SetSaveSettings(Int_t save, Int_t own)
protected Bool_t WillBeSaved()
Association Links |
| J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |