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

Logically AND multiple QualifierFilters together into a single filter. More...

#include <modelrules.hh>

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

Public Member Functions

 AndFilter (vector< QualifierFilter * > filters)
 Construct from array of filters.
 
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

vector< QualifierFilter * > subQualifiers
 Filters being logically ANDed together.
 

Additional Inherited Members

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

Detailed Description

Logically AND multiple QualifierFilters together into a single filter.

An instances contains some number of other arbitrary filters. In order for this filter to pass, all these contained filters must pass.

Constructor & Destructor Documentation

◆ AndFilter()

ghidra::AndFilter::AndFilter ( vector< QualifierFilter * >  filters)

Construct from array of filters.

The AndFilter assumes ownership of all the filters in the array and the original vector is cleared

Parameters
filtersis the list of filters pulled into this filter

References subQualifiers.

Member Function Documentation

◆ clone()

QualifierFilter * ghidra::AndFilter::clone ( void  ) const
virtual

Make a copy of this qualifier.

Returns
the newly allocated copy

Implements ghidra::QualifierFilter.

References subQualifiers.

◆ decode()

virtual void ghidra::AndFilter::decode ( Decoder decoder)
inlinevirtual

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

Parameters
decoderis the given stream decoder

Reimplemented from ghidra::QualifierFilter.

◆ filter()

bool ghidra::AndFilter::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 filter(), and subQualifiers.

Referenced by filter().


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