1 // Created on: 2004-11-23
2 // Created by: Pavel TELKOV
3 // Copyright (c) 2004-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 // The original implementation Copyright: (C) RINA S.p.A
18 #ifndef TObj_ObjectIterator_HeaderFile
19 #define TObj_ObjectIterator_HeaderFile
21 #include <TObj_Common.hxx>
23 class Handle(TObj_Object);
26 * This class provides an iterator by objects in a partition.
27 * (implements TObj_ObjectIterator interface)
30 class TObj_ObjectIterator : public MMgt_TShared
34 * Methods to iterate on a objects
37 //! Returns True if iteration is not finished and method Current()
38 //! will give the object.
39 //! Default implementation returns False
40 virtual Standard_EXPORT Standard_Boolean More () const;
42 //! Iterates to the next object
43 //! Default implementation does nothing
44 virtual Standard_EXPORT void Next ();
46 //! Returns current object (or null if iteration has finished)
47 //! Default implementation returns null handle
48 virtual Standard_EXPORT Handle(TObj_Object) Value () const;
52 DEFINE_STANDARD_RTTI(TObj_ObjectIterator, MMgt_TShared)
55 //! Define handle class for TObj_ObjectIterator
56 DEFINE_STANDARD_HANDLE(TObj_ObjectIterator,MMgt_TShared)