Warning, file /include/opencascade/ExprIntrp_Analysis.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _ExprIntrp_Analysis_HeaderFile
0018 #define _ExprIntrp_Analysis_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <Expr_GeneralExpression.hxx>
0025 #include <NCollection_List.hxx>
0026 #include <Expr_GeneralRelation.hxx>
0027 #include <Expr_GeneralFunction.hxx>
0028 #include <TCollection_AsciiString.hxx>
0029 #include <Standard_Integer.hxx>
0030 #include <Expr_NamedFunction.hxx>
0031 #include <NCollection_Sequence.hxx>
0032 #include <Expr_NamedExpression.hxx>
0033 class ExprIntrp_Generator;
0034 class Expr_GeneralExpression;
0035 class Expr_GeneralRelation;
0036 class TCollection_AsciiString;
0037 class Expr_GeneralFunction;
0038 class Expr_NamedFunction;
0039 class Expr_NamedExpression;
0040
0041 class ExprIntrp_Analysis
0042 {
0043 public:
0044 DEFINE_STANDARD_ALLOC
0045
0046 Standard_EXPORT ExprIntrp_Analysis();
0047
0048 Standard_EXPORT void SetMaster(const occ::handle<ExprIntrp_Generator>& agen);
0049
0050 Standard_EXPORT void Push(const occ::handle<Expr_GeneralExpression>& exp);
0051
0052 Standard_EXPORT void PushRelation(const occ::handle<Expr_GeneralRelation>& rel);
0053
0054 Standard_EXPORT void PushName(const TCollection_AsciiString& name);
0055
0056 Standard_EXPORT void PushValue(const int degree);
0057
0058 Standard_EXPORT void PushFunction(const occ::handle<Expr_GeneralFunction>& func);
0059
0060 Standard_EXPORT occ::handle<Expr_GeneralExpression> Pop();
0061
0062 Standard_EXPORT occ::handle<Expr_GeneralRelation> PopRelation();
0063
0064 Standard_EXPORT TCollection_AsciiString PopName();
0065
0066 Standard_EXPORT int PopValue();
0067
0068 Standard_EXPORT occ::handle<Expr_GeneralFunction> PopFunction();
0069
0070 Standard_EXPORT bool IsExpStackEmpty() const;
0071
0072 Standard_EXPORT bool IsRelStackEmpty() const;
0073
0074 Standard_EXPORT void ResetAll();
0075
0076 Standard_EXPORT void Use(const occ::handle<Expr_NamedFunction>& func);
0077
0078 Standard_EXPORT void Use(const occ::handle<Expr_NamedExpression>& named);
0079
0080 Standard_EXPORT occ::handle<Expr_NamedExpression> GetNamed(const TCollection_AsciiString& name);
0081
0082 Standard_EXPORT occ::handle<Expr_NamedFunction> GetFunction(const TCollection_AsciiString& name);
0083
0084 private:
0085 NCollection_List<occ::handle<Expr_GeneralExpression>> myGEStack;
0086 NCollection_List<occ::handle<Expr_GeneralRelation>> myGRStack;
0087 NCollection_List<occ::handle<Expr_GeneralFunction>> myGFStack;
0088 NCollection_List<TCollection_AsciiString> myNameStack;
0089 NCollection_List<int> myValueStack;
0090 NCollection_Sequence<occ::handle<Expr_NamedFunction>> myFunctions;
0091 NCollection_Sequence<occ::handle<Expr_NamedExpression>> myNamed;
0092 occ::handle<ExprIntrp_Generator> myMaster;
0093 };
0094
0095 #endif