Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
TQUndoManager Class Reference

Recorder of operations for undo and redo.

Definition at line 103 of file TQCommand.h.

Public Types

enum  { kInitCapacity = 16 , kInitHashTableCapacity = 17 }
enum  { kSingleKey = (1ULL << (0)) , kOverwrite = (1ULL << (1)) , kWriteDelete = (1ULL << (2)) }
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
enum  EDeprecatedStatusBits { kObjInCanvas = (1ULL << (3)) }
typedef TListIter Iterator_t
using TObjLinkPtr_t = std::shared_ptr<TObjLink>

Public Member Functions

 TQUndoManager ()
 Constructor.
virtual ~TQUndoManager ()
 Destructor.
void AbstractMethod (const char *method) const
 Call this function within a function that you don't want to define as purely virtual, in order not to force all users deriving from that class to implement that maybe (on their side) unused function; but at the same time, emit a run-time warning if they try to call it, telling that it is not implemented in the derived class: action must thus be taken on the user side to override it.
void Add (TObject *obj) override
void Add (TObject *obj, Option_t *opt) override
 Add command to the stack of commands.
void AddAfter (const TObject *after, TObject *obj) override
 Insert object after object after in the list.
void AddAfter (const TObject *after, TObject *obj, Option_t *opt) override
 Insert object after object after in the list, with options.
virtual void AddAfter (TObjLink *after, TObject *obj)
 Insert object after the specified ObjLink object.
virtual void AddAfter (TObjLink *after, TObject *obj, Option_t *opt)
 Insert object after the specified ObjLink object.
virtual void AddAll (const TCollection *col)
 Add all objects from collection col to this collection.
void AddAt (TObject *obj, Int_t idx) override
 Insert object at position idx in the list.
void AddAt (TObject *obj, Int_t idx, Option_t *opt) override
 Insert object at position idx in the list, with options.
void AddBefore (const TObject *before, TObject *obj) override
 Insert object before object before in the list.
void AddBefore (const TObject *before, TObject *obj, Option_t *opt) override
 Insert object before object before in the list, with options.
virtual void AddBefore (TObjLink *before, TObject *obj)
 Insert object before the specified ObjLink object.
virtual void AddBefore (TObjLink *before, TObject *obj, Option_t *opt)
 Insert object before the specified ObjLink object.
void AddFirst (TObject *obj) override
 Add object at the beginning of the list.
void AddFirst (TObject *obj, Option_t *opt) override
 Add object at the beginning of the list and also store option.
void AddLast (TObject *obj) override
 Add object at the end of the list.
void AddLast (TObject *obj, Option_t *opt) override
 Add object at the end of the list and also store option.
void AddVector (TObject *obj1,...)
 Add all arguments to the collection.
TObjectAfter (const TObject *obj) const override
 Returns the object after object obj.
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad.
Bool_t AreSignalsBlocked () const
Bool_t AssertClass (TClass *cl) const
 Make sure all objects in this collection inherit from class cl.
TObjectAt (Int_t idx) const override
 Returns the object at position idx. Returns 0 if idx is out of range.
TObjectBefore (const TObject *obj) const override
 Returns the object before object obj.
TIter begin () const
Bool_t BlockSignals (Bool_t b)
void Browse (TBrowser *b) override
 Browse this collection (called by TBrowser).
virtual Bool_t CanCompress (TQCommand *c) const
 By default, commands can be compressed if they are:
virtual Bool_t CanMerge (TQCommand *c) const
 Two commands can be merged if they can be composed into a single command (Macro command).
Bool_t CanRedo () const override
 Returns kTRUE if redo action is possible.
Bool_t CanUndo () const override
 Returns kTRUE if undo action is possible.
Int_t Capacity () const
virtual void ChangedBy (const char *method)
ULong_t CheckedHash ()
 Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.
virtual const char * ClassName () const
 Returns name of class to which the object belongs.
void Clear (Option_t *option="") override
 Remove all objects from the list.
TObjectClone (const char *newname="") const override
 Make a clone of an collection using the Streamer facility.
void CollectClassSignalLists (TList &list, TClass *cls)
 Collect class signal lists from class cls and all its base-classes.
Int_t Compare (const TObject *obj) const override
 Compare two TCollection objects.
virtual void Compress (TQCommand *c)
 Compress command.
Bool_t Connect (const char *signal, const char *receiver_class, void *receiver, const char *slot)
 Non-static method is used to connect from the signal of this object to the receiver slot.
virtual void Connected (const char *)
Bool_t Contains (const char *name) const
Bool_t Contains (const TObject *obj) const
virtual void Copy (TObject &object) const
 Copy this to obj.
virtual void CurrentChanged (TQCommand *c)
 emit signal
void Delete (Option_t *option="") override
 If "opt" is not zero delete every merged command which option string is equal to "opt".
virtual void Destroyed ()
Bool_t Disconnect (const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr)
 Disconnects signal of this object from slot of receiver.
virtual void Disconnected (const char *)
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object.
void Draw (Option_t *option="") override
 Draw all objects in this collection.
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs.
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).
void Dump () const override
 Dump all objects in this collection.
void Emit (const char *signal)
 Activate signal without args.
template<typename T>
void Emit (const char *signal, const T &arg)
 Activate signal with single parameter.
template<typename... T>
void EmitVA (const char *signal_name, Int_t, const T &... params)
 Emit a signal with a varying number of arguments.
TIter end () const
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message.
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
 Execute method on this object with the given parameter string, e.g.
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
 Execute method on this object with parameters stored in the TObjArray.
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py).
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message.
TObjectFindObject (const char *name) const override
 Find an object in this list using its name.
TObjectFindObject (const TObject *obj) const override
 Find an object in this list using the object's IsEqual() member function.
TObjectFirst () const override
 Return the first object in the list. Returns 0 when list is empty.
virtual TObjLinkFirstLink () const
TQCommandGetCurrent () const
 Returns the last executed command.
TQCommandGetCursor () const
 Returns a command correspondent to the current cursor position in stack.
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object.
virtual Int_t GetEntries () const
virtual const char * GetIconName () const
 Returns mime type name of object.
virtual Int_t GetLast () const
 Returns index of last object in collection.
UInt_t GetLimit () const
 Returns a maximum number of commands which could be located in stack.
TListGetListOfClassSignals () const
 Returns pointer to list of signals of this class.
TListGetListOfConnections () const
TListGetListOfSignals () const
const char * GetName () const override
 Returns the command name.
Int_t GetNRargs () const
 Returns a number of redo arguments.
Int_t GetNUargs () const
 Returns a number of undo arguments.
void * GetObject () const
 Returns an object for which undo redo actions are applied.
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py).
TObject ** GetObjectRef (const TObject *obj) const override
 Return address of pointer to obj.
virtual Option_tGetOption () const
TQConnectionGetRedo () const
Long_tGetRedoArgs () const
 Returns a pointer to array of redo arguments.
const char * GetRedoName () const
 Returns the name of redo command.
virtual Int_t GetSize () const
 Return the capacity of the collection, i.e.
Int_t GetStatus () const
 Returns a number of sequential undo or redo operations.
const char * GetTitle () const override
 Returns command description.
TQConnectionGetUndo () const
Long_tGetUndoArgs () const
 Returns a pointer to array of undo arguments.
const char * GetUndoName () const
 Returns the name of undo command.
virtual UInt_t GetUniqueID () const
 Return the unique object id.
virtual Int_t GrowBy (Int_t delta) const
 Increase the collection's capacity by delta slots.
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out.
virtual Bool_t HasConnection (const char *signal_name) const
 Return true if there is any object connected to this signal.
ULong_t Hash () const override
 Return hash value for this object.
Bool_t HasInconsistentHash () const
 Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.
virtual void HighPriority (const char *signal_name, const char *slot_name=nullptr)
virtual Int_t IndexOf (const TObject *obj) const
 Return index of object in collection.
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message.
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname".
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl.
virtual void Inspect () const
 Dump contents of this object in a graphics canvas.
void InvertBit (UInt_t f)
TClassIsA () const override
Bool_t IsArgNull (const char *where, const TObject *obj) const
 Returns true if object is a null pointer.
Bool_t IsAscending ()
Bool_t IsDestructed () const
 IsDestructed.
virtual Bool_t IsEmpty () const
Bool_t IsEqual (const TObject *obj) const override
 Equal comparison.
Bool_t IsExecuting () const
 Returns kTRUE if command execution is in progress.
Bool_t IsFolder () const override
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
Bool_t IsLogging () const
 Returns kTRUE if logging is ON.
Bool_t IsMacro () const
 Returns kTRUE if neither redo nor undo action specified.
Bool_t IsOnHeap () const
Bool_t IsOwner () const
Bool_t IsRedoing () const
 Redo action is in progress.
virtual Bool_t IsSetter () const
 Returns kTRUE is command if Redo is the same as Undo function and is the setter action.
Bool_t IsSortable () const override
virtual Bool_t IsSorted () const
Bool_t IsUndoing () const
 Undo action is in progress.
Bool_t IsUsingRWLock () const
Bool_t IsZombie () const
TObjectLast () const override
 Return the last object in the list. Returns 0 when list is empty.
Int_t LastIndex () const
virtual TObjLinkLastLink () const
virtual void LowPriority (const char *signal_name, const char *slot_name=nullptr)
void ls (Option_t *option="") const override
 Lists all commands in stack.
TIteratorMakeIterator (Bool_t dir=kIterForward) const override
 Return a list iterator.
virtual TIteratorMakeReverseIterator () const
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary).
virtual Long64_t Merge (TCollection *, TFileMergeInfo *)
 Merge a collection of TQCommand.
virtual void Merge (TQCommand *c)
 Add command to the list of merged commands.
Long64_t Merge (TCollection *list)
 Merge this collection with all collections coming in the input list.
virtual void Message (const char *msg)
Bool_t Notify () override
 'Notify' all objects in this collection.
virtual Int_t NumberOfConnections () const
 Return number of connections for this object.
virtual Int_t NumberOfSignals () const
 Return number of signals for this object.
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete.
void operator delete (void *, size_t)
 Operator delete for sized deallocation.
void operator delete (void *ptr)
 Operator delete.
void operator delete (void *ptr, void *vp)
 Only called by placement new when throwing an exception.
void operator delete[] (void *, size_t)
 Operator delete [] for sized deallocation.
void operator delete[] (void *ptr)
 Operator delete [].
void operator delete[] (void *ptr, void *vp)
 Only called by placement new[] when throwing an exception.
void * operator new (size_t sz)
void * operator new (size_t sz, void *vp)
void * operator new[] (size_t sz)
void * operator new[] (size_t sz, void *vp)
TObjectoperator() (const char *name) const
 Find an object in this collection by name.
void Paint (Option_t *option="") override
 Paint all objects in this collection.
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list.
virtual void Print (Option_t *option, const char *wildcard, Int_t recurse=1) const
 Print the collection header and its elements that match the wildcard.
virtual void Print (Option_t *option, Int_t recurse) const
 Print the collection header and its elements.
virtual void Print (Option_t *option, TPRegexp &regexp, Int_t recurse=1) const
 Print the collection header and its elements that match the regexp.
void Print (Option_t *option="") const override
 Default print for collections, calls Print(option, 1).
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory.
void RecursiveRemove (TObject *obj) override
 Remove object from this collection and recursively remove the object from all other objects (and collections).
void Redo (Option_t *option="") override
 Performs redo action. Move cursor position forward in history stack.
TObjectRemove (const TObjLinkPtr_t &lnk)
TObjectRemove (TObject *obj) override
 Remove object from the list.
virtual TObjectRemove (TObjLink *lnk)
 Remove object link (and therefore the object it contains) from the list.
virtual void RemoveAfter (TObject *after)
void RemoveAll ()
virtual void RemoveAll (TCollection *col)
 Remove all objects in collection col from this collection.
virtual TObjectRemoveAt (Int_t idx)
virtual void RemoveBefore (TObject *before)
virtual void RemoveFirst ()
void RemoveLast () override
 Remove the last object of the list.
void ResetBit (UInt_t f)
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename.
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out".
virtual void SetArgs (Int_t nargs,...)
 Set do/redo and undo parameters.
void SetBit (UInt_t f)
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f.
void SetCurrentCollection ()
 Set this collection to be the globally accessible collection.
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object.
virtual void SetLimit (UInt_t limit)
 Returns a maximum number of commands which could be located in stack.
virtual void SetLogging (Bool_t on=kTRUE)
 Start logging.
virtual void SetName (const char *name)
 Sets name of the command.
virtual void SetOwner (Bool_t enable=kTRUE)
 Set whether this collection is the owner (enable==true) of its content.
virtual void SetRedoArgs (Int_t nargs,...)
 Set redo parameters.
virtual void SetTitle (const char *title)
 Sets description of the command.
virtual void SetUndoArgs (Int_t nargs,...)
 Set undo parameters.
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id.
std::size_t size () const
virtual void Sort (Bool_t order=kSortAscending)
 Sort linked list.
void Streamer (TBuffer &) override
 Stream all objects in the collection to or from the I/O buffer.
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message.
Bool_t TestBit (UInt_t f) const
Int_t TestBits (UInt_t f) const
void Undo (Option_t *option="") override
 Performs undo action. Move cursor position backward in history stack.
void UnSort ()
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked.
virtual bool UseRWLock (Bool_t enable=true)
 Set this collection to use a RW lock upon access, making it thread safe.
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message.
Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const override
 Write all objects in this collection.
Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) override
 Write all objects in this collection.

Static Public Member Functions

static Bool_t AreAllSignalsBlocked ()
 Returns true if all signals are blocked.
static Bool_t BlockAllSignals (Bool_t b)
 Block or unblock all signals. Returns the previous block status.
static TClassClass ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static Bool_t Connect (const char *sender_class, const char *signal, const char *receiver_class, void *receiver, const char *slot)
 This method allows to make a connection from any object of the same class to a single slot.
static Bool_t Connect (TQObject *sender, const char *signal, const char *receiver_class, void *receiver, const char *slot)
 Create connection between sender and receiver.
static const char * DeclFileName ()
static Bool_t Disconnect (const char *class_name, const char *signal, void *receiver=nullptr, const char *slot=nullptr)
 Disconnects "class signal".
static Bool_t Disconnect (TQObject *sender, const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr)
 Disconnects signal in object sender from slot_method in object receiver.
static void EmptyGarbageCollection ()
 Do the garbage collection.
static void GarbageCollect (TObject *obj)
 Add to the list of things to be cleaned up.
static TQCommandGetCommand ()
 Return a command which is doing redo/undo action.
static TCollectionGetCurrentCollection ()
 Return the globally accessible collection.
static Longptr_t GetDtorOnly ()
 Return destructor only flag.
static Bool_t GetObjectStat ()
 Get status of object stat flag.
static Int_t ObjCompare (TObject *a, TObject *b)
 Compare to objects in the collection. Use member Compare() of object a.
static void QSort (TObject **a, Int_t first, Int_t last)
 Sort array of TObject pointers using a quicksort algorithm.
static void QSort (TObject **a, Int_t nBs, TObject ***b, Int_t first, Int_t last)
 Sort array a of TObject pointers using a quicksort algorithm.
static void QSort (TObject **a, TObject **b, Int_t first, Int_t last)
static void SetDtorOnly (void *obj)
 Set destructor only flag.
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable.
static void StartGarbageCollection ()
 Set up for garbage collection.

Protected Types

enum  { kOnlyPrepStep = (1ULL << (3)) }
enum  EStatusBits { kIsOwner = (1ULL << (14)) , kUseRWLock = (1ULL << (16)) }
using TObjLinkWeakPtr_t = std::weak_ptr<TObjLink>

Protected Member Functions

virtual void Changed ()
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected).
TObjLinkPtr_tDoSort (TObjLinkPtr_t *head, Int_t n)
 Sort linked list.
TObjLinkFindLink (const TObject *obj, Int_t &idx) const
 Returns the TObjLink object that contains object obj.
virtual const char * GetCollectionEntryName (TObject *entry) const
 For given collection entry return the string that is used to identify the object and, potentially, perform wildcard/regexp filtering on.
virtual void * GetSender ()
virtual const char * GetSenderClassName () const
virtual void Init (const char *cl, void *object, const char *redo, const char *undo)
 Common protected method used in several constructors.
void InsertAfter (const TObjLinkPtr_t &newlink, const TObjLinkPtr_t &prev)
 Insert a new link in the chain.
TObjLinkLinkAt (Int_t idx) const
 Return the TObjLink object at index idx.
Bool_t LnkCompare (const TObjLinkPtr_t &l1, const TObjLinkPtr_t &l2)
 Compares the objects stored in the TObjLink objects.
void MakeZombie ()
TObjLinkPtr_t NewLink (TObject *obj, const TObjLinkPtr_t &prev=nullptr)
 Return a new TObjLink.
TObjLinkPtr_t NewLink (TObject *obj, TObjLink *prev)
TObjLinkPtr_t NewOptLink (TObject *obj, Option_t *opt, const TObjLinkPtr_t &prev=nullptr)
 Return a new TObjOptLink (a TObjLink that also stores the option).
TObjLinkPtr_t NewOptLink (TObject *obj, Option_t *opt, TObjLink *prev)
void PrintCollectionEntry (TObject *entry, Option_t *option, Int_t recurse) const override
 Print collection entry.
void PrintCollectionHeader (Option_t *option) const override
 Print collection header.

Static Protected Member Functions

static Int_t CheckConnectArgs (TQObject *sender, TClass *sender_class, const char *signal, TClass *receiver_class, const char *slot)
 Checking of consistency of sender/receiver methods/arguments.
static TString CompressName (const char *method_name)
 Removes "const" words and blanks from full (with prototype) method name and resolve any typedefs in the method signature.
static Bool_t ConnectToClass (const char *sender_class, const char *signal, TClass *receiver_class, void *receiver, const char *slot)
 This method allows to make connection from any object of the same class to the receiver object.
static Bool_t ConnectToClass (TQObject *sender, const char *signal, TClass *receiver_class, void *receiver, const char *slot)
 Create connection between sender and receiver.
static void SavePrimitiveConstructor (std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE)
 Save object constructor in the output stream "out".
static void SavePrimitiveDraw (std::ostream &out, const char *variable_name, Option_t *option=nullptr)
 Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.
static TString SavePrimitiveVector (std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Int_t flag=0)
 Save array in the output stream "out" as vector.

Protected Attributes

Bool_t fAscending
 ! sorting order (when calling Sort() or for TSortedList)
TObjLinkWeakPtr_t fCache
 ! cache to speedup sequential calling of Before() and After() functions
TQCommandfCurrent
TObjLinkfCursor
TObjLinkPtr_t fFirst
 ! pointer to first entry in linked list
TObjLinkPtr_t fLast
 ! pointer to last entry in linked list
UInt_t fLimit
TListfListOfConnections
 ! list of connections to this object
TListfListOfSignals
 ! list of signals from this object
TListfLogBook
Bool_t fLogging
TString fName
Bool_t fNewDelete
Int_t fNRargs
Int_t fNUargs
void * fObject
TQConnectionfRedo
Long_tfRedoArgs
Bool_t fSignalsBlocked
 ! flag used for suppression of signals
Int_t fSize
Bool_t fSorted
Int_t fState
Int_t fStatus
TString fTitle
TQConnectionfUndo
Long_tfUndoArgs

Static Protected Attributes

static Bool_t fgAllSignalsBlocked = kFALSE

Static Private Member Functions

static void AddToTObjectTable (TObject *)
 Private helper function which will dispatch to TObjectTable::AddObj.

Private Attributes

UInt_t fBits
 bit field status word
UInt_t fUniqueID
 object unique identifier

Static Private Attributes

static TCollectionfgCurrentCollection = nullptr
static Longptr_t fgDtorOnly = 0
 object for which to call dtor only (i.e. no delete)
static Bool_t fgEmptyingGarbage = kFALSE
static TObjectTablefgGarbageCollection = nullptr
static Int_t fgGarbageStack = 0
static Bool_t fgObjectStat = kTRUE
 if true keep track of objects in TObjectTable

#include <TQCommand.h>

Inheritance diagram for TQUndoManager:
TQCommand TList TQObject TSeqCollection TCollection TObject

Member Typedef Documentation

◆ Iterator_t

typedef TListIter TList::Iterator_t
inherited

Definition at line 70 of file TList.h.

◆ TObjLinkPtr_t

using TList::TObjLinkPtr_t = std::shared_ptr<TObjLink>
inherited

Definition at line 42 of file TList.h.

◆ TObjLinkWeakPtr_t

using TList::TObjLinkWeakPtr_t = std::weak_ptr<TObjLink>
protectedinherited

Definition at line 44 of file TList.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
inherited
Enumerator
kInitCapacity 
kInitHashTableCapacity 

Definition at line 159 of file TCollection.h.

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
kOnlyPrepStep 

Used to request that the class specific implementation of TObject::Write just prepare the objects to be ready to be written but do not actually write them into the TBuffer.

This is just for example by TBufferMerger to request that the TTree inside the file calls TTree::FlushBaskets (outside of the merging lock) and TBufferMerger will later ask for the write (inside the merging lock). To take advantage of this feature the class needs to overload TObject::Write and use this enum value accordingly. (See TTree::Write and TObject::Write) Do not use, this feature will be migrate to the Merge function (See TClass and TTree::Merge)

Definition at line 106 of file TObject.h.

◆ anonymous enum

anonymous enum
inherited
Enumerator
kSingleKey 

write collection with single key

kOverwrite 

overwrite existing object with same name

kWriteDelete 

write object, then delete previous key with same name

Definition at line 99 of file TObject.h.

◆ anonymous enum

anonymous enum
inherited
Enumerator
kIsOnHeap 

object is on heap

kNotDeleted 

object has not been deleted

kZombie 

object ctor failed

kInconsistent 

class overload Hash but does call RecursiveRemove in destructor

kBitMask 

Definition at line 89 of file TObject.h.

◆ EDeprecatedStatusBits

Enumerator
kObjInCanvas 

for backward compatibility only, use kMustCleanup

Definition at line 84 of file TObject.h.

◆ EStatusBits

enum TCollection::EStatusBits
protectedinherited
Enumerator
kIsOwner 
kUseRWLock 

Definition at line 143 of file TCollection.h.

Constructor & Destructor Documentation

◆ TQUndoManager()

TQUndoManager::TQUndoManager ( )

Constructor.

Definition at line 875 of file TQCommand.cxx.

◆ ~TQUndoManager()

TQUndoManager::~TQUndoManager ( )
virtual

Destructor.

Definition at line 887 of file TQCommand.cxx.

Member Function Documentation

◆ AbstractMethod()

void TObject::AbstractMethod ( const char * method) const
inherited

Call this function within a function that you don't want to define as purely virtual, in order not to force all users deriving from that class to implement that maybe (on their side) unused function; but at the same time, emit a run-time warning if they try to call it, telling that it is not implemented in the derived class: action must thus be taken on the user side to override it.

In other word, this method acts as a "runtime purely virtual" warning instead of a "compiler purely virtual" error.

Warning
This interface is a legacy function that is no longer recommended to be used by new development code.
Note
The name "AbstractMethod" does not imply that it's an abstract method in the strict C++ sense.

Definition at line 1149 of file TObject.cxx.

◆ Add() [1/2]

void TQUndoManager::Add ( TObject * obj)
inlineoverridevirtual

Reimplemented from TQCommand.

Definition at line 119 of file TQCommand.h.

◆ Add() [2/2]

void TQUndoManager::Add ( TObject * obj,
Option_t * opt )
overridevirtual

Add command to the stack of commands.

Command's redo action will be executed.

option string can contain the following substrings:

  • "merge" - input command will be merged
  • "compress" - input command will be compressed

Reimplemented from TQCommand.

Definition at line 957 of file TQCommand.cxx.

◆ AddAfter() [1/4]

void TList::AddAfter ( const TObject * after,
TObject * obj )
overridevirtualinherited

Insert object after object after in the list.

Implements TSeqCollection.

Reimplemented in TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TSelectorList, TSortedList, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 247 of file TList.cxx.

◆ AddAfter() [2/4]

void TList::AddAfter ( const TObject * after,
TObject * obj,
Option_t * opt )
overridevirtualinherited

Insert object after object after in the list, with options.

Reimplemented from TSeqCollection.

Reimplemented in TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TSelectorList, TSortedList, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 357 of file TList.cxx.

◆ AddAfter() [3/4]

void TList::AddAfter ( TObjLink * after,
TObject * obj )
virtualinherited

Insert object after the specified ObjLink object.

If after = 0 then add to the tail of the list. An ObjLink can be obtained by looping over a list using the above describe iterator method 3.

Reimplemented in THashList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TSelectorList, TSortedList, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 279 of file TList.cxx.

◆ AddAfter() [4/4]

void TList::AddAfter ( TObjLink * after,
TObject * obj,
Option_t * opt )
virtualinherited

Insert object after the specified ObjLink object.

If after = 0 then add to the tail of the list. An ObjLink can be obtained by looping over a list using the above describe iterator method 3. Options can be specified.

Reimplemented in THashList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TSelectorList, TSortedList, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 389 of file TList.cxx.

◆ AddAll()

void TCollection::AddAll ( const TCollection * col)
virtualinherited

Add all objects from collection col to this collection.

Reimplemented in THashTable.

Definition at line 226 of file TCollection.cxx.

◆ AddAt() [1/2]

void TList::AddAt ( TObject * obj,
Int_t idx )
overridevirtualinherited

Insert object at position idx in the list.

Implements TSeqCollection.

Reimplemented in TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TSelectorList, TSortedList, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 413 of file TList.cxx.

◆ AddAt() [2/2]

void TList::AddAt ( TObject * obj,
Int_t idx,
Option_t * opt )
overridevirtualinherited

Insert object at position idx in the list, with options.

Reimplemented from TSeqCollection.

Reimplemented in TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TSelectorList, TSortedList, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 436 of file TList.cxx.

◆ AddBefore() [1/4]

void TList::AddBefore ( const TObject * before,
TObject * obj )
overridevirtualinherited

Insert object before object before in the list.

Implements TSeqCollection.

Reimplemented in TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TSelectorList, TSortedList, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 193 of file TList.cxx.

◆ AddBefore() [2/4]

void TList::AddBefore ( const TObject * before,
TObject * obj,
Option_t * opt )
overridevirtualinherited

Insert object before object before in the list, with options.

Reimplemented from TSeqCollection.

Reimplemented in TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TSelectorList, TSortedList, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 303 of file TList.cxx.

◆ AddBefore() [3/4]

void TList::AddBefore ( TObjLink * before,
TObject * obj )
virtualinherited

Insert object before the specified ObjLink object.

If before = 0 then add to the head of the list. An ObjLink can be obtained by looping over a list using the above describe iterator method 3.

Reimplemented in THashList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TSelectorList, TSortedList, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 225 of file TList.cxx.

◆ AddBefore() [4/4]

void TList::AddBefore ( TObjLink * before,
TObject * obj,
Option_t * opt )
virtualinherited

Insert object before the specified ObjLink object.

If before = 0 then add to the head of the list. An ObjLink can be obtained by looping over a list using the above describe iterator method 3. Options can be specified.

Reimplemented in THashList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TSelectorList, TSortedList, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 335 of file TList.cxx.

◆ AddFirst() [1/2]

void TList::AddFirst ( TObject * obj)
overridevirtualinherited

Add object at the beginning of the list.

Implements TSeqCollection.

Reimplemented in TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TSelectorList, TSortedList, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 97 of file TList.cxx.

◆ AddFirst() [2/2]

void TList::AddFirst ( TObject * obj,
Option_t * opt )
overridevirtualinherited

Add object at the beginning of the list and also store option.

Storing an option is useful when one wants to change the behaviour of an object a little without having to create a complete new copy of the object. This feature is used, for example, by the Draw() method. It allows the same object to be drawn in different ways.

Reimplemented from TSeqCollection.

Reimplemented in TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TSelectorList, TSortedList, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 125 of file TList.cxx.

◆ AddLast() [1/2]

void TList::AddLast ( TObject * obj)
overridevirtualinherited

Add object at the end of the list.

Implements TSeqCollection.

Reimplemented in TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TSelectorList, TSortedList, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 149 of file TList.cxx.

◆ AddLast() [2/2]

void TList::AddLast ( TObject * obj,
Option_t * opt )
overridevirtualinherited

Add object at the end of the list and also store option.

Storing an option is useful when one wants to change the behaviour of an object a little without having to create a complete new copy of the object. This feature is used, for example, by the Draw() method. It allows the same object to be drawn in different ways.

Reimplemented from TSeqCollection.

Reimplemented in TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TSelectorList, TSortedList, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 173 of file TList.cxx.

◆ AddToTObjectTable()

void TObject::AddToTObjectTable ( TObject * op)
staticprivateinherited

Private helper function which will dispatch to TObjectTable::AddObj.

Included here to avoid circular dependency between header files.

Definition at line 195 of file TObject.cxx.

◆ AddVector()

void TCollection::AddVector ( TObject * obj1,
... )
inherited

Add all arguments to the collection.

The list of objects must be terminated by 0, e.g.: l.AddVector(o1, o2, o3, o4, 0);

Definition at line 239 of file TCollection.cxx.

◆ After()

TObject * TList::After ( const TObject * obj) const
overridevirtualinherited

Returns the object after object obj.

Obj is found using the object's IsEqual() method. Returns 0 if obj is last in list.

Implements TSeqCollection.

Reimplemented in TListOfEnumsWithLock, TListOfFunctions, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 460 of file TList.cxx.

◆ AppendPad()

void TObject::AppendPad ( Option_t * option = "")
virtualinherited

Append graphics object to current pad.

In case no current pad is set yet, create a default canvas with the name "c1".

Definition at line 204 of file TObject.cxx.

◆ AreAllSignalsBlocked()

Bool_t TQObject::AreAllSignalsBlocked ( )
staticinherited

Returns true if all signals are blocked.

Definition at line 1045 of file TQObject.cxx.

◆ AreSignalsBlocked()

Bool_t TQObject::AreSignalsBlocked ( ) const
inlineinherited

Definition at line 91 of file TQObject.h.

◆ AssertClass()

Bool_t TCollection::AssertClass ( TClass * cl) const
inherited

Make sure all objects in this collection inherit from class cl.

Definition at line 254 of file TCollection.cxx.

◆ At()

TObject * TList::At ( Int_t idx) const
overridevirtualinherited

Returns the object at position idx. Returns 0 if idx is out of range.

Implements TSeqCollection.

Reimplemented in TListOfEnumsWithLock, TListOfFunctions, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 487 of file TList.cxx.

◆ Before()

TObject * TList::Before ( const TObject * obj) const
overridevirtualinherited

Returns the object before object obj.

Obj is found using the object's IsEqual() method. Returns 0 if obj is first in list.

Implements TSeqCollection.

Reimplemented in TListOfEnumsWithLock, TListOfFunctions, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 501 of file TList.cxx.

◆ begin()

TIter TCollection::begin ( ) const
inlineinherited

Definition at line 294 of file TCollection.h.

◆ BlockAllSignals()

Bool_t TQObject::BlockAllSignals ( Bool_t b)
staticinherited

Block or unblock all signals. Returns the previous block status.

Definition at line 1053 of file TQObject.cxx.

◆ BlockSignals()

Bool_t TQObject::BlockSignals ( Bool_t b)
inlineinherited

Definition at line 92 of file TQObject.h.

◆ Browse()

void TCollection::Browse ( TBrowser * b)
overridevirtualinherited

Browse this collection (called by TBrowser).

If b=0, there is no Browse call TObject::Browse(0) instead. This means TObject::Inspect() will be invoked indirectly

Reimplemented from TObject.

Reimplemented in TRootIconList.

Definition at line 279 of file TCollection.cxx.

◆ CanCompress()

Bool_t TQCommand::CanCompress ( TQCommand * c) const
virtualinherited

By default, commands can be compressed if they are:

  • equal
  • setter commands

More complicated commands might want to override this function.

Definition at line 385 of file TQCommand.cxx.

◆ CanMerge()

Bool_t TQCommand::CanMerge ( TQCommand * c) const
virtualinherited

Two commands can be merged if they can be composed into a single command (Macro command).

To allow merging commands user might override this function.

Definition at line 312 of file TQCommand.cxx.

◆ CanRedo()

Bool_t TQUndoManager::CanRedo ( ) const
overridevirtual

Returns kTRUE if redo action is possible.

Reimplemented from TQCommand.

Definition at line 1083 of file TQCommand.cxx.

◆ CanUndo()

Bool_t TQUndoManager::CanUndo ( ) const
overridevirtual

Returns kTRUE if undo action is possible.

Reimplemented from TQCommand.

Definition at line 1097 of file TQCommand.cxx.

◆ Capacity()

Int_t TCollection::Capacity ( ) const
inlineinherited

Definition at line 168 of file TCollection.h.

◆ Changed()

virtual void TSeqCollection::Changed ( )
inlineprotectedvirtualinherited

Definition at line 34 of file TSeqCollection.h.

◆ ChangedBy()

virtual void TQObject::ChangedBy ( const char * method)
inlinevirtualinherited

Definition at line 199 of file TQObject.h.

◆ CheckConnectArgs()

Int_t TQObject::CheckConnectArgs ( TQObject * sender,
TClass * sender_class,
const char * signal,
TClass * receiver_class,
const char * slot )
staticprotectedinherited

Checking of consistency of sender/receiver methods/arguments.

Returns -1 on error, otherwise number or arguments of signal function. Static method.

Definition at line 175 of file TQObject.cxx.

◆ CheckedHash()

ULong_t TObject::CheckedHash ( )
inlineinherited

Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.

The intent is for this routine to be called instead of directly calling the function Hash during "insert" operations. See TObject::HasInconsistenTObjectHash();

(*) The setup is consistent when all classes in the class hierarchy that overload TObject::Hash do call ROOT::CallRecursiveRemoveIfNeeded in their destructor. i.e. it is safe to call the Hash virtual function during the RecursiveRemove operation.

Definition at line 332 of file TObject.h.

◆ Class()

TClass * TQUndoManager::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

const char * TQUndoManager::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

constexpr Version_t TQUndoManager::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 133 of file TQCommand.h.

◆ ClassName()

const char * TObject::ClassName ( ) const
virtualinherited

Returns name of class to which the object belongs.

Definition at line 227 of file TObject.cxx.

◆ Clear()

void TList::Clear ( Option_t * option = "")
overridevirtualinherited

Remove all objects from the list.

Does not delete the objects unless the TList is the owner (set via SetOwner()) and option "nodelete" is not set. If option="nodelete" then don't delete any heap objects that were marked with the kCanDelete bit, otherwise these objects will be deleted (this option is used by THashTable::Clear()).

Implements TCollection.

Reimplemented in TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 532 of file TList.cxx.

◆ Clone()

TObject * TCollection::Clone ( const char * newname = "") const
overridevirtualinherited

Make a clone of an collection using the Streamer facility.

If newname is specified, this will be the name of the new collection.

Reimplemented from TObject.

Definition at line 294 of file TCollection.cxx.

◆ CollectClassSignalLists()

void TQObject::CollectClassSignalLists ( TList & list,
TClass * cls )
inherited

Collect class signal lists from class cls and all its base-classes.

The recursive traversal is not performed for classes not deriving from TQClass.

Definition at line 447 of file TQObject.cxx.

◆ Compare()

Int_t TCollection::Compare ( const TObject * obj) const
overridevirtualinherited

Compare two TCollection objects.

Returns 0 when equal, -1 when this is smaller and +1 when bigger (like strcmp()).

Reimplemented from TObject.

Definition at line 306 of file TCollection.cxx.

◆ Compress()

void TQCommand::Compress ( TQCommand * c)
virtualinherited

Compress command.

Compression is analogous to arithmetic "addition operation".

Note:

  • The compressed command will be deleted.
  • Execution Compress method invokes Redo action with new redo arguments inherited from compressed command.

More complicated commands might want to override this function.

Definition at line 400 of file TQCommand.cxx.

◆ CompressName()

TString TQObject::CompressName ( const char * method_name)
staticprotectedinherited

Removes "const" words and blanks from full (with prototype) method name and resolve any typedefs in the method signature.

If a null or empty string is passed in, an empty string is returned.

Example:

CompressName(" Draw(const char *, const char *,
Option_t * , Int_t , Int_t)");
static TString CompressName(const char *method_name)
Removes "const" words and blanks from full (with prototype) method name and resolve any typedefs in t...
Definition TQObject.cxx:94

returns the string "Draw(char*,char*,char*,int,int)".

Definition at line 94 of file TQObject.cxx.

◆ Connect() [1/3]

Bool_t TQObject::Connect ( const char * class_name,
const char * signal,
const char * cl,
void * receiver,
const char * slot )
staticinherited

This method allows to make a connection from any object of the same class to a single slot.

Signal and slot string must have a form: "Draw(char*, Option_t* ,Int_t)" All blanks and "const" words will be removed,

cl != 0 - class name, it can be class with or without dictionary, e.g interpreted class. Example:

TGButton *myButton;
TH2F *myHist;
TQObject::Connect("TGButton", "Clicked()",
"TH2F", myHist, "Draw(Option_t*)");
A button abstract base class.
Definition TGButton.h:68
2-D histogram with a float per channel (see TH1 documentation)
Definition TH2.h:345
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
Definition TQObject.cxx:865

cl == 0 - corresponds to function (interpereted or global) the name of the function is defined by the slot string, parameter receiver should be 0. Example:

TGButton *myButton;
TH2F *myHist;
TQObject::Connect("TGButton", "Clicked()",
0, 0, "hsimple()");

Warning:

If receiver class not derived from TQObject and going to be deleted, disconnect all connections to this receiver. In case of class derived from TQObject it is done automatically.

Definition at line 791 of file TQObject.cxx.

◆ Connect() [2/3]

Bool_t TQObject::Connect ( const char * signal,
const char * receiver_class,
void * receiver,
const char * slot )
inherited

Non-static method is used to connect from the signal of this object to the receiver slot.

Warning! No check on consistency of sender/receiver classes/methods.

This method makes possible to have connection/signals from interpreted class. See also RQ_OBJECT.h.

Definition at line 865 of file TQObject.cxx.

◆ Connect() [3/3]

Bool_t TQObject::Connect ( TQObject * sender,
const char * signal,
const char * cl,
void * receiver,
const char * slot )
staticinherited

Create connection between sender and receiver.

Signal and slot string must have a form: "Draw(char*, Option_t* ,Int_t)" All blanks and "const" words will be removed,

cl != 0 - class name, it can be class with or without dictionary, e.g interpreted class. Example:

TGButton *myButton;
TH2F *myHist;
TQObject::Connect(myButton,"Clicked()",
"TH2F", myHist,"Draw(Option_t*)");

cl == 0 - corresponds to function (interpereted or global) the name of the function is defined by the slot string, parameter receiver should be 0. Example:

TGButton *myButton;
TH2F *myHist;
TQObject::Connect(myButton,"Clicked()",
0, 0,"hsimple()");

Warning: If receiver is class not derived from TQObject and going to be deleted, disconnect all connections to this receiver. In case of class derived from TQObject it is done automatically.

Definition at line 699 of file TQObject.cxx.

◆ Connected()

virtual void TQObject::Connected ( const char * )
inlinevirtualinherited

Definition at line 194 of file TQObject.h.

◆ ConnectToClass() [1/2]

Bool_t TQObject::ConnectToClass ( const char * class_name,
const char * signal,
TClass * cl,
void * receiver,
const char * slot )
staticprotectedinherited

This method allows to make connection from any object of the same class to the receiver object.

Receiver class needs to have a dictionary.

Definition at line 615 of file TQObject.cxx.

◆ ConnectToClass() [2/2]

Bool_t TQObject::ConnectToClass ( TQObject * sender,
const char * signal,
TClass * cl,
void * receiver,
const char * slot )
staticprotectedinherited

Create connection between sender and receiver.

Receiver class needs to have a dictionary.

Definition at line 559 of file TQObject.cxx.

◆ Contains() [1/2]

Bool_t TCollection::Contains ( const char * name) const
inlineinherited

Definition at line 172 of file TCollection.h.

◆ Contains() [2/2]

Bool_t TCollection::Contains ( const TObject * obj) const
inlineinherited

Definition at line 173 of file TCollection.h.

◆ Copy()

◆ CurrentChanged()

void TQUndoManager::CurrentChanged ( TQCommand * c)
virtual

emit signal

Definition at line 1011 of file TQCommand.cxx.

◆ DeclFileName()

const char * TQUndoManager::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 133 of file TQCommand.h.

◆ Delete()

void TQCommand::Delete ( Option_t * opt = "")
overridevirtualinherited

If "opt" is not zero delete every merged command which option string is equal to "opt".

If "opt" is zero - delete all merged commands.

Reimplemented from TList.

Definition at line 283 of file TQCommand.cxx.

◆ Destroyed()

virtual void TQObject::Destroyed ( )
inlinevirtualinherited

Reimplemented in TQConnection.

Definition at line 197 of file TQObject.h.

◆ Disconnect() [1/3]

Bool_t TQObject::Disconnect ( const char * class_name,
const char * signal,
void * receiver = nullptr,
const char * slot = nullptr )
staticinherited

Disconnects "class signal".

The class is defined by class_name. See also Connect(class_name,signal,receiver,slot).

Definition at line 1004 of file TQObject.cxx.

◆ Disconnect() [2/3]

Bool_t TQObject::Disconnect ( const char * signal = nullptr,
void * receiver = nullptr,
const char * slot = nullptr )
inherited

Disconnects signal of this object from slot of receiver.

Equivalent to Disconnect(this, signal, receiver, slot)

Definition at line 1023 of file TQObject.cxx.

◆ Disconnect() [3/3]

Bool_t TQObject::Disconnect ( TQObject * sender,
const char * signal = nullptr,
void * receiver = nullptr,
const char * slot = nullptr )
staticinherited

Disconnects signal in object sender from slot_method in object receiver.

For objects derived from TQObject signal-slot connection is removed when either of the objects involved are destroyed.

Disconnect() is typically used in three ways, as the following examples shows:

  • Disconnect everything connected to an object's signals:
    Disconnect(myObject);
    Bool_t Disconnect(const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr)
    Disconnects signal of this object from slot of receiver.
  • Disconnect everything connected to a signal:
    Disconnect(myObject, "mySignal()");
  • Disconnect a specific receiver:
    Disconnect(myObject, 0, myReceiver, 0);

0 may be used as a wildcard in three of the four arguments, meaning "any signal", "any receiving object" or "any slot in the receiving object", respectively.

The sender has no default and may never be 0 (you cannot disconnect signals from more than one object).

If signal is 0, it disconnects receiver and slot_method from any signal. If not, only the specified signal is disconnected.

If receiver is 0, it disconnects anything connected to signal. If not, slots in objects other than receiver are not disconnected

If slot_method is 0, it disconnects anything that is connected to receiver. If not, only slots named slot_method will be disconnected, and all other slots are left alone. The slot_method must be 0 if receiver is left out, so you cannot disconnect a specifically-named slot on all objects.

Definition at line 956 of file TQObject.cxx.

◆ Disconnected()

virtual void TQObject::Disconnected ( const char * )
inlinevirtualinherited

Definition at line 195 of file TQObject.h.

◆ DistancetoPrimitive()

◆ DoError()

void TObject::DoError ( int level,
const char * location,
const char * fmt,
va_list va ) const
protectedvirtualinherited

Interface to ErrorHandler (protected).

Reimplemented in TThread, and TTreeViewer.

Definition at line 1059 of file TObject.cxx.

◆ DoSort()

std::shared_ptr< TObjLink > * TList::DoSort ( TObjLinkPtr_t * head,
Int_t n )
protectedinherited

Sort linked list.

Definition at line 1114 of file TList.cxx.

◆ Draw()

void TCollection::Draw ( Option_t * option = "")
overridevirtualinherited

Draw all objects in this collection.

Reimplemented from TObject.

Definition at line 315 of file TCollection.cxx.

◆ DrawClass()

void TObject::DrawClass ( ) const
virtualinherited

Draw class inheritance tree of the class to which this object belongs.

If a class B inherits from a class A, description of B is drawn on the right side of description of A. Member functions overridden by B are shown in class A with a blue line crossing-out the corresponding member function. The following picture is the class inheritance tree of class TPaveLabel:

Reimplemented in TGFrame, TSystemDirectory, and TSystemFile.

Definition at line 308 of file TObject.cxx.

◆ DrawClone()

TObject * TObject::DrawClone ( Option_t * option = "") const
virtualinherited

Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).

If pad was not selected - gPad will be used.

Note
For histograms, use the more specialised TH1::DrawCopy().

Reimplemented in TAxis, TCanvas, TGFrame, TSystemDirectory, and TSystemFile.

Definition at line 319 of file TObject.cxx.

◆ Dump()

void TCollection::Dump ( ) const
overridevirtualinherited

Dump all objects in this collection.

Reimplemented from TObject.

Definition at line 328 of file TCollection.cxx.

◆ Emit() [1/2]

void TQObject::Emit ( const char * signal)
inlineinherited

Activate signal without args.

Example: theButton->Emit("Clicked()");

Definition at line 174 of file TQObject.h.

◆ Emit() [2/2]

template<typename T>
void TQObject::Emit ( const char * signal,
const T & arg )
inlineinherited

Activate signal with single parameter.

Example:

theButton->Emit("Progress(Long64_t)",processed)

If we call Emit with an array of the parameters, they should be converted to Longptr_t type. Example:

TQObject *processor; // data processor
TH1F *hist; // filled with processor results
processor->Connect("Evaluated(Float_t,Float_t)",
"TH1F",hist,"Fill12(Axis_t,Axis_t)");
Longptr_t args[2];
args[0] = (Longptr_t)processor->GetValue(1);
args[1] = (Longptr_t)processor->GetValue(2);
processor->Emit("Evaluated(Float_t,Float_t)",args);
long Longptr_t
Integer large enough to hold a pointer (platform-dependent).
Definition RtypesCore.h:89
1-D histogram with a float per channel (see TH1 documentation)
Definition TH1.h:878
TQObject(const TQObject &)=delete
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
Definition TQObject.h:164

Definition at line 164 of file TQObject.h.

◆ EmitVA()

template<typename... T>
void TQObject::EmitVA ( const char * signal_name,
Int_t ,
const T &... params )
inlineinherited

Emit a signal with a varying number of arguments.

Definition at line 100 of file TQObject.h.

◆ EmptyGarbageCollection()

void TCollection::EmptyGarbageCollection ( )
staticinherited

Do the garbage collection.

Definition at line 741 of file TCollection.cxx.

◆ end()

TIter TCollection::end ( ) const
inlineinherited

Definition at line 295 of file TCollection.h.

◆ Error()

void TObject::Error ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue error message.

Use "location" to specify the method where the error occurred. Accepts standard printf formatting arguments.

Reimplemented in TFitResult.

Definition at line 1098 of file TObject.cxx.

◆ Execute() [1/2]

void TObject::Execute ( const char * method,
const char * params,
Int_t * error = nullptr )
virtualinherited

Execute method on this object with the given parameter string, e.g.

"3.14,1,\"text\"".

Reimplemented in ROOT::R::TRInterface, TCling, TContextMenu, TInterpreter, and TMethodCall.

Definition at line 378 of file TObject.cxx.

◆ Execute() [2/2]

void TObject::Execute ( TMethod * method,
TObjArray * params,
Int_t * error = nullptr )
virtualinherited

Execute method on this object with parameters stored in the TObjArray.

The TObjArray should contain an argv vector like:

argv[0] ... argv[n] = the list of TObjString parameters
Collectable string class.
Definition TObjString.h:28
const Int_t n
Definition legend1.C:16

Reimplemented in ROOT::R::TRInterface, TCling, TContextMenu, TInterpreter, and TMethodCall.

Definition at line 398 of file TObject.cxx.

◆ ExecuteEvent()

◆ Fatal()

void TObject::Fatal ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue fatal error message.

Use "location" to specify the method where the fatal error occurred. Accepts standard printf formatting arguments.

Definition at line 1126 of file TObject.cxx.

◆ FindLink()

TObjLink * TList::FindLink ( const TObject * obj,
Int_t & idx ) const
protectedinherited

Returns the TObjLink object that contains object obj.

In idx it returns the position of the object in the list.

Definition at line 758 of file TList.cxx.

◆ FindObject() [1/2]

TObject * TList::FindObject ( const char * name) const
overridevirtualinherited

Find an object in this list using its name.

Requires a sequential scan till the object has been found. Returns 0 if object with specified name is not found. This method overrides the generic FindObject() of TCollection for efficiency reasons.

Reimplemented from TCollection.

Reimplemented in TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 708 of file TList.cxx.

◆ FindObject() [2/2]

TObject * TList::FindObject ( const TObject * obj) const
overridevirtualinherited

Find an object in this list using the object's IsEqual() member function.

Requires a sequential scan till the object has been found. Returns 0 if object is not found. This method overrides the generic FindObject() of TCollection for efficiency reasons.

Reimplemented from TCollection.

Reimplemented in TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 735 of file TList.cxx.

◆ First()

TObject * TList::First ( ) const
overridevirtualinherited

Return the first object in the list. Returns 0 when list is empty.

Implements TSeqCollection.

Reimplemented in TListOfEnumsWithLock, TListOfFunctions, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 789 of file TList.cxx.

◆ FirstLink()

virtual TObjLink * TList::FirstLink ( ) const
inlinevirtualinherited

Reimplemented in TListOfEnumsWithLock, TListOfFunctions, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 107 of file TList.h.

◆ GarbageCollect()

void TCollection::GarbageCollect ( TObject * obj)
staticinherited

Add to the list of things to be cleaned up.

Definition at line 756 of file TCollection.cxx.

◆ GetCollectionEntryName()

const char * TCollection::GetCollectionEntryName ( TObject * entry) const
protectedvirtualinherited

For given collection entry return the string that is used to identify the object and, potentially, perform wildcard/regexp filtering on.

Definition at line 468 of file TCollection.cxx.

◆ GetCommand()

TQCommand * TQCommand::GetCommand ( )
staticinherited

Return a command which is doing redo/undo action.

This static method allows to set undo parameters dynamically, i.e. during execution of Redo function.

Example: For redo actions like TGTextEdit::DelChar() it is not possible to know ahead what character will be deleted. To set arguments for undo action ( e.g. TGTextEdit::InsChar(char)), one needs to call TQCommand::SetUndoArgs(1, character) from inside of TGTextEdit::DelChar() method, i.e.

virtual void SetUndoArgs(Int_t nargs,...)
Set undo parameters.
static TQCommand * GetCommand()
Return a command which is doing redo/undo action.

Definition at line 274 of file TQCommand.cxx.

◆ GetCurrent()

TQCommand * TQUndoManager::GetCurrent ( ) const

Returns the last executed command.

Definition at line 1119 of file TQCommand.cxx.

◆ GetCurrentCollection()

TCollection * TCollection::GetCurrentCollection ( )
staticinherited

Return the globally accessible collection.

Definition at line 711 of file TCollection.cxx.

◆ GetCursor()

TQCommand * TQUndoManager::GetCursor ( ) const

Returns a command correspondent to the current cursor position in stack.

Definition at line 1127 of file TQCommand.cxx.

◆ GetDrawOption()

Option_t * TObject::GetDrawOption ( ) const
virtualinherited

Get option used by the graphics system to draw this object.

Note that before calling object.GetDrawOption(), you must have called object.Draw(..) before in the current pad.

Reimplemented in TBrowser, TFitEditor, TGedFrame, TGFileBrowser, TRootBrowser, and TRootBrowserLite.

Definition at line 445 of file TObject.cxx.

◆ GetDtorOnly()

Longptr_t TObject::GetDtorOnly ( )
staticinherited

Return destructor only flag.

Definition at line 1196 of file TObject.cxx.

◆ GetEntries()

virtual Int_t TCollection::GetEntries ( ) const
inlinevirtualinherited

Reimplemented in TObjArray, and TRefArray.

Definition at line 180 of file TCollection.h.

◆ GetIconName()

const char * TObject::GetIconName ( ) const
virtualinherited

Returns mime type name of object.

Used by the TBrowser (via TGMimeTypes class). Override for class of which you would like to have different icons for objects of the same class.

Reimplemented in ROOT::Experimental::XRooFit::xRooNode, TASImage, TBranch, TBranchElement, TGeoVolume, TGMainFrame, TKey, TMethodBrowsable, TSystemFile, and TVirtualBranchBrowsable.

Definition at line 472 of file TObject.cxx.

◆ GetLast()

Int_t TSeqCollection::GetLast ( ) const
virtualinherited

Returns index of last object in collection.

Returns -1 when no objects in collection.

Reimplemented in TListOfEnumsWithLock, TListOfFunctions, TObjArray, and TRefArray.

Definition at line 46 of file TSeqCollection.cxx.

◆ GetLimit()

UInt_t TQUndoManager::GetLimit ( ) const

Returns a maximum number of commands which could be located in stack.

Definition at line 1143 of file TQCommand.cxx.

◆ GetListOfClassSignals()

TList * TQObject::GetListOfClassSignals ( ) const
inherited

Returns pointer to list of signals of this class.

Definition at line 431 of file TQObject.cxx.

◆ GetListOfConnections()

TList * TQObject::GetListOfConnections ( ) const
inlineinherited

Definition at line 89 of file TQObject.h.

◆ GetListOfSignals()

TList * TQObject::GetListOfSignals ( ) const
inlineinherited

Definition at line 88 of file TQObject.h.

◆ GetName()

const char * TQCommand::GetName ( ) const
overridevirtualinherited

Returns the command name.

Default name is "ClassName::RedoName(args)" If list of merged commands is not empty the name is "ClassName::RedoName(args):cname1:cname2 ..."

Reimplemented from TCollection.

Definition at line 668 of file TQCommand.cxx.

◆ GetNRargs()

Int_t TQCommand::GetNRargs ( ) const
inherited

Returns a number of redo arguments.

Definition at line 766 of file TQCommand.cxx.

◆ GetNUargs()

Int_t TQCommand::GetNUargs ( ) const
inherited

Returns a number of undo arguments.

Definition at line 774 of file TQCommand.cxx.

◆ GetObject()

void * TQCommand::GetObject ( ) const
inherited

Returns an object for which undo redo actions are applied.

Definition at line 782 of file TQCommand.cxx.

◆ GetObjectInfo()

char * TObject::GetObjectInfo ( Int_t px,
Int_t py ) const
virtualinherited

Returns string containing info about the object at position (px,py).

This method is typically overridden by classes of which the objects can report peculiarities for different positions. Returned string will be re-used (lock in MT environment).

Reimplemented in TASImage, TAxis3D, TColorWheel, TF1, TF2, TFileDrawMap, TGeoNode, TGeoTrack, TGeoVolume, TGL5DDataSet, TGLHistPainter, TGLParametricEquation, TGLTH3Composition, TGraph, TH1, THistPainter, TNode, TPaletteAxis, TParallelCoordVar, and TVirtualHistPainter.

Definition at line 491 of file TObject.cxx.

◆ GetObjectRef()

TObject ** TList::GetObjectRef ( const TObject * obj) const
overridevirtualinherited

Return address of pointer to obj.

Implements TCollection.

Reimplemented in TListOfEnumsWithLock, TListOfFunctions, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 801 of file TList.cxx.

◆ GetObjectStat()

Bool_t TObject::GetObjectStat ( )
staticinherited

Get status of object stat flag.

Definition at line 1181 of file TObject.cxx.

◆ GetOption()

virtual Option_t * TObject::GetOption ( ) const
inlinevirtualinherited

◆ GetRedo()

TQConnection * TQCommand::GetRedo ( ) const
inlineinherited

Definition at line 75 of file TQCommand.h.

◆ GetRedoArgs()

Long_t * TQCommand::GetRedoArgs ( ) const
inherited

Returns a pointer to array of redo arguments.

Definition at line 750 of file TQCommand.cxx.

◆ GetRedoName()

const char * TQCommand::GetRedoName ( ) const
inherited

Returns the name of redo command.

Definition at line 734 of file TQCommand.cxx.

◆ GetSender()

virtual void * TQObject::GetSender ( )
inlineprotectedvirtualinherited

Reimplemented in TGEventHandler, TGFrame, TMessageHandler, TMonitor, TQObjSender, TSysEvtHandler, and TVirtualPad.

Definition at line 57 of file TQObject.h.

◆ GetSenderClassName()

virtual const char * TQObject::GetSenderClassName ( ) const
inlineprotectedvirtualinherited

Reimplemented in TQObjSender.

Definition at line 58 of file TQObject.h.

◆ GetSize()

virtual Int_t TCollection::GetSize ( ) const
inlinevirtualinherited

Return the capacity of the collection, i.e.

the current total amount of space that has been allocated so far. Same as Capacity. Use GetEntries to get the number of elements currently in the collection.

Reimplemented in THashTable, TListOfEnumsWithLock, TListOfFunctions, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 186 of file TCollection.h.

◆ GetStatus()

Int_t TQCommand::GetStatus ( ) const
inherited

Returns a number of sequential undo or redo operations.

Definition at line 790 of file TQCommand.cxx.

◆ GetTitle()

const char * TQCommand::GetTitle ( ) const
overridevirtualinherited

Returns command description.

By default, "ClassName::RedoName(args)_ClassName::UndoName(args)"

Reimplemented from TObject.

Definition at line 711 of file TQCommand.cxx.

◆ GetUndo()

TQConnection * TQCommand::GetUndo ( ) const
inlineinherited

Definition at line 76 of file TQCommand.h.

◆ GetUndoArgs()

Long_t * TQCommand::GetUndoArgs ( ) const
inherited

Returns a pointer to array of undo arguments.

Definition at line 758 of file TQCommand.cxx.

◆ GetUndoName()

const char * TQCommand::GetUndoName ( ) const
inherited

Returns the name of undo command.

Definition at line 742 of file TQCommand.cxx.

◆ GetUniqueID()

UInt_t TObject::GetUniqueID ( ) const
virtualinherited

Return the unique object id.

Definition at line 480 of file TObject.cxx.

◆ GrowBy()

Int_t TCollection::GrowBy ( Int_t delta) const
virtualinherited

Increase the collection's capacity by delta slots.

Definition at line 391 of file TCollection.cxx.

◆ HandleTimer()

Bool_t TObject::HandleTimer ( TTimer * timer)
virtualinherited

Execute action in response of a timer timing out.

This method must be overridden if an object has to react to timers.

Reimplemented in TGCommandPlugin, TGDNDManager, TGFileContainer, TGHtml, TGLEventHandler, TGPopupMenu, TGraphTime, TGScrollBar, TGShutter, TGTextEdit, TGTextEditor, TGTextEntry, TGTextView, TGToolTip, TGuiBldDragManager, TGWindow, and TTreeViewer.

Definition at line 516 of file TObject.cxx.

◆ HasConnection()

Bool_t TQObject::HasConnection ( const char * signal_name) const
virtualinherited

Return true if there is any object connected to this signal.

Only checks for object signals.

Definition at line 523 of file TQObject.cxx.

◆ Hash()

ULong_t TCollection::Hash ( ) const
inlineoverridevirtualinherited

Return hash value for this object.

Note: If this routine is overloaded in a derived class, this derived class should also add

void CallRecursiveRemoveIfNeeded(TObject &obj)
call RecursiveRemove for obj if gROOT is valid and obj.TestBit(kMustCleanup) is true.
Definition TROOT.h:406

Otherwise, when RecursiveRemove is called (by ~TObject or example) for this type of object, the transversal of THashList and THashTable containers will will have to be done without call Hash (and hence be linear rather than logarithmic complexity). You will also see warnings like

Error in <ROOT::Internal::TCheckHashRecursiveRemoveConsistency::CheckRecursiveRemove>: The class SomeName overrides
TObject::Hash but does not call TROOT::RecursiveRemove in its destructor.
Error("WriteTObject","The current directory (%s) is not associated with a file. The object (%s) has not been written.", GetName(), objname)
UInt_t Hash(const TString &s)
Definition TString.h:503
Mother of all ROOT objects.
Definition TObject.h:42
void RecursiveRemove(TObject *obj) override
Recursively remove this object from the list of Cleanups.
Definition TROOT.cxx:2651

Reimplemented from TObject.

Definition at line 188 of file TCollection.h.

◆ HasInconsistentHash()

Bool_t TObject::HasInconsistentHash ( ) const
inlineinherited

Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.

missing call to RecursiveRemove in destructor).

Note: Since the consistency is only tested for during inserts, this routine will return true for object that have never been inserted whether or not they have a consistent setup. This has no negative side-effect as searching for the object with the right or wrong Hash will always yield a not-found answer (Since anyway no hash can be guaranteed unique, there is always a check)

Definition at line 366 of file TObject.h.

◆ HighPriority()

void TQObject::HighPriority ( const char * signal_name,
const char * slot_name = nullptr )
virtualinherited
  1. If slot_name = 0 => makes signal defined by the signal_name to be the first in the fListOfSignals, this decreases the time for lookup.
  2. If slot_name != 0 => makes slot defined by the slot_name to be executed first when signal_name is emitted. Signal name is not compressed.

Definition at line 473 of file TQObject.cxx.

◆ IndexOf()

Int_t TSeqCollection::IndexOf ( const TObject * obj) const
virtualinherited

Return index of object in collection.

Returns -1 when object not found. Uses member IsEqual() to find object.

Reimplemented in TListOfEnumsWithLock, TListOfFunctions, TObjArray, TOrdCollection, and TRefArray.

Definition at line 29 of file TSeqCollection.cxx.

◆ Info()

void TObject::Info ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue info message.

Use "location" to specify the method where the warning occurred. Accepts standard printf formatting arguments.

Definition at line 1072 of file TObject.cxx.

◆ InheritsFrom() [1/2]

Bool_t TObject::InheritsFrom ( const char * classname) const
virtualinherited

Returns kTRUE if object inherits from class "classname".

Reimplemented in TClass.

Definition at line 549 of file TObject.cxx.

◆ InheritsFrom() [2/2]

Bool_t TObject::InheritsFrom ( const TClass * cl) const
virtualinherited

Returns kTRUE if object inherits from TClass cl.

Reimplemented in TClass.

Definition at line 557 of file TObject.cxx.

◆ Init()

void TQCommand::Init ( const char * cl,
void * object,
const char * redo,
const char * undo )
protectedvirtualinherited

Common protected method used in several constructors.

Definition at line 118 of file TQCommand.cxx.

◆ InsertAfter()

void TList::InsertAfter ( const TObjLinkPtr_t & newlink,
const TObjLinkPtr_t & prev )
protectedinherited

Insert a new link in the chain.

Definition at line 1165 of file TList.cxx.

◆ Inspect()

void TObject::Inspect ( ) const
virtualinherited

Dump contents of this object in a graphics canvas.

Same action as Dump but in a graphical form. In addition pointers to other objects can be followed.

The following picture is the Inspect of a histogram object:

Reimplemented in ROOT::Experimental::XRooFit::xRooNode, TGFrame, TInspectorObject, and TSystemFile.

Definition at line 570 of file TObject.cxx.

◆ InvertBit()

void TObject::InvertBit ( UInt_t f)
inlineinherited

Definition at line 206 of file TObject.h.

◆ IsA()

TClass * TQUndoManager::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from TQCommand.

Definition at line 133 of file TQCommand.h.

◆ IsArgNull()

Bool_t TCollection::IsArgNull ( const char * where,
const TObject * obj ) const
inherited

Returns true if object is a null pointer.

Definition at line 403 of file TCollection.cxx.

◆ IsAscending()

