rabbitizer/cplusplus/include/analysis/LoPairingInfo.hpp
Anghelo Carvajal acee144578
C++ bindings (#9)
* start making c++ bindings

* Add sanity checks

* add descriptor methods

* setup making c++ library

* cpp test

* format (not tidy because it breaks everything and the result looks dumb)

* Fixes

* add missing alias

* move stuff to their own files

* InstructionRsp bindings

* r5900 bindings

* almost there

* binding for analysis stuff

* setters
2022-10-09 17:51:47 -03:00

37 lines
908 B
C++

/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
/* SPDX-License-Identifier: MIT */
#ifndef RABBITIZER_LO_PAIRING_INFO_HPP
#define RABBITIZER_LO_PAIRING_INFO_HPP
#pragma once
#include "analysis/RabbitizerLoPairingInfo.h"
namespace rabbitizer {
class LoPairingInfo {
protected:
RabbitizerLoPairingInfo pairingInfo;
public:
LoPairingInfo();
LoPairingInfo(const RabbitizerLoPairingInfo &pairingInfo);
/**
* Returns a pointer to the inner RabbitizerLoPairingInfo.
* It is recommended to not mess with it unless you know what you are doing.
*/
RabbitizerLoPairingInfo *getCPtr();
const RabbitizerLoPairingInfo *getCPtr() const;
int getInstrOffset() const;
int64_t getValue() const;
bool shouldProcess() const;
bool isGpRel() const;
bool isGpGot() const;
};
};
#endif