IDAPython 9.0
Loading...
Searching...
No Matches
_qstrvec_t Class Reference
Inheritance diagram for _qstrvec_t:
py_clinked_object_t pyidc_opaque_object_t Form.DropdownListControl

Public Member Functions

 __init__ (self, items=None)
 
 assign (self, other)
 
 __setitem__ (self, idx, s)
 
 __getitem__ (self, idx)
 
 addressof (self, idx)
 
 add (self, s)
 
 from_list (self, lst)
 
 clear (self, qclear=False)
 
 insert (self, idx, s)
 
 remove (self, idx)
 
- Public Member Functions inherited from py_clinked_object_t
 __del__ (self)
 
 copy (self)
 

Protected Member Functions

 _create_clink (self)
 
 _del_clink (self, lnk)
 
 _get_clink_ptr (self)
 
- Protected Member Functions inherited from py_clinked_object_t
 _free (self)
 

Properties

 size = property(__get_size)
 
- Properties inherited from py_clinked_object_t
 clink = property(lambda self: self.__clink__)
 
 clink_ptr = property(lambda self: self._get_clink_ptr())
 

Detailed Description

WARNING: It is very unlikely an IDAPython user should ever, ever
have to use this type. It should only be used for IDAPython internals.

For example, in py_askusingform.py, we ctypes-expose to the IDA
kernel & UI a qstrvec instance, in case a DropdownListControl is
constructed.
That's because that's what ask_form expects, and we have no
choice but to make a DropdownListControl hold a qstrvec_t.
This is, afaict, the only situation where a Python
_qstrvec_t is required.

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
items = None )

Reimplemented from py_clinked_object_t.

Reimplemented in Form.DropdownListControl.

Member Function Documentation

◆ __getitem__()

__getitem__ ( self,
idx )
Gets the string at the given index

◆ __setitem__()

__setitem__ ( self,
idx,
s )
Sets string at the given index

◆ _create_clink()

_create_clink ( self)
protected
Overwrite me.
Creates a new clink
@return: PyCapsule representing the C link

Reimplemented from py_clinked_object_t.

◆ _del_clink()

_del_clink ( self,
lnk )
protected
Overwrite me.
This method deletes the link

Reimplemented from py_clinked_object_t.

◆ _get_clink_ptr()

_get_clink_ptr ( self)
protected
Overwrite me.
Returns the C link pointer as a 64bit number

Reimplemented from py_clinked_object_t.

◆ add()

add ( self,
s )
Add a string to the vector

◆ addressof()

addressof ( self,
idx )
Returns the address (as number) of the qstring at the given index

◆ assign()

assign ( self,
other )
Copies the contents of 'other' to 'self'

Reimplemented from py_clinked_object_t.

◆ clear()

clear ( self,
qclear = False )
Clears all strings from the vector.
@param qclear: Just reset the size but do not actually free the memory

◆ from_list()

from_list ( self,
lst )
Populates the vector from a Python string list

◆ insert()

insert ( self,
idx,
s )
Insert a string into the vector

◆ remove()

remove ( self,
idx )
Removes a string from the vector

Property Documentation

◆ size

size = property(__get_size)
static

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