Class VttModel

java.lang.Object
ghidra.app.cmd.data.rtti.gcc.VttModel

public class VttModel
extends Object
  • Field Details

  • Constructor Details

    • VttModel

      public VttModel​(Program program, Address address)
      Constructs a new VttModel
      Parameters:
      program - the program containing the VttModel
      address - the address of the VttModel
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals​(Object object)
      Overrides:
      equals in class Object
    • getAddress

      public Address getAddress()
      Gets the address of this VttModel
      Returns:
      the address of this VttModel
    • isValid

      public boolean isValid()
      Checks if this VttModel is valid
      Returns:
      true if valid
    • getVtableModel

      public Vtable getVtableModel​(int ordinal)
      Gets the Vtable at the specified ordinal
      Parameters:
      ordinal - the ordinal of the Vtable
      Returns:
      the Vtable at the specified ordinal
    • getTypeInfo

      public ClassTypeInfo getTypeInfo​(int ordinal)
      Gets the ClassTypeInfo at the specified ordinal
      Parameters:
      ordinal - the ordinal of the Vtable containing the ClassTypeInfo pointer
      Returns:
      the ClassTypeInfo at the specified ordinal or null if none exists
      See Also:
      Vtable.getTypeInfo()
    • getConstructionVtableModels

      public GnuVtable[] getConstructionVtableModels()
      Gets the construction vtable models in this VttModel
      Returns:
      the construction vtable models in this VttModel
    • getElementCount

      public int getElementCount()
      Gets the number of elements in this VttModel
      Returns:
      the number of VTable Table elements or 0 if invalid
    • getDataType

      public DataType getDataType()
      Gets the DataType for this VttModel
      Returns:
      the DataType for this VttModel
    • toString

      public String toString()
      Overrides:
      toString in class Object