retdec
address_op_expr.h
Go to the documentation of this file.
1 
7 #ifndef RETDEC_LLVMIR2HLL_IR_ADDRESS_OP_EXPR_H
8 #define RETDEC_LLVMIR2HLL_IR_ADDRESS_OP_EXPR_H
9 
12 
13 namespace retdec {
14 namespace llvmir2hll {
15 
16 class Expression;
17 class Visitor;
18 
27 class AddressOpExpr final: public UnaryOpExpr {
28 public:
30 
31  virtual bool isEqualTo(ShPtr<Value> otherValue) const override;
32  virtual ShPtr<Value> clone() override;
33 
36  virtual void accept(Visitor *v) override;
38 
39 private:
40  // Since instances are created by calling the static function create(), the
41  // constructor can be private.
43 };
44 
45 } // namespace llvmir2hll
46 } // namespace retdec
47 
48 #endif
An address operator.
Definition: address_op_expr.h:27
virtual ShPtr< Value > clone() override
Returns a clone of the value.
Definition: address_op_expr.cpp:29
virtual void accept(Visitor *v) override
Visitor pattern implementation.
Definition: address_op_expr.cpp:36
static ShPtr< AddressOpExpr > create(ShPtr< Expression > op)
Creates a new address operator.
Definition: address_op_expr.cpp:48
virtual bool isEqualTo(ShPtr< Value > otherValue) const override
Returns true if this value is equal to otherValue, false otherwise.
Definition: address_op_expr.cpp:22
AddressOpExpr(ShPtr< Expression > op)
Constructs an address operator.
Definition: address_op_expr.cpp:19
A base class for all unary operators.
Definition: unary_op_expr.h:21
ShPtr< Expression > op
Operand.
Definition: unary_op_expr.h:42
A base class of all visitors.
Definition: visitor.h:95
A library providing API for working with back-end IR.
std::shared_ptr< T > ShPtr
An alias for a shared pointer.
Definition: smart_ptr.h:18
Definition: archive_wrapper.h:19
Declarations, aliases, macros, etc. for the use of smart pointers.
A base class for all unary operators.