1 -- Created on: 1993-02-25
2 -- Created by: Jean Yves LEBEY
3 -- Copyright (c) 1993-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
22 class BlockIterator from BOP
26 -- Auxiliary class to provide
27 -- simple iteration on indexes that
28 -- belongs to the integer range [Lower,Upper]
33 NoMoreObject from Standard
38 returns BlockIterator from BOP;
42 Create(Lower,Upper : Integer from Standard)
43 returns BlockIterator from BOP;
45 --- Creates an object with initial range
49 Initialize(me : in out)
52 --- Initialize an object with initial range
56 returns Boolean from Standard
59 --- Support of Iteration
65 --- Support of Iteration
68 returns Integer from Standard
71 --- Support of Iteration
74 returns Integer from Standard
77 --- Returns the extension=myUpper - myLower + 1;
82 myLower : Integer from Standard;
83 myUpper : Integer from Standard;
84 myValue : Integer from Standard;