libTriton version 1.0 build 1592
Loading...
Searching...
No Matches
synthesisResult.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_SYNTHESISRESULT_HPP
9#define TRITON_SYNTHESISRESULT_HPP
10
11#include <triton/ast.hpp>
12#include <triton/dllexport.hpp>
14
15
16
18namespace triton {
25 namespace engines {
33 namespace synthesis {
41
43 private:
45 bool success;
46
49
52
54 triton::usize time;
55
56 public:
58 TRITON_EXPORT SynthesisResult();
59
61 TRITON_EXPORT SynthesisResult(const SynthesisResult& other);
62
65
67 TRITON_EXPORT void setInput(const triton::ast::SharedAbstractNode& input);
68
70 TRITON_EXPORT void setOutput(const triton::ast::SharedAbstractNode& output);
71
73 TRITON_EXPORT void setTime(triton::usize ms);
74
76 TRITON_EXPORT void setSuccess(bool value);
77
79 TRITON_EXPORT const triton::ast::SharedAbstractNode getInput(void);
80
82 TRITON_EXPORT const triton::ast::SharedAbstractNode getOutput(void);
83
85 TRITON_EXPORT triton::usize getTime(void);
86
88 TRITON_EXPORT bool successful(void);
89 };
90
92 };
94 };
96};
97
98#endif /* TRITON_SYNTHESISRESULT_HPP */
The SynthesisResult engine class.
TRITON_EXPORT void setTime(triton::usize ms)
Sets the time.
TRITON_EXPORT bool successful(void)
Returns True the input node has been synthesized successfully.
TRITON_EXPORT const triton::ast::SharedAbstractNode getOutput(void)
Gets the output node.
TRITON_EXPORT void setOutput(const triton::ast::SharedAbstractNode &output)
Sets the output node.
TRITON_EXPORT triton::usize getTime(void)
Gets the time of the synthesizing.
SynthesisResult & operator=(const SynthesisResult &other)
Copies a SynthesisResult.
TRITON_EXPORT void setSuccess(bool value)
Sets the success flag.
TRITON_EXPORT void setInput(const triton::ast::SharedAbstractNode &input)
Sets the input node.
TRITON_EXPORT const triton::ast::SharedAbstractNode getInput(void)
Gets the input node.
std::shared_ptr< triton::ast::AbstractNode > SharedAbstractNode
Shared Abstract Node.
Definition ast.hpp:59
std::size_t usize
unsigned MAX_INT 32 or 64 bits according to the CPU.
The Triton namespace.