libTriton version 1.0 build 1592
Loading...
Searching...
No Matches
astRepresentation.hpp
Go to the documentation of this file.
1
2/*
3** Copyright (C) - Triton
4**
5** This program is under the terms of the Apache License 2.0.
6*/
7
8#ifndef TRITON_ASTREPRESENTATION_H
9#define TRITON_ASTREPRESENTATION_H
10
11#include <iostream>
12#include <memory>
13
14#include <triton/ast.hpp>
15#include <triton/astEnums.hpp>
17#include <triton/dllexport.hpp>
18
19
20
22namespace triton {
29 namespace ast {
37 namespace representations {
46 protected:
49
51 std::unique_ptr<triton::ast::representations::AstRepresentationInterface> representations[triton::ast::representations::LAST_REPRESENTATION];
52
53 public:
55 TRITON_EXPORT AstRepresentation();
56
58 TRITON_EXPORT AstRepresentation(const AstRepresentation& other);
59
61 TRITON_EXPORT AstRepresentation& operator=(const AstRepresentation& other);
62
64 TRITON_EXPORT triton::ast::representations::mode_e getMode(void) const;
65
68
70 TRITON_EXPORT std::ostream& print(std::ostream& stream, AbstractNode* node);
71 };
72
74 };
76 };
78};
79
80#endif /* TRITON_ASTREPRESENTATION_H */
Abstract node.
Definition ast.hpp:68
TRITON_EXPORT std::ostream & print(std::ostream &stream, AbstractNode *node)
Prints the node according to the current representation mode.
triton::ast::representations::mode_e mode
The representation mode.
TRITON_EXPORT AstRepresentation & operator=(const AstRepresentation &other)
Operator.
std::unique_ptr< triton::ast::representations::AstRepresentationInterface > representations[triton::ast::representations::LAST_REPRESENTATION]
AstRepresentation interface.
TRITON_EXPORT void setMode(triton::ast::representations::mode_e mode)
Sets the representation mode.
TRITON_EXPORT triton::ast::representations::mode_e getMode(void) const
Returns the representation mode.
mode_e
All types of representation mode.
Definition astEnums.hpp:98
The Triton namespace.