0029151: GCC 7.1 warnings "this statement may fall through" [-Wimplicit-fallthrough=]
[occt.git] / src / NCollection / NCollection_EBTree.hxx
old mode 100755 (executable)
new mode 100644 (file)
index 2eb8756..f790f20
@@ -1,14 +1,24 @@
-// File:      NCollection_EBTree.hxx
-// Created:   30.07.02 09:51:33
-// Author:    Michael SAZONOV
-// Copyright: Open CASCADE 2002
+// Created on: 2002-07-30
+// Created by: Michael SAZONOV
+// Copyright (c) 2002-2014 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
 
 #ifndef NCollection_EBTree_HeaderFile
 #define NCollection_EBTree_HeaderFile
 
 #include <NCollection_UBTree.hxx>
-#include <Standard_DefineHandle.hxx>
-#include <MMgt_TShared.hxx>
+#include <Standard_Type.hxx>
+#include <Standard_Transient.hxx>
 #include <NCollection_List.hxx>
 #include <TColStd_SequenceOfInteger.hxx>
 #include <NCollection_DataMap.hxx>
@@ -107,7 +117,7 @@ Standard_Boolean NCollection_EBTree<TheObjType,TheBndType>::Add
     UBTree::Add (theObj, theBnd);
 
     // Update the map
-    TreeNode& aNewNode = ChangeLastNode();
+    TreeNode& aNewNode = this->ChangeLastNode();
     myObjNodeMap.Bind (theObj, &aNewNode);
     // If the new node is not the root (has a parent) check the neighbour node
     if (!aNewNode.IsRoot()) {
@@ -198,13 +208,13 @@ class _HEBTREE : public _HUBTREE                                        \
   const EBTree& ETree () const { return (const EBTree&) Tree(); }       \
   EBTree&       ChangeETree () { return (EBTree&) ChangeTree(); }       \
                                                                         \
-  DEFINE_STANDARD_RTTI (_HEBTREE)                                       \
+  DEFINE_STANDARD_RTTI_INLINE(_HEBTREE,_HUBTREE)                                       \
   /* Type management */                                                 \
 };                                                                      \
 DEFINE_STANDARD_HANDLE (_HEBTREE, _HUBTREE)
 
-#define IMPLEMENT_HEBTREE(_HEBTREE, _HUBTREE)                           \
-IMPLEMENT_STANDARD_HANDLE (_HEBTREE, _HUBTREE)                          \
-IMPLEMENT_STANDARD_RTTIEXT(_HEBTREE, _HUBTREE)
+#define IMPLEMENT_HEBTREE(_HEBTREE, _HUBTREE)                           
+
+
 
 #endif