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