1 /*
2 			   __________                                 ____  ___
3 	_____  __ _\______   \_____ _______  ______ __________\   \/  /
4    /     \|  |  \     ___/\__  \\_  __ \/  ___// __ \_  __ \     /
5   |  Y Y  \  |  /    |     / __ \|  | \/\___ \\  ___/|  | \/     \
6   |__|_|  /____/|____|    (____  /__|  /____  >\___  >__| /___/\  \
7 		\/                     \/           \/     \/           \_/
8   Copyright (C) 2021 Ingo Berg, et al.
9   All rights reserved.
10 
11   Redistribution and use in source and binary forms, with or without
12   modification, are permitted provided that the following conditions are met:
13 
14    * Redistributions of source code must retain the above copyright notice,
15 	 this list of conditions and the following disclaimer.
16    * Redistributions in binary form must reproduce the above copyright notice,
17 	 this list of conditions and the following disclaimer in the documentation
18 	 and/or other materials provided with the distribution.
19 
20   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
21   ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23   IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
24   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25   NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26   PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29   POSSIBILITY OF SUCH DAMAGE.
30 */
31 #include "mpOprtBinShortcut.h"
32 
33 MUP_NAMESPACE_START
34 //-----------------------------------------------------------------------------------------------
35 //
36 // class OprtShortcutLogicOrBegin
37 //
38 //-----------------------------------------------------------------------------------------------
39 
OprtShortcutLogicOrBegin(const char_type * szIdent)40 OprtShortcutLogicOrBegin::OprtShortcutLogicOrBegin(const char_type* szIdent)
41 	:IOprtBinShortcut(cmSHORTCUT_BEGIN, szIdent, (int)prLOGIC_OR, oaLEFT)
42 {}
43 
44 
45 //-----------------------------------------------------------------------------------------------
Clone() const46 IToken* OprtShortcutLogicOrBegin::Clone() const
47 {
48 	return new OprtShortcutLogicOrBegin(*this);
49 }
50 
51 
52 //-----------------------------------------------------------------------------------------------
53 //
54 // class OprtShortcutLogicOrEnd
55 //
56 //-----------------------------------------------------------------------------------------------
57 
OprtShortcutLogicOrEnd(const char_type * szIdent)58 OprtShortcutLogicOrEnd::OprtShortcutLogicOrEnd(const char_type* szIdent)
59 	:IOprtBinShortcut(cmSHORTCUT_END, szIdent, (int)prLOGIC_OR, oaLEFT)
60 {}
61 
62 
63 //-----------------------------------------------------------------------------------------------
Clone() const64 IToken* OprtShortcutLogicOrEnd::Clone() const
65 {
66 	return new OprtShortcutLogicOrEnd(*this);
67 }
68 
69 //-----------------------------------------------------------------------------------------------
70 //
71 // class OprtShortcutLogicAndBegin
72 //
73 //-----------------------------------------------------------------------------------------------
74 
OprtShortcutLogicAndBegin(const char_type * szIdent)75 OprtShortcutLogicAndBegin::OprtShortcutLogicAndBegin(const char_type* szIdent)
76 	:IOprtBinShortcut(cmSHORTCUT_BEGIN, szIdent, (int)prLOGIC_AND, oaLEFT)
77 {}
78 
79 //-----------------------------------------------------------------------------------------------
Clone() const80 IToken* OprtShortcutLogicAndBegin::Clone() const
81 {
82 	return new OprtShortcutLogicAndBegin(*this);
83 }
84 
85 
86 //-----------------------------------------------------------------------------------------------
87 //
88 // class OprtShortcutLogicAndEnd
89 //
90 //-----------------------------------------------------------------------------------------------
91 
OprtShortcutLogicAndEnd(const char_type * szIdent)92 OprtShortcutLogicAndEnd::OprtShortcutLogicAndEnd(const char_type* szIdent)
93 	:IOprtBinShortcut(cmSHORTCUT_END, szIdent, (int)prLOGIC_AND, oaLEFT)
94 {}
95 
96 //-----------------------------------------------------------------------------------------------
Clone() const97 IToken* OprtShortcutLogicAndEnd::Clone() const
98 {
99 	return new OprtShortcutLogicAndEnd(*this);
100 }
101 
102 }