LIEF: Library to Instrument Executable Formats Version 0.17.0
Loading...
Searching...
No Matches
LIEF::assembly::aarch64::Operand Class Reference

This class represents an operand for an AArch64 instruction. More...

#include <Operand.hpp>

Inheritance diagram for LIEF::assembly::aarch64::Operand:

Classes

class  Iterator
 Forward iterator that outputs aarch64 Operand as std::unique_ptr More...
 

Public Member Functions

std::string to_string () const
 Pretty representation of the operand.
 
template<class T >
const T * as () const
 This function can be used to down cast an Operand instance:
 
virtual ~Operand ()
 

Detailed Description

This class represents an operand for an AArch64 instruction.

Constructor & Destructor Documentation

◆ ~Operand()

virtual LIEF::assembly::aarch64::Operand::~Operand ( )
virtual

Member Function Documentation

◆ as()

template<class T >
const T * LIEF::assembly::aarch64::Operand::as ( ) const
inline

This function can be used to down cast an Operand instance:

std::unique_ptr<assembly::aarch64::Operand> op = ...;
if (const auto* imm = inst->as<assembly::aarch64::operands::Immediate>()) {
const int64_t value = imm->value();
}

◆ to_string()

std::string LIEF::assembly::aarch64::Operand::to_string ( ) const

Pretty representation of the operand.

Referenced by operator<<.


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