carl
24.04
Computer ARithmetic Library
DivisionLookupResult.h
Go to the documentation of this file.
1
/**
2
* @file DivisionLookupResult.h
3
* @ingroup gb
4
* @author Sebastian Junges
5
*
6
*/
7
8
#pragma once
9
10
namespace
carl
11
{
12
/**
13
* The result of
14
*
15
* Notice that the DivisionLookupResult does not take ownership of the elements,
16
* i.e. during destruction, nothing happens. Furthermore, if the original divisor element is erased,
17
* the divisor becomes invalid. Instances of DivisionLookupResults are therefore merely suitable for passing information
18
* to be directly processed.
19
*/
20
template
<
typename
Polynomial>
21
struct
DivisionLookupResult
22
{
23
DivisionLookupResult
() :
24
mDivisor
(nullptr),
mFactor
()
25
{
26
27
}
28
29
DivisionLookupResult
(
const
DivisionLookupResult
& d) :
30
mDivisor
(d.
mDivisor
),
mFactor
(d.
mFactor
)
31
{
32
33
34
}
35
36
virtual
~DivisionLookupResult
()
37
{
38
// intentionally left empty
39
}
40
41
DivisionLookupResult
(
const
Polynomial* divisor,
const
Term<typename Polynomial::CoeffType>
& factor) :
42
mDivisor
(divisor),
mFactor
(factor)
43
{
44
45
}
46
47
bool
success
()
48
{
49
return
mDivisor
!=
nullptr
;
50
}
51
52
53
const
Polynomial*
const
mDivisor
;
54
Term<typename Polynomial::CoeffType>
mFactor
;
55
};
56
57
}
carl
carl is the main namespace for the library.
carl::DivisionLookupResult
The result of.
Definition:
DivisionLookupResult.h:22
carl::DivisionLookupResult::success
bool success()
Definition:
DivisionLookupResult.h:47
carl::DivisionLookupResult::mFactor
Term< typename Polynomial::CoeffType > mFactor
Definition:
DivisionLookupResult.h:54
carl::DivisionLookupResult::~DivisionLookupResult
virtual ~DivisionLookupResult()
Definition:
DivisionLookupResult.h:36
carl::DivisionLookupResult::DivisionLookupResult
DivisionLookupResult(const Polynomial *divisor, const Term< typename Polynomial::CoeffType > &factor)
Definition:
DivisionLookupResult.h:41
carl::DivisionLookupResult::mDivisor
const Polynomial *const mDivisor
Definition:
DivisionLookupResult.h:53
carl::DivisionLookupResult::DivisionLookupResult
DivisionLookupResult()
Definition:
DivisionLookupResult.h:23
carl::DivisionLookupResult::DivisionLookupResult
DivisionLookupResult(const DivisionLookupResult &d)
Definition:
DivisionLookupResult.h:29
carl::Term< typename Polynomial::CoeffType >
carl-arith
groebner
DivisionLookupResult.h
Generated by
1.9.1