0024624: Lost word in license statement in source files
[occt.git] / src / AIS / AIS_Selection.lxx
old mode 100755 (executable)
new mode 100644 (file)
index cc72d18..f783a1d
@@ -1,68 +1,50 @@
-// File:       AIS_Selection.lxx
-// Created:    Tue Jun 23 15:45:23 1998
-// Author:     Robert COUBLANC
-//             <rob@robox.paris1.matra-dtv.fr>
+// Created on: 1998-06-23
+// Created by: Robert COUBLANC
+// Copyright (c) 1998-1999 Matra Datavision
+// Copyright (c) 1999-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.
+
+//SAV: 18/03/02 array was replaced with list.
+//san : 18/04/03 USE_MAP - additional datamap is used to speed up access 
+//to certain owners in <myresult> list
 
-#define OCC189   //SAV: 18/03/02 array was replaced with list.
-
-#define USE_MAP    //san : 18/04/03 USE_MAP - additional datamap is used to speed up access 
-                   //to certain owners in <myresult> list
-
-#if !defined( OCC189 ) && !defined( USE_MAP )
-#include <TColStd_HArray1OfTransient.hxx>
-#else
 #include <TColStd_MapOfTransient.hxx>
 #include <TColStd_MapIteratorOfMapOfTransient.hxx>
-#endif
 
-
-#if !defined( OCC189 ) && !defined( USE_MAP )
-inline const Handle(TColStd_HArray1OfTransient)& AIS_Selection::Objects() const
-#else
 inline const AIS_NListTransient& AIS_Selection::Objects() const       
-#endif
 {
   return myresult;
 }
 
 inline void AIS_Selection::Init()
 {
-#if !defined( OCC189 ) && !defined( USE_MAP )
-  mycuri=1;
-#else
   myIterator = AIS_NListTransient::Iterator ( myresult );  
-#endif
 }
 
 inline Standard_Boolean AIS_Selection::More() const 
 {
-#if !defined( OCC189 ) && !defined( USE_MAP )  
-  return (myresult.IsNull() ? Standard_False : (mycuri<=myNb));
-#else
   return myIterator.More();
-#endif
 }
-inline void AIS_Selection::Next () {
-#if !defined( OCC189 ) && !defined( USE_MAP )    
-  mycuri++;
-#else
+inline void AIS_Selection::Next () 
+{
   myIterator.Next();
-#endif
 }
 inline const Handle(Standard_Transient)& AIS_Selection::Value() const 
 {
-#if !defined( OCC189 ) && !defined( USE_MAP )   
-  return myresult->Value(mycuri);
-#else
   return myIterator.Value();  
-#endif
 }
 
 inline Standard_Integer AIS_Selection::NbStored() const
 {
-#if !defined( OCC189 ) && !defined( USE_MAP )    
-  return myNb;
-#else
   return myresult.Extent();
-#endif
 }