decompiler  1.0.0
Public Member Functions | Public Attributes | List of all members
ghidra::FieldContext Struct Reference

Helper function holding properties of a context field prior to calculating the context layout. More...

#include <slgh_compile.hh>

Public Member Functions

bool operator< (const FieldContext &op2) const
 Sort context fields based on their least significant bit boundary. More...
 
 FieldContext (VarnodeSymbol *s, FieldQuality *q)
 Constructor.
 

Public Attributes

VarnodeSymbol * sym
 The concrete Varnode representing physical storage for the field.
 
FieldQualityqual
 Qualities of the field, as parsed.
 

Detailed Description

Helper function holding properties of a context field prior to calculating the context layout.

This holds the concrete Varnode reprensenting the context field's physical storage and the properties of the field itself, prior to the final ContextField being allocated.

Member Function Documentation

◆ operator<()

bool ghidra::FieldContext::operator< ( const FieldContext op2) const

Sort context fields based on their least significant bit boundary.

Sort based on the containing Varnode, then on the bit boundary

Parameters
op2is a field to compare with this
Returns
true if this should be sorted before the other field

References ghidra::FieldQuality::low, qual, and sym.


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