Warnings on vc14 were eliminated
[occt.git] / src / TObj / TObj_SequenceIterator.hxx
CommitLineData
b311480e 1// Created on: 2004-11-23
2// Created by: Pavel TELKOV
973c2be1 3// Copyright (c) 2004-2014 OPEN CASCADE SAS
b311480e 4//
973c2be1 5// This file is part of Open CASCADE Technology software library.
b311480e 6//
d5f74e42 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
973c2be1 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.
b311480e 12//
973c2be1 13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
b311480e 15
7fd59977 16// The original implementation Copyright: (C) RINA S.p.A
17
18#ifndef TObj_SequenceIterator_HeaderFile
19#define TObj_SequenceIterator_HeaderFile
20
21#include <TObj_Container.hxx>
22#include <TObj_ObjectIterator.hxx>
23
24/**
25* This class is an iterator on sequence
26*/
27
28class TObj_SequenceIterator : public TObj_ObjectIterator
29{
30
31 protected:
32 /**
33 * Constructor
34 */
35
36 //! Creates an Empty Iterator
37 Standard_EXPORT TObj_SequenceIterator();
38
39 public:
40 /**
41 * Constructor
42 */
43
44 //! Creates an iterator an initialize it by sequence of objects.
45 Standard_EXPORT TObj_SequenceIterator
46 (const Handle(TObj_HSequenceOfObject)& theObjects,
47 const Handle(Standard_Type)& theType = NULL);
48
49 public:
50 /**
51 * Redefined methods
52 */
53
54 //! Returns True if there is a current Item in the iteration.
79104795 55 virtual Standard_EXPORT Standard_Boolean More () const Standard_OVERRIDE;
7fd59977 56
57 //! Move to the next Item
79104795 58 virtual Standard_EXPORT void Next () Standard_OVERRIDE;
7fd59977 59
60 //! Returns the current item
79104795 61 virtual Standard_EXPORT Handle(TObj_Object) Value () const Standard_OVERRIDE;
7fd59977 62
63 protected:
64 /**
65 * Fields
66 */
67 Standard_Integer myIndex; //!< current index of object in sequence
68 Handle(Standard_Type) myType; //!< type of object
69 Handle(TObj_HSequenceOfObject) myObjects; //!< seqence of objects
70
71 public:
72 //! CASCADE RTTI
92efcf78 73 DEFINE_STANDARD_RTTIEXT(TObj_SequenceIterator,TObj_ObjectIterator)
7fd59977 74};
75
76//! Define handle class for TObj_SequenceIterator
77DEFINE_STANDARD_HANDLE(TObj_SequenceIterator,TObj_ObjectIterator)
78
79#endif
80
81#ifdef _MSC_VER
82#pragma once
83#endif