-
Notifications
You must be signed in to change notification settings - Fork 1
/
TLFormulaUnary.inl.h
76 lines (58 loc) · 1.52 KB
/
TLFormulaUnary.inl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
* File: TLFormulaUnary.inl.h
* Project: QUEST
* Author: Marc Diefenbruch, Axel M. Hirche
* Date: (C) 1997, 1998 University of Essen, Germany
*/
#ifndef _TLFORMULAUNARY_INL_H_
#define _TLFORMULAUNARY_INL_H_
#include "SCL/SCStream.h"
#include "TLHelp.h"
TLINLINE TLFormulaUnary::TLFormulaUnary (const TLLetter pOp,
TLFormula* right,
SCNatural acceptSet,
const SCObject* father)
: TLFormula (pOp,
acceptSet,
father),
rightOperand (right)
{
/* empty */
}
TLINLINE TLFormulaUnary::TLFormulaUnary (const TLFormulaUnary& phi)
: TLFormula (phi),
rightOperand (phi.rightOperand->GetCopy())
{
/* empty */
}
TLINLINE TLFormulaUnary::TLFormulaUnary (const TLFormulaUnary* phi)
: TLFormula (phi),
rightOperand (phi->rightOperand->GetCopy())
{
/* empty */
}
TLINLINE TLFormulaUnary::TLFormulaUnary (void)
{
assert (false);
}
TLINLINE TLFormula* TLFormulaUnary::RightOperand (void) const
{
return rightOperand;
}
TLINLINE void TLFormulaUnary::SetRightOperand (TLFormula* phi)
{
if (rightOperand)
delete rightOperand;
rightOperand = phi;
}
TLINLINE SCStream& operator<< (SCStream& out,
TLFormulaUnary& phi)
{
return phi.Display(out);
}
TLINLINE SCStream& operator<< (SCStream& out,
TLFormulaUnary* phi)
{
return phi->Display(out);
}
#endif // _TLFORMULAUNARY_INL_H_