dd14c55ca306a267d5f2edc746cafa59a4b884e8
[occt.git] / src / Expr / Expr_NamedExpression.cxx
1 //static const char* sccsid = "@(#)Expr_NamedExpression.cxx     3.2 95/01/10"; // Do not delete this line. Used by sccs.
2 // Copyright:   Matra-Datavision 1991
3 // File:        Expr_NamedExpression.cxx
4 // Created:     Thu Apr 11 12:16:08 1991
5 // Author:      Arnaud BOUZY
6 //              <adn>
7
8 #include <Expr_NamedExpression.ixx>
9
10 const TCollection_AsciiString& Expr_NamedExpression::GetName() const
11 {
12   return myName;
13 }
14
15 void Expr_NamedExpression::SetName(const TCollection_AsciiString& name)
16 {
17   myName = name;
18 }
19
20 Standard_Boolean Expr_NamedExpression::IsShareable () const
21 {
22   return Standard_True;
23 }
24
25 Standard_Boolean Expr_NamedExpression::IsIdentical (const Handle(Expr_GeneralExpression)& Other) const
26 {
27   if (!Other->IsKind(STANDARD_TYPE(Expr_NamedExpression))) {
28     return Standard_False;
29   }
30   Handle(Expr_NamedExpression) me = this;
31   Handle(Expr_NamedExpression) NEOther = Handle(Expr_NamedExpression)::DownCast(Other);
32   return  (me == NEOther);
33 }
34
35 TCollection_AsciiString Expr_NamedExpression::String() const
36 {
37   return GetName();
38 }