Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taste-model-checker
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TASTE
taste-model-checker
Commits
e3be2a4d
Commit
e3be2a4d
authored
Mar 03, 2017
by
Maxime Perrotin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start working on Initialize for SeqOf
parent
49aaae94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
asn1-iterators/src/asn1_iterators-iterable_seqof.adb
asn1-iterators/src/asn1_iterators-iterable_seqof.adb
+7
-8
No files found.
asn1-iterators/src/asn1_iterators-iterable_seqof.adb
View file @
e3be2a4d
...
...
@@ -4,16 +4,15 @@ use Ada.Text_IO;
package
body
ASN1_Iterators
.
Iterable_SeqOF
is
procedure
Initialize
(
It
:
in
out
ASN1_SequenceOf
)
is
-- Rest_Init : Instance;
begin
Put_Line
(
"Initialize Iterable_SeqOF length "
&
It
.
Length
'
Img
);
--
It.Value.Length := It.Length;
--
if It.Length > 1 then
-- Rest_Init.Item.Length := It.Length - 1;
-- It.Rest := new Instance'(Rest_Init)
;
--
It.Rest_It := new Cust_Iterator'(Cust_Iterator(It.Rest.Iterate));
--
It.Rest_It.Ptr := It.Rest_It.First;
--
end if;
It
.
Value
.
Length
:=
It
.
Length
;
if
It
.
Length
>
1
then
It
.
Rest
:=
new
Instance
;
-- not initialized
It
.
Rest
.
Item
.
Length
:=
It
.
Length
-
1
;
It
.
Rest_It
:=
new
Cust_Iterator
'(
Cust_Iterator
(
It
.
Rest
.
Iterate
));
It
.
Rest_It
.
Ptr
:=
It
.
Rest_It
.
First
;
end
if
;
end
;
function
Has_Element
(
It
:
ASN1_SequenceOf
)
return
Boolean
is
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment