File indexing completed on 2025-01-18 10:03:26
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _Expr_GeneralRelation_HeaderFile
0018 #define _Expr_GeneralRelation_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <Standard_Transient.hxx>
0024 #include <Standard_Integer.hxx>
0025 class Expr_GeneralExpression;
0026 class Expr_NamedUnknown;
0027 class TCollection_AsciiString;
0028
0029
0030 class Expr_GeneralRelation;
0031 DEFINE_STANDARD_HANDLE(Expr_GeneralRelation, Standard_Transient)
0032
0033
0034
0035 class Expr_GeneralRelation : public Standard_Transient
0036 {
0037
0038 public:
0039
0040
0041
0042 Standard_EXPORT virtual Standard_Boolean IsSatisfied() const = 0;
0043
0044
0045 Standard_EXPORT virtual Standard_Boolean IsLinear() const = 0;
0046
0047
0048
0049
0050 Standard_EXPORT virtual Handle(Expr_GeneralRelation) Simplified() const = 0;
0051
0052
0053
0054 Standard_EXPORT virtual void Simplify() = 0;
0055
0056
0057
0058 Standard_EXPORT virtual Handle(Expr_GeneralRelation) Copy() const = 0;
0059
0060
0061 Standard_EXPORT virtual Standard_Integer NbOfSubRelations() const = 0;
0062
0063
0064
0065 Standard_EXPORT virtual Standard_Integer NbOfSingleRelations() const = 0;
0066
0067
0068
0069 Standard_EXPORT virtual Handle(Expr_GeneralRelation) SubRelation (const Standard_Integer index) const = 0;
0070
0071
0072 Standard_EXPORT virtual Standard_Boolean Contains (const Handle(Expr_GeneralExpression)& exp) const = 0;
0073
0074
0075 Standard_EXPORT virtual void Replace (const Handle(Expr_NamedUnknown)& var, const Handle(Expr_GeneralExpression)& with) = 0;
0076
0077
0078 Standard_EXPORT virtual TCollection_AsciiString String() const = 0;
0079
0080
0081
0082
0083 DEFINE_STANDARD_RTTIEXT(Expr_GeneralRelation,Standard_Transient)
0084
0085 protected:
0086
0087
0088
0089
0090 private:
0091
0092
0093
0094
0095 };
0096
0097
0098
0099
0100
0101
0102
0103 #endif