b311480e |
1 | // Created by: Peter KURNEV |
973c2be1 |
2 | // Copyright (c) 2010-2014 OPEN CASCADE SAS |
4e57c75e |
3 | // Copyright (c) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE |
4 | // Copyright (c) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, |
5 | // EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS |
b311480e |
6 | // |
973c2be1 |
7 | // This file is part of Open CASCADE Technology software library. |
b311480e |
8 | // |
d5f74e42 |
9 | // This library is free software; you can redistribute it and/or modify it under |
10 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
11 | // by the Free Software Foundation, with special exception defined in the file |
12 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
13 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
14 | // |
973c2be1 |
15 | // Alternatively, this file may be used under the terms of Open CASCADE |
16 | // commercial license or contractual agreement. |
b311480e |
17 | |
7fd59977 |
18 | //======================================================================= |
4e57c75e |
19 | //function : |
7fd59977 |
20 | //purpose : |
21 | //======================================================================= |
4e57c75e |
22 | inline BOPDS_PassKeyBoolean::BOPDS_PassKeyBoolean() |
7fd59977 |
23 | : |
4e57c75e |
24 | BOPDS_PassKey(), |
25 | myFlag(Standard_False) |
26 | { |
27 | } |
7fd59977 |
28 | //======================================================================= |
4e57c75e |
29 | //function : |
7fd59977 |
30 | //purpose : |
31 | //======================================================================= |
4e57c75e |
32 | inline BOPDS_PassKeyBoolean::BOPDS_PassKeyBoolean |
33 | (const Handle(NCollection_BaseAllocator)& theAllocator) |
34 | : |
35 | BOPDS_PassKey(theAllocator), |
36 | myFlag(Standard_False) |
7fd59977 |
37 | { |
7fd59977 |
38 | } |
7fd59977 |
39 | //======================================================================= |
4e57c75e |
40 | //function : |
7fd59977 |
41 | //purpose : |
42 | //======================================================================= |
a9b30f0a |
43 | inline BOPDS_PassKeyBoolean::BOPDS_PassKeyBoolean(const BOPDS_PassKeyBoolean& theOther) |
44 | : |
45 | BOPDS_PassKey(theOther) |
7fd59977 |
46 | { |
a9b30f0a |
47 | myFlag = theOther.myFlag; |
7fd59977 |
48 | } |
7fd59977 |
49 | //======================================================================= |
4e57c75e |
50 | //function :~ |
7fd59977 |
51 | //purpose : |
52 | //======================================================================= |
4e57c75e |
53 | inline BOPDS_PassKeyBoolean::~BOPDS_PassKeyBoolean() |
7fd59977 |
54 | { |
7fd59977 |
55 | } |
7fd59977 |
56 | //======================================================================= |
4e57c75e |
57 | //function :operator = |
7fd59977 |
58 | //purpose : |
59 | //======================================================================= |
4e57c75e |
60 | inline BOPDS_PassKeyBoolean& BOPDS_PassKeyBoolean::operator =(const BOPDS_PassKeyBoolean& aOther) |
7fd59977 |
61 | { |
4e57c75e |
62 | BOPDS_PassKey::operator =(aOther); |
63 | myFlag=aOther.myFlag; |
64 | return *this; |
7fd59977 |
65 | } |
7fd59977 |
66 | //======================================================================= |
4e57c75e |
67 | //function :SetFlag |
7fd59977 |
68 | //purpose : |
69 | //======================================================================= |
4e57c75e |
70 | inline void BOPDS_PassKeyBoolean::SetFlag(const Standard_Boolean aFlag) |
7fd59977 |
71 | { |
4e57c75e |
72 | myFlag=aFlag; |
7fd59977 |
73 | } |
74 | //======================================================================= |
4e57c75e |
75 | //function :Flag |
7fd59977 |
76 | //purpose : |
77 | //======================================================================= |
4e57c75e |
78 | inline Standard_Boolean BOPDS_PassKeyBoolean::Flag()const |
7fd59977 |
79 | { |
4e57c75e |
80 | return myFlag; |
7fd59977 |
81 | } |