0031313: Foundation Classes - Dump improvement for classes
[occt.git] / src / TNaming / TNaming_OldShapeIterator.hxx
CommitLineData
42cf5bc1 1// Created on: 1996-12-16
2// Created by: Yves FRICAUD
3// Copyright (c) 1996-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _TNaming_OldShapeIterator_HeaderFile
18#define _TNaming_OldShapeIterator_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <TNaming_PtrNode.hxx>
25#include <Standard_Integer.hxx>
26#include <Standard_Boolean.hxx>
27class Standard_NoMoreObject;
28class Standard_NoSuchObject;
29class TNaming_Tool;
30class TNaming_Localizer;
31class TNaming_Naming;
32class TopoDS_Shape;
33class TNaming_UsedShapes;
34class TDF_Label;
35class TNaming_Iterator;
36class TNaming_NamedShape;
37
38
39//! Iterates on all the ascendants of a shape
40class TNaming_OldShapeIterator
41{
42public:
43
44 DEFINE_STANDARD_ALLOC
45
46
47 Standard_EXPORT TNaming_OldShapeIterator(const TopoDS_Shape& aShape, const Standard_Integer Transaction, const TDF_Label& access);
48
49 Standard_EXPORT TNaming_OldShapeIterator(const TopoDS_Shape& aShape, const TDF_Label& access);
50
51 //! Iterates from the current Shape in <anIterator>
52 Standard_EXPORT TNaming_OldShapeIterator(const TNaming_OldShapeIterator& anIterator);
53
54 //! Iterates from the current Shape in <anIterator>
55 Standard_EXPORT TNaming_OldShapeIterator(const TNaming_Iterator& anIterator);
56
57 Standard_Boolean More() const;
58
59 Standard_EXPORT void Next();
60
61 Standard_EXPORT TDF_Label Label() const;
62
63 Standard_EXPORT Handle(TNaming_NamedShape) NamedShape() const;
64
65 Standard_EXPORT const TopoDS_Shape& Shape() const;
66
67 //! True if the new shape is a modification (split,
68 //! fuse,etc...) of the old shape.
69 Standard_EXPORT Standard_Boolean IsModification() const;
70
71
72friend class TNaming_Tool;
73friend class TNaming_Localizer;
74friend class TNaming_Naming;
75
76
77protected:
78
79
80
81
82
83private:
84
85
86 Standard_EXPORT TNaming_OldShapeIterator(const TopoDS_Shape& aShape, const Standard_Integer Transaction, const Handle(TNaming_UsedShapes)& Shapes);
87
88 Standard_EXPORT TNaming_OldShapeIterator(const TopoDS_Shape& aShape, const Handle(TNaming_UsedShapes)& Shapes);
89
90
91 TNaming_PtrNode myNode;
92 Standard_Integer myTrans;
93
94
95};
96
97
98#include <TNaming_OldShapeIterator.lxx>
99
100
101
102
103
104#endif // _TNaming_OldShapeIterator_HeaderFile