/[eiffelstudio]/branches/eth/eve/Src/library/base/base2/iterator/sequence/v_mutable_sequence_iterator.e
ViewVC logotype

Contents of /branches/eth/eve/Src/library/base/base2/iterator/sequence/v_mutable_sequence_iterator.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 94307 - (show annotations)
Fri Feb 14 13:39:28 2014 UTC (5 years, 9 months ago) by polikarn
File size: 1004 byte(s)
Triggering on arithmetic operations as a command-line option; processing {TYPE}.default_value; verified MUTABLE_SEQUENCE and its iterator.
1 note
2 description: "Iterators to read from and update mutable sequences."
3 author: "Nadia Polikarpova"
4 model: target, sequence, index
5
6 deferred class
7 V_MUTABLE_SEQUENCE_ITERATOR [G]
8
9 inherit
10 V_SEQUENCE_ITERATOR [G]
11 redefine
12 target
13 end
14
15 V_IO_ITERATOR [G]
16 redefine
17 target,
18 put
19 end
20
21 feature -- Access
22
23 target: V_MUTABLE_SEQUENCE [G]
24 -- Sequence to iterate over.
25
26 feature -- Replacement
27
28 put (v: G)
29 -- Replace item at current position with `v'.
30 require else
31 modify_model (["map"], target)
32 deferred
33 ensure then
34 target_map_effect: target.map ~ old (target.map.updated (target.lower + index - 1, v))
35 end
36
37 note
38 copyright: "Copyright (c) 1984-2014, Eiffel Software and others"
39 license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
40 source: "[
41 Eiffel Software
42 5949 Hollister Ave., Goleta, CA 93117 USA
43 Telephone 805-685-1006, Fax 805-685-6869
44 Website http://www.eiffel.com
45 Customer support http://support.eiffel.com
46 ]"
47 end

Properties

Name Value
svn:eol-style native
svn:keywords Author Date ID Revision

  ViewVC Help
Powered by ViewVC 1.1.23