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

Public Member Functions

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

Protected Attributes

 _arg_types
 
 _method_function
 

Detailed Description

Definition at line 158 of file xmethod.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

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

Definition at line 159 of file xmethod.py.

◆ __init__() [2/2]

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

Member Function Documentation

◆ __call__() [1/2]

def 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 166 of file xmethod.py.

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

◆ __call__() [2/2]

def 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 166 of file xmethod.py.

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

◆ get_arg_types() [1/2]

def 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 163 of file xmethod.py.

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

◆ get_arg_types() [2/2]

def 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 163 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: