-
Notifications
You must be signed in to change notification settings - Fork 1
/
TLFormulaBinary.inl.h
74 lines (56 loc) · 1.6 KB
/
TLFormulaBinary.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
/*
* File: TLFormulaBinary.inl.h
* Project: QUEST
* Author: Marc Diefenbruch, Axel M. Hirche
* Date: (C) 1997, 1998 University of Essen, Germany
*/
#ifndef _TLFORMULABINARY_INL_H_
#define _TLFORMULABINARY_INL_H_
#include "SCL/SCStream.h"
#include "TLHelp.h"
TLINLINE TLFormulaBinary::TLFormulaBinary ( TLFormula* pLeft,
TLLetter pOp,
TLFormula* pRight,
SCNatural acceptSet,
const SCObject* pFather)
: TLFormulaUnary (pOp,
pRight,
acceptSet,
pFather),
leftOperand (pLeft)
{
/* empty */
}
TLINLINE TLFormulaBinary::TLFormulaBinary (const TLFormulaBinary& phi)
: TLFormulaUnary (phi),
leftOperand (phi.leftOperand->GetCopy())
{
/* empty */
}
TLINLINE TLFormulaBinary::TLFormulaBinary (const TLFormulaBinary* phi)
: TLFormulaUnary (phi),
leftOperand (phi->leftOperand->GetCopy())
{
/* empty */
}
TLINLINE TLFormula* TLFormulaBinary::LeftOperand (void) const
{
return leftOperand;
}
TLINLINE void TLFormulaBinary::SetLeftOperand (TLFormula* phi)
{
if (leftOperand)
delete leftOperand;
leftOperand = phi;
}
TLINLINE SCStream& operator<< ( SCStream& out,
const TLFormulaBinary& phi)
{
return phi.Display(out);
}
TLINLINE SCStream& operator<< ( SCStream& out,
const TLFormulaUnary* phi)
{
return phi->Display(out);
}
#endif // _TLFORMULABINARY_INL_H_