Bool_t TList::IsAscending ( )
inlineinherited

Definition at line 113 of file TList.h.

◆ IsDestructed()

Bool_t TObject::IsDestructed ( ) const
inlineinherited

IsDestructed.

Note
This function must be non-virtual as it can be used on destructed (but not yet modified) memory. This is used for example in TClonesArray to record the element that have been destructed but not deleted and thus are ready for re-use (by operator new with placement).
Returns
true if this object's destructor has been run.

Definition at line 186 of file TObject.h.

◆ IsEmpty()

virtual Bool_t TCollection::IsEmpty ( ) const
inlinevirtualinherited

Reimplemented in TObjArray, and TRefArray.

Definition at line 190 of file TCollection.h.

◆ IsEqual()

Bool_t TQCommand::IsEqual ( const TObject * obj) const
overridevirtualinherited

Equal comparison.

The commands are equal if they are applied to the same object and have the same Redo/Undo actions

More complicated commands might want to override this function.

Reimplemented from TObject.

Definition at line 416 of file TQCommand.cxx.

◆ IsExecuting()

Bool_t TQCommand::IsExecuting ( ) const
inherited

Returns kTRUE if command execution is in progress.

Definition at line 822 of file TQCommand.cxx.

◆ IsFolder()

Bool_t TCollection::IsFolder ( ) const
inlineoverridevirtualinherited

Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).

Reimplemented from TObject.

Reimplemented in TRootIconList.

Definition at line 191 of file TCollection.h.

◆ IsLogging()

Bool_t TQUndoManager::IsLogging ( ) const

Returns kTRUE if logging is ON.

Definition at line 1111 of file TQCommand.cxx.

◆ IsMacro()

Bool_t TQCommand::IsMacro ( ) const
inherited

Returns kTRUE if neither redo nor undo action specified.

Definition at line 798 of file TQCommand.cxx.

◆ IsOnHeap()

Bool_t TObject::IsOnHeap ( ) const
inlineinherited

Definition at line 160 of file TObject.h.

◆ IsOwner()

Bool_t TCollection::IsOwner ( ) const
inlineinherited

Definition at line 192 of file TCollection.h.

◆ IsRedoing()

Bool_t TQCommand::IsRedoing ( ) const
inherited

Redo action is in progress.

Definition at line 814 of file TQCommand.cxx.

◆ IsSetter()

Bool_t TQCommand::IsSetter ( ) const
virtualinherited

Returns kTRUE is command if Redo is the same as Undo function and is the setter action.

By default, all functions with names like "SetXXX" or "setXXX" considered as setters. Another type of setters are Move, Resize operations

More complicated commands might want to override this function.

Definition at line 438 of file TQCommand.cxx.

◆ IsSortable()

Bool_t TCollection::IsSortable ( ) const
inlineoverridevirtualinherited

Reimplemented from TObject.

Definition at line 193 of file TCollection.h.

◆ IsSorted()

virtual Bool_t TSeqCollection::IsSorted ( ) const
inlinevirtualinherited

Reimplemented in TSortedList.

Definition at line 64 of file TSeqCollection.h.

◆ IsUndoing()

Bool_t TQCommand::IsUndoing ( ) const
inherited

Undo action is in progress.

Definition at line 806 of file TQCommand.cxx.

◆ IsUsingRWLock()

Bool_t TCollection::IsUsingRWLock ( ) const
inlineinherited

Definition at line 214 of file TCollection.h.

◆ IsZombie()

Bool_t TObject::IsZombie ( ) const
inlineinherited

Definition at line 161 of file TObject.h.

◆ Last()

TObject * TList::Last ( ) const
overridevirtualinherited

Return the last object in the list. Returns 0 when list is empty.

Implements TSeqCollection.

Reimplemented in TListOfEnumsWithLock, TListOfFunctions, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 823 of file TList.cxx.

◆ LastIndex()

Int_t TSeqCollection::LastIndex ( ) const
inlineinherited

Definition at line 61 of file TSeqCollection.h.

◆ LastLink()

virtual TObjLink * TList::LastLink ( ) const
inlinevirtualinherited

Reimplemented in TListOfEnumsWithLock, TListOfFunctions, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 110 of file TList.h.

◆ LinkAt()

TObjLink * TList::LinkAt ( Int_t idx) const
protectedinherited

Return the TObjLink object at index idx.

Definition at line 835 of file TList.cxx.

◆ LnkCompare()

Bool_t TList::LnkCompare ( const TObjLinkPtr_t & l1,
const TObjLinkPtr_t & l2 )
protectedinherited

Compares the objects stored in the TObjLink objects.

Depending on the flag IsAscending() the function returns true if the object in l1 <= l2 (ascending) or l2 <= l1 (descending).

Definition at line 1102 of file TList.cxx.

◆ LowPriority()

void TQObject::LowPriority ( const char * signal_name,
const char * slot_name = nullptr )
virtualinherited
  1. If slot_name = 0 => makes signal defined by the signal_name to be the last in the fListOfSignals, this increase the time for lookup.
  2. If slot_name != 0 => makes slot defined by the slot_name to be executed last when signal_name is emitted. Signal name is not compressed.

Definition at line 500 of file TQObject.cxx.

◆ ls()

void TQUndoManager::ls ( Option_t * option = "") const
overridevirtual

Lists all commands in stack.

Reimplemented from TQCommand.

Definition at line 899 of file TQCommand.cxx.

◆ MakeIterator()

TIterator * TList::MakeIterator ( Bool_t dir = kIterForward) const
overridevirtualinherited

Return a list iterator.

Implements TCollection.

Reimplemented in TListOfEnumsWithLock, TListOfFunctions, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 852 of file TList.cxx.

◆ MakeReverseIterator()

virtual TIterator * TCollection::MakeReverseIterator ( ) const
inlinevirtualinherited

Definition at line 197 of file TCollection.h.

◆ MakeZombie()

void TObject::MakeZombie ( )
inlineprotectedinherited

Definition at line 55 of file TObject.h.

◆ MayNotUse()

void TObject::MayNotUse ( const char * method) const
inherited

Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary).

Definition at line 1160 of file TObject.cxx.

◆ Merge() [1/3]

Long64_t TQCommand::Merge ( TCollection * collection,
TFileMergeInfo *  )
virtualinherited

Merge a collection of TQCommand.

Definition at line 335 of file TQCommand.cxx.

◆ Merge() [2/3]

void TQCommand::Merge ( TQCommand * c)
virtualinherited

Add command to the list of merged commands.

This make it possible to group complex actions together so an end user can undo and redo them with one command. Execution of TQUndoManager::Undo(), TQUndoManager::Redo() methods only invokes the top level command as a whole.

Merge method is analogous to logical join operation.

Note: Merge method invokes redo action.

Definition at line 327 of file TQCommand.cxx.

◆ Merge() [3/3]

Long64_t TSeqCollection::Merge ( TCollection * list)
inherited

Merge this collection with all collections coming in the input list.

The input list must contain other collections of objects compatible with the ones in this collection and ordered in the same manner. For example, if this collection contains a TH1 object and a tree, all collections in the input list have to contain a histogram and a tree. In case the list contains collections, the objects in the input lists must also be collections with the same structure and number of objects. If some objects inside the collection are instances of a class that do not have a Merge function (like TObjString), rather than merging, a copy of each instance (via a call to Clone) is appended to the output.

Example

this list
____________ ---------------------|
| A (TH1F) | __________ | L1 (TSeqCollection)|- [A1, B1(C1,D1,E1)]
| B (TList)|-| C (TTree)| | L1 (TSeqCollection)|- [A2, B2(C2,D2,E2)]
|__________| | D (TH1F) | | ... |- [...]
| E (TH1F) | |____________________|
|__________|
TList(const TList &)=delete
A TTree represents a columnar dataset.
Definition TTree.h:89

Definition at line 184 of file TSeqCollection.cxx.

◆ Message()

virtual void TQObject::Message ( const char * msg)
inlinevirtualinherited

Reimplemented in TTreeViewer.

Definition at line 201 of file TQObject.h.

◆ NewLink() [1/2]

TList::TObjLinkPtr_t TList::NewLink ( TObject * obj,
const TObjLinkPtr_t & prev = nullptr )
protectedinherited

Return a new TObjLink.

Definition at line 863 of file TList.cxx.

◆ NewLink() [2/2]

TList::TObjLinkPtr_t TList::NewLink ( TObject * obj,
TObjLink * prev )
inlineprotectedinherited

Definition at line 244 of file TList.h.

◆ NewOptLink() [1/2]

TList::TObjLinkPtr_t TList::NewOptLink ( TObject * obj,
Option_t * opt,
const TObjLinkPtr_t & prev = nullptr )
protectedinherited

Return a new TObjOptLink (a TObjLink that also stores the option).

Definition at line 878 of file TList.cxx.

◆ NewOptLink() [2/2]

TList::TObjLinkPtr_t TList::NewOptLink ( TObject * obj,
Option_t * opt,
TObjLink * prev )
inlineprotectedinherited

Definition at line 247 of file TList.h.

◆ Notify()

Bool_t TCollection::Notify ( )
overridevirtualinherited

'Notify' all objects in this collection.

Reimplemented from TObject.

Reimplemented in TGTextEditHist.

Definition at line 438 of file TCollection.cxx.

◆ NumberOfConnections()

Int_t TQObject::NumberOfConnections ( ) const
virtualinherited

Return number of connections for this object.

Definition at line 547 of file TQObject.cxx.

◆ NumberOfSignals()

Int_t TQObject::NumberOfSignals ( ) const
virtualinherited

Return number of signals for this object.

Only checks for object signals.

Definition at line 537 of file TQObject.cxx.

◆ ObjCompare()

Int_t TSeqCollection::ObjCompare ( TObject * a,
TObject * b )
staticinherited

Compare to objects in the collection. Use member Compare() of object a.

Definition at line 55 of file TSeqCollection.cxx.

◆ Obsolete()

void TObject::Obsolete ( const char * method,
const char * asOfVers,
const char * removedFromVers ) const
inherited

Use this method to declare a method obsolete.

Specify as of which version the method is obsolete and as from which version it will be removed.

Definition at line 1169 of file TObject.cxx.

◆ operator delete() [1/3]

void TObject::operator delete ( void * ptr,
size_t size )
inherited

Operator delete for sized deallocation.

Definition at line 1234 of file TObject.cxx.

◆ operator delete() [2/3]

void TObject::operator delete ( void * ptr)
inherited

Operator delete.

Definition at line 1212 of file TObject.cxx.

◆ operator delete() [3/3]

void TObject::operator delete ( void * ptr,
void * vp )
inherited

Only called by placement new when throwing an exception.

Definition at line 1266 of file TObject.cxx.

◆ operator delete[]() [1/3]

void TObject::operator delete[] ( void * ptr,
size_t size )
inherited

Operator delete [] for sized deallocation.

Definition at line 1245 of file TObject.cxx.

◆ operator delete[]() [2/3]

void TObject::operator delete[] ( void * ptr)
inherited

Operator delete [].

Definition at line 1223 of file TObject.cxx.

◆ operator delete[]() [3/3]

void TObject::operator delete[] ( void * ptr,
void * vp )
inherited

Only called by placement new[] when throwing an exception.

Definition at line 1274 of file TObject.cxx.

◆ operator new() [1/2]

void * TObject::operator new ( size_t sz)
inlineinherited

Definition at line 189 of file TObject.h.

◆ operator new() [2/2]

void * TObject::operator new ( size_t sz,
void * vp )
inlineinherited

Definition at line 191 of file TObject.h.

◆ operator new[]() [1/2]

void * TObject::operator new[] ( size_t sz)
inlineinherited

Definition at line 190 of file TObject.h.

◆ operator new[]() [2/2]

void * TObject::operator new[] ( size_t sz,
void * vp )
inlineinherited

Definition at line 192 of file TObject.h.

◆ operator()()

TObject * TCollection::operator() ( const char * name) const
inherited

Find an object in this collection by name.

Definition at line 356 of file TCollection.cxx.

◆ Paint()

void TCollection::Paint ( Option_t * option = "")
overridevirtualinherited

Paint all objects in this collection.

Reimplemented from TObject.

Definition at line 448 of file TCollection.cxx.

◆ Pop()

void TObject::Pop ( )
virtualinherited

Pop on object drawn in a pad to the top of the display list.

I.e. it will be drawn last and on top of all other primitives.

Reimplemented in TFrame, TPad, and TVirtualPad.

Definition at line 640 of file TObject.cxx.

◆ Print() [1/4]

void TCollection::Print ( Option_t * option,
const char * wildcard,
Int_t recurse = 1 ) const
virtualinherited

Print the collection header and its elements that match the wildcard.

If recurse is non-zero, descend into printing of collection-entries with recurse - 1. This means, if recurse is negative, the recursion is infinite.

Option is passed recursively, but wildcard is only used on the first level.

Reimplemented in THashTable.

Definition at line 548 of file TCollection.cxx.

◆ Print() [2/4]

void TCollection::Print ( Option_t * option,
Int_t recurse ) const
virtualinherited

Print the collection header and its elements.

If recurse is non-zero, descend into printing of collection-entries with recurse - 1. This means, if recurse is negative, the recursion is infinite.

Option is passed recursively.

Reimplemented in THashTable.

Definition at line 521 of file TCollection.cxx.

◆ Print() [3/4]

void TCollection::Print ( Option_t * option,
TPRegexp & regexp,
Int_t recurse = 1 ) const
virtualinherited

Print the collection header and its elements that match the regexp.

If recurse is non-zero, descend into printing of collection-entries with recurse - 1. This means, if recurse is negative, the recursion is infinite.

Option is passed recursively, but regexp is only used on the first level.

Reimplemented in THashTable.

Definition at line 581 of file TCollection.cxx.

◆ Print() [4/4]

void TCollection::Print ( Option_t * option = "") const
overridevirtualinherited

Default print for collections, calls Print(option, 1).

This will print the collection header and Print() methods of all the collection entries.

If you want to override Print() for a collection class, first see if you can accomplish it by overriding the following protected methods:

void PrintCollectionHeader(Option_t* option) const;
const char* GetCollectionEntryName(TObject* entry) const;
void PrintCollectionEntry(TObject* entry, Option_t* option, Int_t recurse) const;
int Int_t
Signed integer 4 bytes (int).
Definition RtypesCore.h:59
const char Option_t
Option string (const char).
Definition RtypesCore.h:80
virtual const char * GetCollectionEntryName(TObject *entry) const
For given collection entry return the string that is used to identify the object and,...
void PrintCollectionHeader(Option_t *option) const override
Print collection header.
void PrintCollectionEntry(TObject *entry, Option_t *option, Int_t recurse) const override
Print collection entry.

Otherwise override the Print(Option_t *option, Int_t) variant. Remember to declare:

void Print(Option_t *option="") const override
Default print for collections, calls Print(option, 1).

somewhere close to the method declaration.

Reimplemented from TObject.

Reimplemented in THashTable.

Definition at line 507 of file TCollection.cxx.

◆ PrintCollectionEntry()

void TQUndoManager::PrintCollectionEntry ( TObject * entry,
Option_t * option,
Int_t recurse ) const
overrideprotectedvirtual

Print collection entry.

Reimplemented from TCollection.

Definition at line 919 of file TQCommand.cxx.

◆ PrintCollectionHeader()

void TQCommand::PrintCollectionHeader ( Option_t * option) const
overrideprotectedvirtualinherited

Print collection header.

Reimplemented from TCollection.

Definition at line 862 of file TQCommand.cxx.

◆ QSort() [1/3]

void TSeqCollection::QSort ( TObject ** a,
Int_t first,
Int_t last )
staticinherited

Sort array of TObject pointers using a quicksort algorithm.

The algorithm used is a non stable sort (i.e. already sorted elements might switch/change places). Uses ObjCompare() to compare objects.

Definition at line 69 of file TSeqCollection.cxx.

◆ QSort() [2/3]

void TSeqCollection::QSort ( TObject ** a,
Int_t nBs,
TObject *** b,
Int_t first,
Int_t last )
staticinherited

Sort array a of TObject pointers using a quicksort algorithm.

Arrays b will be sorted just like a (a determines the sort). Argument nBs is the number of TObject** arrays in b. The algorithm used is a non stable sort (i.e. already sorted elements might switch/change places). Uses ObjCompare() to compare objects.

Definition at line 117 of file TSeqCollection.cxx.

◆ QSort() [3/3]

void TSeqCollection::QSort ( TObject ** a,
TObject ** b,
Int_t first,
Int_t last )
inlinestaticinherited

Definition at line 70 of file TSeqCollection.h.

◆ Read()

Int_t TObject::Read ( const char * name)
virtualinherited

Read contents of object with specified name from the current directory.

First the key with the given name is searched in the current directory, next the key buffer is deserialized into the object. The object must have been created before via the default constructor. See TObject::Write().

Reimplemented in TBuffer, TKey, TKeySQL, and TKeyXML.

Definition at line 673 of file TObject.cxx.

◆ RecursiveRemove()

void TList::RecursiveRemove ( TObject * obj)
overridevirtualinherited

Remove object from this collection and recursively remove the object from all other objects (and collections).

Reimplemented from TCollection.

Reimplemented in TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TRootBrowserHistory, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 894 of file TList.cxx.

◆ Redo()

void TQUndoManager::Redo ( Option_t * option = "")
overridevirtual

Performs redo action. Move cursor position forward in history stack.

Reimplemented from TQCommand.

Definition at line 1051 of file TQCommand.cxx.

◆ Remove() [1/3]

TObject * TList::Remove ( const TObjLinkPtr_t & lnk)
inlineinherited

Definition at line 99 of file TList.h.

◆ Remove() [2/3]

TObject * TList::Remove ( TObject * obj)
overridevirtualinherited

Remove object from the list.

Implements TCollection.

Reimplemented in TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 952 of file TList.cxx.

◆ Remove() [3/3]

TObject * TList::Remove ( TObjLink * lnk)
virtualinherited

Remove object link (and therefore the object it contains) from the list.

Reimplemented in THashList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 1000 of file TList.cxx.

◆ RemoveAfter()

virtual void TSeqCollection::RemoveAfter ( TObject * after)
inlinevirtualinherited

Definition at line 53 of file TSeqCollection.h.

◆ RemoveAll() [1/2]

void TCollection::RemoveAll ( )
inlineinherited

Definition at line 206 of file TCollection.h.

◆ RemoveAll() [2/2]

void TCollection::RemoveAll ( TCollection * col)
virtualinherited

Remove all objects in collection col from this collection.

Definition at line 625 of file TCollection.cxx.

◆ RemoveAt()

virtual TObject * TSeqCollection::RemoveAt ( Int_t idx)
inlinevirtualinherited

Reimplemented in TClonesArray, TObjArray, TOrdCollection, and TRefArray.

Definition at line 52 of file TSeqCollection.h.

◆ RemoveBefore()

virtual void TSeqCollection::RemoveBefore ( TObject * before)
inlinevirtualinherited

Definition at line 54 of file TSeqCollection.h.

◆ RemoveFirst()

virtual void TSeqCollection::RemoveFirst ( )
inlinevirtualinherited

Definition at line 50 of file TSeqCollection.h.

◆ RemoveLast()

void TList::RemoveLast ( )
overridevirtualinherited

Remove the last object of the list.

Reimplemented from TSeqCollection.

Definition at line 1039 of file TList.cxx.

◆ ResetBit()

void TObject::ResetBit ( UInt_t f)
inlineinherited

Definition at line 203 of file TObject.h.

◆ SaveAs()

void TObject::SaveAs ( const char * filename = "",
Option_t * option = "" ) const
virtualinherited

Save this object in the file specified by filename.

  • if "filename" contains ".root" the object is saved in filename as root binary file.
  • if "filename" contains ".xml" the object is saved in filename as a xml ascii file.
  • if "filename" contains ".cc" the object is saved in filename as C code independent from ROOT. The code is generated via SavePrimitive(). Specific code should be implemented in each object to handle this option. Like in TF1::SavePrimitive().
  • otherwise the object is written to filename as a CINT/C++ script. The C++ code to rebuild this object is generated via SavePrimitive(). The "option" parameter is passed to SavePrimitive. By default it is an empty string. It can be used to specify the Draw option in the code generated by SavePrimitive.

    The function is available via the object context menu.

Reimplemented in ROOT::Experimental::XRooFit::xRooNode, TClassTree, TFolder, TGeoVolume, TGObject, TGraph, TH1, TPad, TPaveClass, TSpline3, TSpline5, TSpline, TTreePerfStats, and TVirtualPad.

Definition at line 708 of file TObject.cxx.

◆ SavePrimitive()

void TObject::SavePrimitive ( std::ostream & out,
Option_t * option = "" )
virtualinherited

Save a primitive as a C++ statement(s) on output stream "out".

Reimplemented in TAnnotation, TArc, TArrow, TASImage, TAxis3D, TBox, TButton, TCanvas, TChain, TCrown, TCurlyArc, TCurlyLine, TCutG, TDiamond, TEfficiency, TEllipse, TExec, TF12, TF1, TF2, TF3, TFrame, TGaxis, TGButton, TGButtonGroup, TGCanvas, TGCheckButton, TGColorSelect, TGColumnLayout, TGComboBox, TGCompositeFrame, TGContainer, TGDockableFrame, TGDoubleHSlider, TGDoubleVSlider, TGedMarkerSelect, TGedPatternSelect, TGeoArb8, TGeoBBox, TGeoBoolNode, TGeoCombiTrans, TGeoCompositeShape, TGeoCone, TGeoConeSeg, TGeoCtub, TGeoDecayChannel, TGeoElementRN, TGeoEltu, TGeoGtra, TGeoHalfSpace, TGeoHMatrix, TGeoHype, TGeoIdentity, TGeoIntersection, TGeoMaterial, TGeoMedium, TGeoMixture, TGeoPara, TGeoParaboloid, TGeoPatternCylPhi, TGeoPatternCylR, TGeoPatternParaX, TGeoPatternParaY, TGeoPatternParaZ, TGeoPatternSphPhi, TGeoPatternSphR, TGeoPatternSphTheta, TGeoPatternTrapZ, TGeoPatternX, TGeoPatternY, TGeoPatternZ, TGeoPcon, TGeoPgon, TGeoRotation, TGeoScaledShape, TGeoShapeAssembly, TGeoSphere, TGeoSubtraction, TGeoTessellated, TGeoTorus, TGeoTranslation, TGeoTrap, TGeoTrd1, TGeoTrd2, TGeoTube, TGeoTubeSeg, TGeoUnion, TGeoVolume, TGeoXtru, TGFileContainer, TGFont, TGFrame, TGFSComboBox, TGGC, TGGroupFrame, TGHButtonGroup, TGHorizontal3DLine, TGHorizontalFrame, TGHorizontalLayout, TGHProgressBar, TGHScrollBar, TGHSlider, TGHSplitter, TGHtml, TGIcon, TGLabel, TGLayoutHints, TGLineStyleComboBox, TGLineWidthComboBox, TGListBox, TGListDetailsLayout, TGListLayout, TGListTree, TGListView, TGLVContainer, TGMainFrame, TGMatrixLayout, TGMdiFrame, TGMdiMainFrame, TGMdiMenuBar, TGMenuBar, TGMenuTitle, TGNumberEntry, TGNumberEntryField, TGPictureButton, TGPopupMenu, TGProgressBar, TGRadioButton, TGraph2D, TGraph2DAsymmErrors, TGraph2DErrors, TGraph, TGraphAsymmErrors, TGraphBentErrors, TGraphEdge, TGraphErrors, TGraphMultiErrors, TGraphNode, TGraphPolar, TGraphPolargram, TGraphStruct, TGroupButton, TGRowLayout, TGShapedFrame, TGShutter, TGShutterItem, TGSplitFrame, TGStatusBar, TGTab, TGTabLayout, TGTableLayout, TGTableLayoutHints, TGTextButton, TGTextEdit, TGTextEntry, TGTextLBEntry, TGTextView, TGTileLayout, TGToolBar, TGTransientFrame, TGTripleHSlider, TGTripleVSlider, TGVButtonGroup, TGVertical3DLine, TGVerticalFrame, TGVerticalLayout, TGVFileSplitter, TGVProgressBar, TGVScrollBar, TGVSlider, TGVSplitter, TGXYLayout, TGXYLayoutHints, TH1, TH2Poly, THelix, THStack, TLatex, TLegend, TLine, TMacro, TMarker3DBox, TMarker, TMathText, TMultiGraph, TPad, TPaletteAxis, TParallelCoord, TParallelCoordVar, TPave, TPaveClass, TPaveLabel, TPaveStats, TPavesText, TPaveText, TPie, TPieSlice, TPolyLine3D, TPolyLine, TPolyMarker3D, TPolyMarker, TProfile2D, TProfile3D, TProfile, TRootContainer, TRootEmbeddedCanvas, TScatter2D, TScatter, TSlider, TSliderBox, TSpline3, TSpline5, TStyle, TText, TTreePerfStats, and TWbox.

Definition at line 858 of file TObject.cxx.

◆ SavePrimitiveConstructor()

void TObject::SavePrimitiveConstructor ( std::ostream & out,
TClass * cl,
const char * variable_name,
const char * constructor_agrs = "",
Bool_t empty_line = kTRUE )
staticprotectedinherited

Save object constructor in the output stream "out".

Can be used as first statement when implementing SavePrimitive() method for the object

Definition at line 777 of file TObject.cxx.

◆ SavePrimitiveDraw()

void TObject::SavePrimitiveDraw ( std::ostream & out,
const char * variable_name,
Option_t * option = nullptr )
staticprotectedinherited

Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.

