Ghidra 11.3.2
Ghidra internal decompiler documentation.
Loading...
Searching...
No Matches
ghidra::PositionMatchFilter Class Reference

Filter that selects for a particular parameter position. More...

#include <modelrules.hh>

Inheritance diagram for ghidra::PositionMatchFilter:
[legend]
Collaboration diagram for ghidra::PositionMatchFilter:
[legend]

Public Member Functions

 PositionMatchFilter (int4 pos)
 Constructor.
 
virtual QualifierFilterclone (void) const
 Make a copy of this qualifier.
 
virtual bool filter (const PrototypePieces &proto, int4 pos) const
 Test whether the given function prototype meets this filter's criteria.
 
virtual void decode (Decoder &decoder)
 Configure details of the criteria being filtered from the given stream.
 
- Public Member Functions inherited from ghidra::QualifierFilter
virtual ~QualifierFilter (void)
 Destructor.
 

Private Attributes

int4 position
 Parameter position being filtered for.
 

Additional Inherited Members

- Static Public Member Functions inherited from ghidra::QualifierFilter
static QualifierFilterdecodeFilter (Decoder &decoder)
 Try to instantiate a qualifier filter.
 

Detailed Description

Filter that selects for a particular parameter position.

This matches if the position of the current parameter being assigned, within the data-type list, matches the position attribute of this filter.

Member Function Documentation

◆ clone()

virtual QualifierFilter * ghidra::PositionMatchFilter::clone ( void  ) const
inlinevirtual

Make a copy of this qualifier.

Returns
the newly allocated copy

Implements ghidra::QualifierFilter.

References position.

◆ decode()

void ghidra::PositionMatchFilter::decode ( Decoder decoder)
virtual

Configure details of the criteria being filtered from the given stream.

Parameters
decoderis the given stream decoder

Reimplemented from ghidra::QualifierFilter.

References ghidra::Decoder::closeElement(), ghidra::Decoder::openElement(), position, and ghidra::Decoder::readSignedInteger().

◆ filter()

bool ghidra::PositionMatchFilter::filter ( const PrototypePieces proto,
int4  pos 
) const
virtual

Test whether the given function prototype meets this filter's criteria.

Parameters
protois the high-level description of the function prototype to test
posis the position of a specific output (pos=-1) or input (pos >=0) in context
Returns
true if the prototype meets the criteria, false otherwise

Implements ghidra::QualifierFilter.

References position.


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