Main Page   Compound List   File List   Compound Members   File Members  

TclXPCOM_Command Struct Reference

List of all members.

Public Attributes

char * dummy1
char * dummy2
int dummy3
int dummy4
char * dummy5
Tcl_ObjCmdProc * objProc
ClientData objClientData
char * dummy6
ClientData dummy7
char * dummy8
ClientData dummy9
int dummy10
char * dummy11
char * dummy12

Detailed Description

The following are structures used by the Tcl 'cmdName' object type, which caches command lookups. We are hijacking this type in order to allow the TclXPCOM isupports object to act as a command. This provides for oo-style method invocation, like this:

[$component QueryInterface nsISupports]

instead of this:

[xpcom::invoke $component QueryInterface nsISupports]

(both of the above are equivalent)

typedef struct Command { Tcl_HashEntry *hPtr; Namespace *nsPtr; int refCount; int cmdEpoch; CompileProc *compileProc; Tcl_ObjCmdProc *objProc; ClientData objClientData; Tcl_CmdProc *proc; ClientData clientData; Tcl_CmdDeleteProc *deleteProc; ClientData deleteData; int flags; ImportRef *importRefPtr; CommandTrace *tracePtr; } Command;

typedef struct ResolvedCmdName { Command *cmdPtr; Namespace *refNsPtr; long refNsId; int refNsCmdEpoch; int cmdEpoch; int refCount; } ResolvedCmdName;

Definition at line 92 of file TclXPCOMObjType.cpp.

Member Data Documentation

char* TclXPCOM_Command::dummy1

Definition at line 94 of file TclXPCOMObjType.cpp.

char* TclXPCOM_Command::dummy2

Definition at line 95 of file TclXPCOMObjType.cpp.

int TclXPCOM_Command::dummy3

Definition at line 96 of file TclXPCOMObjType.cpp.

int TclXPCOM_Command::dummy4

Definition at line 97 of file TclXPCOMObjType.cpp.

char* TclXPCOM_Command::dummy5

Definition at line 98 of file TclXPCOMObjType.cpp.

Tcl_ObjCmdProc* TclXPCOM_Command::objProc

Definition at line 99 of file TclXPCOMObjType.cpp.

ClientData TclXPCOM_Command::objClientData

Definition at line 100 of file TclXPCOMObjType.cpp.

char* TclXPCOM_Command::dummy6

Definition at line 101 of file TclXPCOMObjType.cpp.

ClientData TclXPCOM_Command::dummy7

Definition at line 102 of file TclXPCOMObjType.cpp.

char* TclXPCOM_Command::dummy8

Definition at line 103 of file TclXPCOMObjType.cpp.

ClientData TclXPCOM_Command::dummy9

Definition at line 104 of file TclXPCOMObjType.cpp.

int TclXPCOM_Command::dummy10

Definition at line 105 of file TclXPCOMObjType.cpp.

char* TclXPCOM_Command::dummy11

Definition at line 106 of file TclXPCOMObjType.cpp.

char* TclXPCOM_Command::dummy12

Definition at line 107 of file TclXPCOMObjType.cpp.

The documentation for this struct was generated from the following file:
Generated on Fri Jun 14 23:25:52 2002 for TclXPCOM by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002