Definition at line 845 of file TObject.cxx.

◆ SavePrimitiveVector()

TString TObject::SavePrimitiveVector ( std::ostream & out,
const char * prefix,
Int_t len,
Double_t * arr,
Int_t flag = 0 )
staticprotectedinherited

Save array in the output stream "out" as vector.

Create unique variable name based on prefix value Returns name of vector which can be used in constructor or in other places of C++ code If flag === kTRUE, just add empty line If flag === 111, check if array is empty and return nullptr or <vectorname>.data()

Definition at line 796 of file TObject.cxx.

◆ SetArgs()

void TQCommand::SetArgs ( Int_t narg,
... )
virtualinherited

Set do/redo and undo parameters.

The format is SetArgs(number_of_params, redo_params, undo_params)

Example:

move_command->SetArgs(2, 100, 100, 200, 200);

2 params, (100,100) - do/redo position, (200,200) - undo position

Definition at line 463 of file TQCommand.cxx.

◆ SetBit() [1/2]

void TObject::SetBit ( UInt_t f)
inlineinherited

Definition at line 202 of file TObject.h.

◆ SetBit() [2/2]

void TObject::SetBit ( UInt_t f,
Bool_t set )
inherited

Set or unset the user status bits as specified in f.

Definition at line 888 of file TObject.cxx.

◆ SetCurrentCollection()

void TCollection::SetCurrentCollection ( )
inherited

Set this collection to be the globally accessible collection.

Definition at line 719 of file TCollection.cxx.

◆ SetDrawOption()

void TObject::SetDrawOption ( Option_t * option = "")
virtualinherited

Set drawing option for object.

This option only affects the drawing style and is stored in the option field of the TObjOptLink supporting a TPad's primitive list (TList). Note that it does not make sense to call object.SetDrawOption(option) before having called object.Draw().

Reimplemented in RooPlot, TAxis, TBrowser, TGedFrame, TGFrame, TPad, TPaveStats, TRootBrowserLite, TSystemDirectory, and TSystemFile.

Definition at line 871 of file TObject.cxx.

◆ SetDtorOnly()

void TObject::SetDtorOnly ( void * obj)
staticinherited

Set destructor only flag.

Definition at line 1204 of file TObject.cxx.

◆ SetLimit()

void TQUndoManager::SetLimit ( UInt_t limit)
virtual

Returns a maximum number of commands which could be located in stack.

Definition at line 1135 of file TQCommand.cxx.

◆ SetLogging()

void TQUndoManager::SetLogging ( Bool_t on = kTRUE)
virtual

Start logging.

Delete all previous log records Note: logging is not implemented yet

Definition at line 936 of file TQCommand.cxx.

◆ SetName()

void TQCommand::SetName ( const char * name)
virtualinherited

Sets name of the command.

Definition at line 830 of file TQCommand.cxx.

◆ SetObjectStat()

void TObject::SetObjectStat ( Bool_t stat)
staticinherited

Turn on/off tracking of objects in the TObjectTable.

Definition at line 1188 of file TObject.cxx.

◆ SetOwner()

void TCollection::SetOwner ( Bool_t enable = kTRUE)
virtualinherited

Set whether this collection is the owner (enable==true) of its content.

If it is the owner of its contents, these objects will be deleted whenever the collection itself is deleted. The objects might also be deleted or destructed when Clear is called (depending on the collection).

Reimplemented in TClonesArray.

Definition at line 777 of file TCollection.cxx.

◆ SetRedoArgs()

void TQCommand::SetRedoArgs ( Int_t narg,
... )
virtualinherited

Set redo parameters.

The format is SetRedoArgs(number_of_params, params)

Example:

move_command->SetRedoArgs(2, 100, 100);

Definition at line 506 of file TQCommand.cxx.

◆ SetTitle()

void TQCommand::SetTitle ( const char * title)
virtualinherited

Sets description of the command.

Definition at line 838 of file TQCommand.cxx.

◆ SetUndoArgs()

void TQCommand::SetUndoArgs ( Int_t narg,
... )
virtualinherited

Set undo parameters.

The format is SetUndoArgs(number_of_params, params)

Example:

move_command->SetUndoArgs(2, 200, 200);

Definition at line 540 of file TQCommand.cxx.

◆ SetUniqueID()

void TObject::SetUniqueID ( UInt_t uid)
virtualinherited

Set the unique object id.

Definition at line 899 of file TObject.cxx.

◆ size()

std::size_t TCollection::size ( ) const
inlineinherited

Definition at line 181 of file TCollection.h.

◆ Sort()

void TList::Sort ( Bool_t order = kSortAscending)
virtualinherited

Sort linked list.

Real sorting is done in private function DoSort(). The list can only be sorted when is contains objects of a sortable class.

Reimplemented in TSortedList.

Definition at line 1067 of file TList.cxx.

◆ StartGarbageCollection()

void TCollection::StartGarbageCollection ( )
staticinherited

Set up for garbage collection.

Definition at line 727 of file TCollection.cxx.

◆ Streamer()

void TQUndoManager::Streamer ( TBuffer & b)
overridevirtual

Stream all objects in the collection to or from the I/O buffer.

Reimplemented from TQCommand.

◆ StreamerNVirtual()

void TQUndoManager::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 133 of file TQCommand.h.

◆ SysError()

void TObject::SysError ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue system error message.

Use "location" to specify the method where the system error occurred. Accepts standard printf formatting arguments.

Definition at line 1112 of file TObject.cxx.

◆ TestBit()

Bool_t TObject::TestBit ( UInt_t f) const
inlineinherited

Definition at line 204 of file TObject.h.

◆ TestBits()

Int_t TObject::TestBits ( UInt_t f) const
inlineinherited

Definition at line 205 of file TObject.h.

◆ Undo()

void TQUndoManager::Undo ( Option_t * option = "")
overridevirtual

Performs undo action. Move cursor position backward in history stack.

Reimplemented from TQCommand.

Definition at line 1019 of file TQCommand.cxx.

◆ UnSort()

void TSeqCollection::UnSort ( )
inlineinherited

Definition at line 65 of file TSeqCollection.h.

◆ UseCurrentStyle()

void TObject::UseCurrentStyle ( )
virtualinherited

Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked.

Reimplemented in TAxis3D, TCanvas, TFrame, TGraph, TH1, TPad, TPaveStats, TPaveText, and TTree.

Definition at line 909 of file TObject.cxx.

◆ UseRWLock()

bool TCollection::UseRWLock ( Bool_t enable = true)
virtualinherited

Set this collection to use a RW lock upon access, making it thread safe.

Return the previous state.

Note: To test whether the usage is enabled do: collection->TestBit(TCollection::kUseRWLock);

Reimplemented in THashList.

Definition at line 792 of file TCollection.cxx.

◆ Warning()

void TObject::Warning ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue warning message.

Use "location" to specify the method where the warning occurred. Accepts standard printf formatting arguments.

Definition at line 1084 of file TObject.cxx.

◆ Write() [1/2]

Int_t TCollection::Write ( const char * name = nullptr,
Int_t option = 0,
Int_t bufsize = 0 ) const
overridevirtualinherited

Write all objects in this collection.

By default all objects in the collection are written individually (each object gets its own key). Note, this is recursive, i.e. objects in collections in the collection are also written individually. To write all objects using a single key specify a name and set option to TObject::kSingleKey (i.e. 1).

Reimplemented from TObject.

Reimplemented in TMap.

Definition at line 679 of file TCollection.cxx.

◆ Write() [2/2]

Int_t TCollection::Write ( const char * name = nullptr,
Int_t option = 0,
Int_t bufsize = 0 )
overridevirtualinherited

Write all objects in this collection.

By default all objects in the collection are written individually (each object gets its own key). Note, this is recursive, i.e. objects in collections in the collection are also written individually. To write all objects using a single key specify a name and set option to TObject::kSingleKey (i.e. 1).

Reimplemented from TObject.

Reimplemented in TMap.

Definition at line 703 of file TCollection.cxx.

Member Data Documentation

◆ fAscending

Bool_t TList::fAscending
protectedinherited

! sorting order (when calling Sort() or for TSortedList)

Definition at line 49 of file TList.h.

◆ fBits

UInt_t TObject::fBits
privateinherited

bit field status word

Definition at line 47 of file TObject.h.

◆ fCache

TObjLinkWeakPtr_t TList::fCache
protectedinherited

! cache to speedup sequential calling of Before() and After() functions

Definition at line 48 of file TList.h.

◆ fCurrent

TQCommand* TQUndoManager::fCurrent
protected

Definition at line 107 of file TQCommand.h.

◆ fCursor

TObjLink* TQUndoManager::fCursor
protected

Definition at line 106 of file TQCommand.h.

◆ fFirst

TObjLinkPtr_t TList::fFirst
protectedinherited

! pointer to first entry in linked list

Definition at line 46 of file TList.h.

◆ fgAllSignalsBlocked

Bool_t TQObject::fgAllSignalsBlocked = kFALSE
staticprotectedinherited

Definition at line 55 of file TQObject.h.

◆ fgCurrentCollection

TCollection * TCollection::fgCurrentCollection = nullptr
staticprivateinherited

Definition at line 134 of file TCollection.h.

◆ fgDtorOnly

Longptr_t TObject::fgDtorOnly = 0
staticprivateinherited

object for which to call dtor only (i.e. no delete)

Definition at line 49 of file TObject.h.

◆ fgEmptyingGarbage

Bool_t TCollection::fgEmptyingGarbage = kFALSE
staticprivateinherited

Definition at line 136 of file TCollection.h.

◆ fgGarbageCollection

TObjectTable * TCollection::fgGarbageCollection = nullptr
staticprivateinherited

Definition at line 135 of file TCollection.h.

◆ fgGarbageStack

Int_t TCollection::fgGarbageStack = 0
staticprivateinherited

Definition at line 137 of file TCollection.h.

◆ fgObjectStat

Bool_t TObject::fgObjectStat = kTRUE
staticprivateinherited

if true keep track of objects in TObjectTable

Definition at line 50 of file TObject.h.

◆ fLast

TObjLinkPtr_t TList::fLast
protectedinherited

! pointer to last entry in linked list

Definition at line 47 of file TList.h.

◆ fLimit

UInt_t TQUndoManager::fLimit
protected

Definition at line 108 of file TQCommand.h.

◆ fListOfConnections

TList* TQObject::fListOfConnections
protectedinherited

! list of connections to this object

Definition at line 52 of file TQObject.h.

◆ fListOfSignals

TList* TQObject::fListOfSignals
protectedinherited

! list of signals from this object

Definition at line 51 of file TQObject.h.

◆ fLogBook

TList* TQUndoManager::fLogBook
protected

Definition at line 109 of file TQCommand.h.

◆ fLogging

Bool_t TQUndoManager::fLogging
protected

Definition at line 110 of file TQCommand.h.

◆ fName

TString TQCommand::fName
protectedinherited

Definition at line 41 of file TQCommand.h.

◆ fNewDelete

Bool_t TQCommand::fNewDelete
protectedinherited

Definition at line 40 of file TQCommand.h.

◆ fNRargs

Int_t TQCommand::fNRargs
protectedinherited

Definition at line 36 of file TQCommand.h.

◆ fNUargs

Int_t TQCommand::fNUargs
protectedinherited

Definition at line 37 of file TQCommand.h.

◆ fObject

void* TQCommand::fObject
protectedinherited

Definition at line 43 of file TQCommand.h.

◆ fRedo

TQConnection* TQCommand::fRedo
protectedinherited

Definition at line 32 of file TQCommand.h.

◆ fRedoArgs

Long_t* TQCommand::fRedoArgs
protectedinherited

Definition at line 34 of file TQCommand.h.

◆ fSignalsBlocked

Bool_t TQObject::fSignalsBlocked
protectedinherited

! flag used for suppression of signals

Definition at line 53 of file TQObject.h.

◆ fSize

Int_t TCollection::fSize
protectedinherited

Definition at line 150 of file TCollection.h.

◆ fSorted

Bool_t TSeqCollection::fSorted
protectedinherited

Definition at line 31 of file TSeqCollection.h.

◆ fState

Int_t TQCommand::fState
protectedinherited

Definition at line 38 of file TQCommand.h.

◆ fStatus

Int_t TQCommand::fStatus
protectedinherited

Definition at line 39 of file TQCommand.h.

◆ fTitle

TString TQCommand::fTitle
protectedinherited

Definition at line 42 of file TQCommand.h.

◆ fUndo

TQConnection* TQCommand::fUndo
protectedinherited

Definition at line 33 of file TQCommand.h.

◆ fUndoArgs

Long_t* TQCommand::fUndoArgs
protectedinherited

Definition at line 35 of file TQCommand.h.

◆ fUniqueID

UInt_t TObject::fUniqueID
privateinherited

object unique identifier

Definition at line 46 of file TObject.h.


The documentation for this class was generated from the following files: