1 // Created by: DAUTRY Philippe
2 // Copyright (c) 1997-1999 Matra Datavision
3 // Copyright (c) 1999-2012 OPEN CASCADE SAS
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.
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.
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.
23 //Version Date Purpose
24 // 0.0 Feb 7 1997 Creation
26 #include <TDF_LabelNode.hxx>
27 #include <TDF_TagSource.hxx>
29 inline void TDF_Label::Nullify()
30 { myLabelNode = NULL; }
32 inline Standard_Boolean TDF_Label::IsRoot() const
33 { return myLabelNode->IsRoot(); }
35 inline Standard_Boolean TDF_Label::IsNull() const
36 { return (myLabelNode == NULL); }
38 inline Standard_Boolean TDF_Label::IsImported() const
39 { return myLabelNode->IsImported(); }
41 inline Standard_Boolean TDF_Label::IsEqual(const TDF_Label& aLabel) const
42 { return (myLabelNode == aLabel.myLabelNode); }
44 inline Standard_Boolean TDF_Label::IsDifferent(const TDF_Label& aLabel) const
45 { return (myLabelNode != aLabel.myLabelNode); }
47 inline Standard_Integer TDF_Label::Tag() const
48 { return myLabelNode->Tag(); }
50 inline const TDF_Label TDF_Label::Father() const
51 { return TDF_Label(myLabelNode->Father()); }
53 inline Standard_Boolean TDF_Label::HasChild() const
54 { return (myLabelNode->FirstChild() != NULL); }
56 inline Standard_Boolean TDF_Label::AttributesModified() const
57 { return myLabelNode->AttributesModified(); }
59 inline Standard_Boolean TDF_Label::MayBeModified() const
60 { return myLabelNode->MayBeModified(); }
62 inline Handle(TDF_Data) TDF_Label::Data() const
63 { return myLabelNode->Data(); }
65 inline Standard_OStream& operator << (Standard_OStream& anOS,
66 const TDF_Label& aLab)
67 { aLab.Dump(anOS); return anOS; }
69 inline TDF_Label TDF_Label::NewChild () const
70 { return TDF_TagSource::NewChild(*this); }