retdec
conversion_operator.h
Go to the documentation of this file.
1 
7 #ifndef RETDEC_CONVERSION_OPERATOR_H
8 #define RETDEC_CONVERSION_OPERATOR_H
9 
12 
13 namespace retdec {
14 namespace demangler {
15 namespace borland {
16 
17 /*
18  * @brief Representation of conversion operators in borland AST.
19  */
21 {
22 public:
23  static std::shared_ptr<ConversionOperatorNode> create(std::shared_ptr<Node> type);
24 
25  void printLeft(std::ostream &s) const override;
26 
27 private:
28  ConversionOperatorNode(std::shared_ptr<Node> type);
29 
30 private:
31  std::shared_ptr<Node> _type;
32 };
33 
34 } // borland
35 } // demangler
36 } // retdec
37 
38 #endif //RETDEC_CONVERSION_OPERATOR_H
Definition: conversion_operator.h:21
ConversionOperatorNode(std::shared_ptr< Node > type)
Definition: conversion_operator.cpp:19
std::shared_ptr< Node > _type
Definition: conversion_operator.h:31
void printLeft(std::ostream &s) const override
Definition: conversion_operator.cpp:37
static std::shared_ptr< ConversionOperatorNode > create(std::shared_ptr< Node > type)
Definition: conversion_operator.cpp:28
Base class for all nodes in AST.
Definition: node.h:22
Storage for all created nodes in borland AST.
Definition: archive_wrapper.h:19
Base class for all nodes in borland AST.