GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker Class Reference
Inheritance diagram for gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker:
gdb.xmethod.XMethodWorker gdb.xmethod.XMethodWorker

Public Member Functions

 __init__ (self, method_function, arg_types)
 
 get_arg_types (self)
 
 __call__ (self, *args)
 
 __init__ (self, method_function, arg_types)
 
 get_arg_types (self)
 
 __call__ (self, *args)
 
- Public Member Functions inherited from gdb.xmethod.XMethodWorker
 get_result_type (self, *args)
 
 get_result_type (self, *args)
 

Protected Attributes

 _arg_types
 
 _method_function
 

Detailed Description

Definition at line 157 of file xmethod.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker.__init__ ( self,
method_function,
arg_types )

Definition at line 158 of file xmethod.py.

◆ __init__() [2/2]

gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker.__init__ ( self,
method_function,
arg_types )

Member Function Documentation

◆ __call__() [1/2]

gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker.__call__ ( self,
* args )
Invoke the xmethod.

Args:
    args: Arguments to the method.  Each element of the tuple is a
        gdb.Value object.  The first element is the 'this' pointer
        value.

Returns:
    A gdb.Value corresponding to the value returned by the xmethod.
    Returns 'None' if the method does not return anything.

Reimplemented from gdb.xmethod.XMethodWorker.

Definition at line 165 of file xmethod.py.

References gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker._method_function, and gdb.xmethod.SimpleXMethodMatcher._method_function.

◆ __call__() [2/2]

gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker.__call__ ( self,
* args )
Invoke the xmethod.

Args:
    args: Arguments to the method.  Each element of the tuple is a
        gdb.Value object.  The first element is the 'this' pointer
        value.

Returns:
    A gdb.Value corresponding to the value returned by the xmethod.
    Returns 'None' if the method does not return anything.

Reimplemented from gdb.xmethod.XMethodWorker.

Definition at line 165 of file xmethod.py.

References gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker._method_function, and gdb.xmethod.SimpleXMethodMatcher._method_function.

◆ get_arg_types() [1/2]

gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker.get_arg_types ( self)
Return arguments types of an xmethod.

A sequence of gdb.Type objects corresponding to the arguments of the
xmethod are returned.  If the xmethod takes no arguments, then 'None'
or an empty sequence is returned.  If the xmethod takes only a single
argument, then a gdb.Type object or a sequence with a single gdb.Type
element is returned.

Reimplemented from gdb.xmethod.XMethodWorker.

Definition at line 162 of file xmethod.py.

References gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker._arg_types, and gdb.xmethod.SimpleXMethodMatcher._arg_types.

◆ get_arg_types() [2/2]

gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker.get_arg_types ( self)
Return arguments types of an xmethod.

A sequence of gdb.Type objects corresponding to the arguments of the
xmethod are returned.  If the xmethod takes no arguments, then 'None'
or an empty sequence is returned.  If the xmethod takes only a single
argument, then a gdb.Type object or a sequence with a single gdb.Type
element is returned.

Reimplemented from gdb.xmethod.XMethodWorker.

Definition at line 162 of file xmethod.py.

References gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker._arg_types, and gdb.xmethod.SimpleXMethodMatcher._arg_types.

Member Data Documentation

◆ _arg_types

gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker._arg_types
protected

◆ _method_function

gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker._method_function
protected

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