0023002: empty delete operator in TDF_LabelNode
[occt.git] / src / TDF / TDF_Label.lxx
1 // Created by: DAUTRY Philippe
2 // Copyright (c) 1997-1999 Matra Datavision
3 // Copyright (c) 1999-2012 OPEN CASCADE SAS
4 //
5 // The content of this file is subject to the Open CASCADE Technology Public
6 // License Version 6.5 (the "License"). You may not use the content of this file
7 // except in compliance with the License. Please obtain a copy of the License
8 // at http://www.opencascade.org and read it completely before using this file.
9 //
10 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
12 //
13 // The Original Code and all software distributed under the License is
14 // distributed on an "AS IS" basis, without warranty of any kind, and the
15 // Initial Developer hereby disclaims all such warranties, including without
16 // limitation, any warranties of merchantability, fitness for a particular
17 // purpose or non-infringement. Please see the License for the specific terms
18 // and conditions governing the rights and limitations under the License.
19
20 //              --------------
21
22 // Version:     0.0
23 //Version Date            Purpose
24 //              0.0     Feb  7 1997     Creation
25
26 #include <TDF_LabelNode.hxx>
27 #include <TDF_TagSource.hxx>
28
29 inline void TDF_Label::Nullify()
30 { myLabelNode = NULL; }
31
32 inline Standard_Boolean TDF_Label::IsRoot() const
33 { return myLabelNode->IsRoot(); }
34
35 inline Standard_Boolean TDF_Label::IsNull() const
36 { return (myLabelNode == NULL); }
37
38 inline Standard_Boolean TDF_Label::IsImported() const
39 { return myLabelNode->IsImported(); }
40
41 inline Standard_Boolean TDF_Label::IsEqual(const TDF_Label& aLabel) const
42 { return (myLabelNode == aLabel.myLabelNode); }
43
44 inline Standard_Boolean TDF_Label::IsDifferent(const TDF_Label& aLabel) const
45 { return (myLabelNode != aLabel.myLabelNode); }
46
47 inline Standard_Integer TDF_Label::Tag() const
48 { return myLabelNode->Tag(); }
49
50 inline const TDF_Label TDF_Label::Father() const
51 { return TDF_Label(myLabelNode->Father()); }
52
53 inline Standard_Boolean TDF_Label::HasChild() const
54 { return (myLabelNode->FirstChild() != NULL); }
55
56 inline Standard_Boolean TDF_Label::AttributesModified() const
57 { return myLabelNode->AttributesModified(); }
58
59 inline Standard_Boolean TDF_Label::MayBeModified() const
60 { return myLabelNode->MayBeModified(); }
61
62 inline Handle(TDF_Data) TDF_Label::Data() const
63 { return myLabelNode->Data(); }
64
65 inline Standard_OStream& operator << (Standard_OStream& anOS,
66                                       const TDF_Label& aLab)
67 { aLab.Dump(anOS); return anOS; }
68
69 inline TDF_Label TDF_Label::NewChild () const
70 { return TDF_TagSource::NewChild(*this); }