1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00
Files
occt/src/Expr/Expr_PolyExpression.cdl
bugmaster b311480ed5 0023024: Update headers of OCCT files
Added appropriate copyright and license information in source files
2012-03-21 19:43:04 +04:00

119 lines
3.9 KiB
Plaintext
Executable File

-- Created on: 1991-01-10
-- Created by: Arnaud BOUZY
-- Copyright (c) 1991-1999 Matra Datavision
-- Copyright (c) 1999-2012 OPEN CASCADE SAS
--
-- The content of this file is subject to the Open CASCADE Technology Public
-- License Version 6.5 (the "License"). You may not use the content of this file
-- except in compliance with the License. Please obtain a copy of the License
-- at http://www.opencascade.org and read it completely before using this file.
--
-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
--
-- The Original Code and all software distributed under the License is
-- distributed on an "AS IS" basis, without warranty of any kind, and the
-- Initial Developer hereby disclaims all such warranties, including without
-- limitation, any warranties of merchantability, fitness for a particular
-- purpose or non-infringement. Please see the License for the specific terms
-- and conditions governing the rights and limitations under the License.
deferred class PolyExpression from Expr
inherits GeneralExpression from Expr
uses SequenceOfGeneralExpression from Expr,
NamedUnknown from Expr
raises OutOfRange from Standard,
NumericError from Standard,
InvalidOperand from Expr
is
Initialize;
---Purpose: initialize an empty list of operands.
NbOperands(me)
---Purpose: returns the number of operands contained in <me>
---Level : Internal
returns Integer
is static;
Operand(me; index : Integer)
---Purpose: Returns the <index>-th operand used in <me>.
-- An exception is raised if index is out of range
---C++: inline
---C++: return const &
---Level : Internal
returns any GeneralExpression
raises OutOfRange
is static;
SetOperand(me : mutable; exp : GeneralExpression; index : Integer)
---Purpose: Sets the <index>-th operand used in <me>.
-- An exception is raised if <index> is out of range
-- Raises InvalidOperand if <exp> contains <me>.
---Level : Internal
raises OutOfRange,InvalidOperand
is static;
AddOperand(me : mutable; exp : GeneralExpression)
---Purpose: Adds an operand to the list of <me>.
---Level : Internal
is static protected;
RemoveOperand(me : mutable; index : Integer)
---Purpose: Remove the operand denoted by <index> from the list of
-- <me>.
-- Raises exception if <index> is out of range or if
-- removing operand intend to leave only one or no
-- operand.
---Level : Internal
raises OutOfRange
is static protected;
NbSubExpressions(me)
---Purpose: returns the number of sub-expressions contained
-- in <me> ( >= 2)
returns Integer
is static;
SubExpression(me; I : Integer)
---Purpose: Returns the sub-expression denoted by <I> in <me>
-- Raises OutOfRange if <I> > NbSubExpressions(me)
---C++: return const &
returns any GeneralExpression
raises OutOfRange
is static;
ContainsUnknowns(me)
---Purpose: Does <me> contains NamedUnknown ?
returns Boolean
is static;
Contains(me; exp : GeneralExpression)
---Purpose: Tests if <exp> is contained in <me>.
returns Boolean
is static;
Replace(me : mutable ; var : NamedUnknown ; with : GeneralExpression)
---Purpose: Replaces all occurences of <var> with <with> in <me>
-- Raises InvalidOperand if <with> contains <me>.
raises InvalidOperand
is static;
Simplified(me)
---Purpose: Returns a GeneralExpression after replacement of
-- NamedUnknowns by an associated expression and after
-- values computation.
returns any GeneralExpression
raises NumericError;
fields
myOperands : SequenceOfGeneralExpression;
end PolyExpression;