b311480e |
1 | // Copyright (c) 1998-1999 Matra Datavision |
973c2be1 |
2 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
3 | // |
973c2be1 |
4 | // This file is part of Open CASCADE Technology software library. |
b311480e |
5 | // |
973c2be1 |
6 | // This library is free software; you can redistribute it and / or modify it |
7 | // under the terms of the GNU Lesser General Public version 2.1 as published |
8 | // by the Free Software Foundation, with special exception defined in the file |
9 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
10 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
11 | // |
973c2be1 |
12 | // Alternatively, this file may be used under the terms of Open CASCADE |
13 | // commercial license or contractual agreement. |
b311480e |
14 | |
7fd59977 |
15 | //============================================================================ |
16 | //==== Titre: Standard_Boolean.hxx |
17 | //==== Role : The headr file of primitve type "Boolean" from package "Standard" |
18 | //==== |
19 | //==== Implementation: This is a primitive type implementadef with typedef |
20 | //==== typedef int Standard_Boolean |
21 | //==== #define Standard_False 0 |
22 | //==== #define Standard_True 1 |
23 | //============================================================================ |
24 | |
25 | #ifndef _Standard_Boolean_HeaderFile |
26 | #define _Standard_Boolean_HeaderFile |
27 | |
28 | //typedef unsigned int Standard_Boolean; |
29 | |
30 | |
31 | #ifndef _Standard_TypeDef_HeaderFile |
32 | #include <Standard_TypeDef.hxx> |
33 | #endif |
34 | |
35 | class Handle_Standard_Type; |
36 | |
34781c33 |
37 | __Standard_API const Handle_Standard_Type& Standard_Boolean_Type_(); |
7fd59977 |
38 | //class Standard_OStream; |
39 | //void ShallowDump (const Standard_Boolean, Standard_OStream& ); |
40 | // =============================================== |
41 | // Methods from Standard_Entity class which are redefined: |
42 | // - Hascode |
43 | // - IsEqual |
44 | // - IsSimilar |
45 | // - Shallowcopy |
46 | // - ShallowDump |
47 | // =============================================== |
48 | |
49 | |
50 | // ================================== |
51 | // Method implemented in Standard_Boolean.cxx |
52 | // ================================== |
53 | __Standard_API Standard_Boolean ShallowCopy (const Standard_Boolean); |
54 | //__Standard_API Standard_Integer HashCode (const Standard_Boolean, const Standard_Integer); |
55 | |
56 | // =============== |
57 | // inline methods |
58 | // =============== |
59 | |
60 | // ------------------------------------------------------------------ |
61 | // IsEqual : Returns Standard_True if two booleans have the same value |
62 | // ------------------------------------------------------------------ |
63 | //inline Standard_Boolean IsEqual(const Standard_Boolean One |
64 | // ,const Standard_Boolean Two) |
65 | //{ return One == Two; } |
66 | |
67 | // ------------------------------------------------------------------ |
68 | // IsSimilar : Returns Standard_True if two booleans have the same value |
69 | // ------------------------------------------------------------------ |
70 | inline Standard_Boolean IsSimilar(const Standard_Boolean One |
71 | ,const Standard_Boolean Two) |
72 | { return One == Two; } |
73 | |
74 | |
75 | #endif |