TQConnection


class description - source file - inheritance tree

class TQConnection : public TList, public TQObject


    public:
TQConnection() TQConnection(TClass* cl, void* receiver, const char* method_name) TQConnection(const char* class_name, void* receiver, const char* method_name) virtual ~TQConnection() static TClass* Class() virtual void Destroyed() void ExecuteMethod() void ExecuteMethod(Long_t param) void ExecuteMethod(Double_t param) void ExecuteMethod(Long_t* params, Int_t nparam = -1) void ExecuteMethod(const char* params) virtual const char* GetName() const void* GetReceiver() const virtual TClass* IsA() const virtual void ls(const Option_t* option) const virtual void Print(const Option_t* option) const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
TQSlot* fSlot slot-method calling interface void* fReceiver ptr to object to which slot is applied

Class Description

                                                                      
 TQConnection class is an internal class, used in the object          
 communication mechanism.                                             
                                                                      
 TQConnection:                                                        
    -  is a list of signal_lists containing pointers                  
       to this connection                                             
    -  receiver is the object to which slot-method is applied         
                                                                      
 This implementation is provided by                                   
 Valeriy Onuchin (onuchin@sirius.ihep.su).                            
                                                                      


TQConnection() : TList(), TQObject()
 Default constructor.

TQConnection(TClass *cl, void *receiver, const char *method_name) : TList(), TQObject()
 TQConnection ctor.
    cl != 0  - connection to object == receiver of class == cl
               and method == method_name
    cl == 0  - connection to function with name == method_name

TQConnection(const char *class_name, void *receiver, const char *funcname) : TList(), TQObject()
 TQConnection ctor.
    Creates connection to method of class specified by name,
    it could be interpreted class and with method == funcname.

~TQConnection()
 TQConnection dtor.
    - remove this connection from all signal lists
    - we do not delete fSlot if it has other connections,
      TQSlot::fCounter > 0 .

const char* GetName() const
 Returns name of connection

void Destroyed()
 Signal Destroyed tells that connection is destroyed.

void ls(Option_t *option) const
 List TQConnection full method name and list all signals
 connected to this connection.

void Print(Option_t *) const
 Print TQConnection full method name and print all
 signals connected to this connection.

void ExecuteMethod()
 Apply slot-method to the fReceiver object without arguments.

void ExecuteMethod(Long_t param)
 Apply slot-method to the fReceiver object with
 single argument value.

void ExecuteMethod(Double_t param)
 Apply slot-method to the fReceiver object with
 single argument value.

void ExecuteMethod(Long_t *params, Int_t nparam)
 Apply slot-method to the fReceiver object with variable
 number of argument values.

void ExecuteMethod(const char *param)
 Apply slot-method to the fReceiver object and
 with string parameter.



Inline Functions


              void* GetReceiver() const
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)


Author: Valeriy Onuchin & Fons Rademakers 15/10/2000
Last update: root/base:$Name: $:$Id: TQConnection.cxx,v 1.13 2003/05/11 14:09:10 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Top of the page

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