retdec
Public Member Functions | Private Attributes | List of all members
retdec::llvmir2hll::CompoundOpManager::CompoundOp Class Reference

Stores the resulting compound operator. More...

#include <compound_op_manager.h>

Collaboration diagram for retdec::llvmir2hll::CompoundOpManager::CompoundOp:
Collaboration graph
[legend]

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< ExpressiongetOperand () 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< Expressionoperand
 The right-hand side operand of a binary operator. More...
 

Detailed Description

Stores the resulting compound operator.

Constructor & Destructor Documentation

◆ CompoundOp() [1/2]

retdec::llvmir2hll::CompoundOpManager::CompoundOp::CompoundOp ( std::string  op)

A constructor of a unary compound operator.

Preconditions
  • op is non-empty

◆ CompoundOp() [2/2]

retdec::llvmir2hll::CompoundOpManager::CompoundOp::CompoundOp ( std::string  op,
ShPtr< Expression operand 
)

A constructor of a binary compound operator.

Preconditions
  • op is non-empty
  • operand is non-null

Member Function Documentation

◆ getOperand()

ShPtr< Expression > retdec::llvmir2hll::CompoundOpManager::CompoundOp::getOperand ( ) const

Returns the operand of a binary operator.

Preconditions
  • the operator is binary

◆ getOperator()

const std::string & retdec::llvmir2hll::CompoundOpManager::CompoundOp::getOperator ( ) const

Returns the operator.

◆ isBinaryOperator()

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.

See also
isUnaryOperator()

◆ isUnaryOperator()

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.

See also
isBinaryOperator()

Member Data Documentation

◆ op

std::string retdec::llvmir2hll::CompoundOpManager::CompoundOp::op
private

The resulting operator.

◆ operand

ShPtr<Expression> retdec::llvmir2hll::CompoundOpManager::CompoundOp::operand
private

The right-hand side operand of a binary operator.


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