SMT-RAT
24.02
Toolbox for Strategic and Parallel Satisfiability-Modulo-Theories Solving
PolyTree.cpp
Go to the documentation of this file.
1
/**
2
* @file PolyTree.cpp
3
* @author Andreas Krueger <andreas.krueger@rwth-aachen.de>
4
*/
5
6
#include "
PolyTreePool.h
"
7
#include "
PolyTree.h
"
8
9
namespace
smtrat
10
{
11
PolyTree::PolyTree
(
const
Poly
& _poly) :
12
mpContent(
PolyTreePool
::getInstance().
get
(_poly))
13
{ }
14
15
const
PolyTree
&
PolyTree::left
()
const
{
16
assert(
mpContent
->
mLeft
);
17
return
*(
mpContent
->
mLeft
);
18
}
19
20
const
PolyTree
&
PolyTree::right
()
const
{
21
assert(
mpContent
->
mRight
);
22
return
*(
mpContent
->
mRight
);
23
}
24
25
carl::Variable::Arg
PolyTree::variable
()
const
{
26
assert(
mpContent
->
mType
==
Type::VARIABLE
);
27
return
mpContent
->
mVariable
;
28
}
29
30
const
Integer
&
PolyTree::constant
()
const
{
31
assert(
mpContent
->
mType
==
Type::CONSTANT
);
32
return
mpContent
->
mConstant
;
33
}
34
35
PolyTree::Type
PolyTree::type
()
const
{
36
return
mpContent
->
mType
;
37
}
38
39
const
Poly
&
PolyTree::poly
()
const
{
40
return
mpContent
->
mPoly
;
41
}
42
}
// namespace smtrat
PolyTreePool.h
PolyTree.h
smtrat::PolyTreeContent::mType
PolyTree::Type mType
Definition:
PolyTree.h:43
smtrat::PolyTreeContent::mVariable
carl::Variable mVariable
Definition:
PolyTree.h:46
smtrat::PolyTreeContent::mPoly
Poly mPoly
Definition:
PolyTree.h:42
smtrat::PolyTreeContent::mRight
std::optional< PolyTree > mRight
Definition:
PolyTree.h:50
smtrat::PolyTreeContent::mConstant
Integer mConstant
Definition:
PolyTree.h:47
smtrat::PolyTreeContent::mLeft
std::optional< PolyTree > mLeft
Definition:
PolyTree.h:49
smtrat::PolyTreePool
Definition:
PolyTreePool.h:14
smtrat::PolyTree
Definition:
PolyTree.h:20
smtrat::PolyTree::poly
const Poly & poly() const
Definition:
PolyTree.cpp:39
smtrat::PolyTree::mpContent
const PolyTreeContent * mpContent
Definition:
PolyTree.h:22
smtrat::PolyTree::left
const PolyTree & left() const
Definition:
PolyTree.cpp:15
smtrat::PolyTree::variable
carl::Variable::Arg variable() const
Definition:
PolyTree.cpp:25
smtrat::PolyTree::right
const PolyTree & right() const
Definition:
PolyTree.cpp:20
smtrat::PolyTree::PolyTree
PolyTree(const Poly &_poly)
Definition:
PolyTree.cpp:11
smtrat::PolyTree::constant
const Integer & constant() const
Definition:
PolyTree.cpp:30
smtrat::PolyTree::type
Type type() const
Definition:
PolyTree.cpp:35
smtrat::PolyTree::Type
Type
Definition:
PolyTree.h:25
smtrat::PolyTree::Type::CONSTANT
@ CONSTANT
smtrat::PolyTree::Type::VARIABLE
@ VARIABLE
smtrat::cad::sample_compare::get
auto get(const It &it, level)
Definition:
SampleComparator.h:23
smtrat
Class to create the formulas for axioms.
Definition:
handle_options.h:10
smtrat::Poly
carl::MultivariatePolynomial< Rational > Poly
Definition:
types.h:25
smtrat::Integer
carl::IntegralType< Rational >::type Integer
Definition:
types.h:21
smtrat-modules
IntBlastModule
PolyTree.cpp
Generated by
1.9.1