File indexing completed on 2025-01-18 10:03:04
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef _BOPDS_Pave_HeaderFile
0016 #define _BOPDS_Pave_HeaderFile
0017
0018 #include <Standard.hxx>
0019 #include <Standard_DefineAlloc.hxx>
0020 #include <Standard_Handle.hxx>
0021
0022 #include <Standard_Real.hxx>
0023 #include <Standard_Boolean.hxx>
0024
0025
0026
0027
0028
0029 class BOPDS_Pave
0030 {
0031 public:
0032
0033 DEFINE_STANDARD_ALLOC
0034
0035
0036
0037
0038 BOPDS_Pave();
0039
0040
0041
0042 void SetIndex (const Standard_Integer theIndex);
0043
0044
0045
0046
0047 Standard_Integer Index() const;
0048
0049
0050
0051
0052 void SetParameter (const Standard_Real theParameter);
0053
0054
0055
0056
0057 Standard_Real Parameter() const;
0058
0059
0060
0061
0062
0063 void Contents (Standard_Integer& theIndex, Standard_Real& theParameter) const;
0064
0065
0066
0067
0068
0069 Standard_Boolean IsLess (const BOPDS_Pave& theOther) const;
0070 Standard_Boolean operator < (const BOPDS_Pave& theOther) const
0071 {
0072 return IsLess(theOther);
0073 }
0074
0075
0076
0077
0078
0079 Standard_Boolean IsEqual (const BOPDS_Pave& theOther) const;
0080 Standard_Boolean operator == (const BOPDS_Pave& theOther) const
0081 {
0082 return IsEqual(theOther);
0083 }
0084
0085 Standard_EXPORT void Dump() const;
0086
0087
0088
0089
0090 protected:
0091
0092
0093
0094 Standard_Integer myIndex;
0095 Standard_Real myParameter;
0096
0097
0098 private:
0099
0100
0101
0102
0103
0104 };
0105
0106 namespace std
0107 {
0108 template <>
0109 struct hash<BOPDS_Pave>
0110 {
0111 size_t operator()(const BOPDS_Pave& thePave) const noexcept
0112 {
0113 size_t aCombination[2];
0114 aCombination[0] = opencascade::hash(thePave.Index());
0115 aCombination[1] = opencascade::hash(thePave.Parameter());
0116 return opencascade::hashBytes(aCombination, sizeof(aCombination));
0117 }
0118 };
0119 }
0120
0121 #include <BOPDS_Pave.lxx>
0122
0123
0124
0125
0126
0127 #endif