retdec
|
Stores the resulting compound operator. More...
#include <compound_op_manager.h>
Public Member Functions | |
CompoundOp (std::string op) | |
A constructor of a unary compound operator. More... | |
CompoundOp (std::string op, ShPtr< Expression > operand) | |
A constructor of a binary compound operator. More... | |
const std::string & | getOperator () const |
Returns the operator. More... | |
ShPtr< Expression > | getOperand () const |
Returns the operand of a binary operator. More... | |
bool | isUnaryOperator () const |
Returns true if the operator is unary, false otherwise. More... | |
bool | isBinaryOperator () const |
Returns true if the operator is binary, false otherwise. More... | |
Private Attributes | |
std::string | op |
The resulting operator. More... | |
ShPtr< Expression > | operand |
The right-hand side operand of a binary operator. More... | |
Stores the resulting compound operator.
retdec::llvmir2hll::CompoundOpManager::CompoundOp::CompoundOp | ( | std::string | op | ) |
A constructor of a unary compound operator.
retdec::llvmir2hll::CompoundOpManager::CompoundOp::CompoundOp | ( | std::string | op, |
ShPtr< Expression > | operand | ||
) |
A constructor of a binary compound operator.
ShPtr< Expression > retdec::llvmir2hll::CompoundOpManager::CompoundOp::getOperand | ( | ) | const |
Returns the operand of a binary operator.
const std::string & retdec::llvmir2hll::CompoundOpManager::CompoundOp::getOperator | ( | ) | const |
Returns the operator.
bool retdec::llvmir2hll::CompoundOpManager::CompoundOp::isBinaryOperator | ( | ) | const |
Returns true
if the operator is binary, false
otherwise.
This function returns true
if and only if the operator is unary.
bool retdec::llvmir2hll::CompoundOpManager::CompoundOp::isUnaryOperator | ( | ) | const |
Returns true
if the operator is unary, false
otherwise.
This function returns false
if and only if the operator is binary.
|
private |
The resulting operator.
|
private |
The right-hand side operand of a binary operator.