File indexing completed on 2026-07-23 09:17:03
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 class BOPDS_Pave
0028 {
0029 public:
0030 DEFINE_STANDARD_ALLOC
0031
0032
0033 BOPDS_Pave();
0034
0035
0036
0037 void SetIndex(const Standard_Integer theIndex);
0038
0039
0040
0041 Standard_Integer Index() const;
0042
0043
0044
0045 void SetParameter(const Standard_Real theParameter);
0046
0047
0048
0049 Standard_Real Parameter() const;
0050
0051
0052
0053
0054 void Contents(Standard_Integer& theIndex, Standard_Real& theParameter) const;
0055
0056
0057
0058
0059 Standard_Boolean IsLess(const BOPDS_Pave& theOther) const;
0060
0061 Standard_Boolean operator<(const BOPDS_Pave& theOther) const { return IsLess(theOther); }
0062
0063
0064
0065
0066 Standard_Boolean IsEqual(const BOPDS_Pave& theOther) const;
0067
0068 Standard_Boolean operator==(const BOPDS_Pave& theOther) const { return IsEqual(theOther); }
0069
0070 Standard_EXPORT void Dump() const;
0071
0072 protected:
0073 Standard_Integer myIndex;
0074 Standard_Real myParameter;
0075
0076 private:
0077 };
0078
0079 namespace std
0080 {
0081 template <>
0082 struct hash<BOPDS_Pave>
0083 {
0084 size_t operator()(const BOPDS_Pave& thePave) const noexcept
0085 {
0086 size_t aCombination[2];
0087 aCombination[0] = opencascade::hash(thePave.Index());
0088 aCombination[1] = opencascade::hash(thePave.Parameter());
0089 return opencascade::hashBytes(aCombination, sizeof(aCombination));
0090 }
0091 };
0092 }
0093
0094 #include <BOPDS_Pave.lxx>
0095
0096 #endif