CR32614 Coding - get rid of unsused forward declarations [Adaptor2d to GccAna]
[occt.git] / src / Expr / Expr_SystemRelation.hxx
CommitLineData
42cf5bc1 1// Created on: 1991-01-14
2// Created by: Arnaud BOUZY
3// Copyright (c) 1991-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _Expr_SystemRelation_HeaderFile
18#define _Expr_SystemRelation_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <Expr_SequenceOfGeneralRelation.hxx>
24#include <Expr_GeneralRelation.hxx>
25#include <Standard_Boolean.hxx>
26#include <Standard_Integer.hxx>
42cf5bc1 27class Expr_GeneralExpression;
28class Expr_NamedUnknown;
29class TCollection_AsciiString;
30
31
32class Expr_SystemRelation;
33DEFINE_STANDARD_HANDLE(Expr_SystemRelation, Expr_GeneralRelation)
34
35
36class Expr_SystemRelation : public Expr_GeneralRelation
37{
38
39public:
40
41
42 //! Creates a system with one relation
43 Standard_EXPORT Expr_SystemRelation(const Handle(Expr_GeneralRelation)& relation);
44
45 //! Appends <relation> in the list of components of <me>.
46 Standard_EXPORT void Add (const Handle(Expr_GeneralRelation)& relation);
47
48 Standard_EXPORT void Remove (const Handle(Expr_GeneralRelation)& relation);
49
50 //! Tests if <me> is linear between its NamedUnknowns.
79104795 51 Standard_EXPORT Standard_Boolean IsLinear() const Standard_OVERRIDE;
42cf5bc1 52
53 //! Returns the number of relations contained in <me>.
79104795 54 Standard_EXPORT Standard_Integer NbOfSubRelations() const Standard_OVERRIDE;
42cf5bc1 55
56 //! Returns the number of SingleRelations contained in
57 //! <me>.
79104795 58 Standard_EXPORT Standard_Integer NbOfSingleRelations() const Standard_OVERRIDE;
42cf5bc1 59
60 //! Returns the relation denoted by <index> in <me>.
61 //! An exception is raised if <index> is out of range.
79104795 62 Standard_EXPORT Handle(Expr_GeneralRelation) SubRelation (const Standard_Integer index) const Standard_OVERRIDE;
42cf5bc1 63
79104795 64 Standard_EXPORT Standard_Boolean IsSatisfied() const Standard_OVERRIDE;
42cf5bc1 65
66 //! Returns a GeneralRelation after replacement of
67 //! NamedUnknowns by an associated expression, and after
68 //! values computation.
79104795 69 Standard_EXPORT Handle(Expr_GeneralRelation) Simplified() const Standard_OVERRIDE;
42cf5bc1 70
71 //! Replaces NamedUnknowns by associated expressions,
72 //! and computes values in <me>.
79104795 73 Standard_EXPORT void Simplify() Standard_OVERRIDE;
42cf5bc1 74
75 //! Returns a copy of <me> having the same unknowns and functions.
79104795 76 Standard_EXPORT Handle(Expr_GeneralRelation) Copy() const Standard_OVERRIDE;
42cf5bc1 77
78 //! Tests if <me> contains <exp>.
79104795 79 Standard_EXPORT Standard_Boolean Contains (const Handle(Expr_GeneralExpression)& exp) const Standard_OVERRIDE;
42cf5bc1 80
54adc5e9 81 //! Replaces all occurrences of <var> with <with> in <me>.
79104795 82 Standard_EXPORT void Replace (const Handle(Expr_NamedUnknown)& var, const Handle(Expr_GeneralExpression)& with) Standard_OVERRIDE;
42cf5bc1 83
84 //! returns a string representing <me> in a readable way.
79104795 85 Standard_EXPORT TCollection_AsciiString String() const Standard_OVERRIDE;
42cf5bc1 86
87
88
89
92efcf78 90 DEFINE_STANDARD_RTTIEXT(Expr_SystemRelation,Expr_GeneralRelation)
42cf5bc1 91
92protected:
93
94
95
96
97private:
98
99
100 Expr_SequenceOfGeneralRelation myRelations;
101
102
103};
104
105
106
107
108
109
110
111#endif // _Expr_SystemRelation_HeaderFile