libTriton version 1.0 build 1592
Loading...
Searching...
No Matches
synthesisResult.cpp
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
9
10
11
12namespace triton {
13 namespace engines {
14 namespace synthesis {
15
17 this->input = nullptr;
18 this->output = nullptr;
19 this->success = false;
20 this->time = 0;
21 }
22
23
25 this->input = other.input;
26 this->output = other.output;
27 this->success = other.success;
28 this->time = other.time;
29 }
30
31
33 this->input = other.input;
34 this->output = other.output;
35 this->success = other.success;
36 this->time = other.time;
37
38 return *this;
39 }
40
41
43 this->input = input;
44 }
45
46
48 this->output = output;
49 }
50
51
53 this->time = ms;
54 }
55
56
58 return this->input;
59 }
60
61
63 return this->output;
64 }
65
66
68 return this->time;
69 }
70
71
73 return this->success;
74 }
75
76
78 this->success = flag;
79 }
80
81 }; /* synthesis namespace */
82 }; /* engines namespace */
83}; /* triton namespace */
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.