GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
wrappers
>
RESULT_SET
+
Point of view
PREPARED_STATEMENT
ANY
PREPARED_STATEMENT
All features
deferred class RESULT_SET [ROW_ ->
RESULT_ROW
]
Summary
top
Direct parents
Inherit list:
TRAVERSABLE
Known children
Inherit list:
SQLITE_RESULT_SET
Overview
top
Exported features
columns
:
INTEGER_32
the number of columns of each result row
set_columns_number
(a_number:
INTEGER_32
)
set
columns
to
a_number
enumerate
: ENUMERATE[E_]
Other features:
new_iterator
: ITERATOR[E_]
get_new_iterator
: ITERATOR[E_]
Agent-based features:
for_each
(action:
PROCEDURE
[
TUPLE
[TUPLE 1[E_]]])
Apply
action
to every item of
Current
.
for_all
(test:
FUNCTION
[
TUPLE
[TUPLE 1[E_]]]):
BOOLEAN
Do all items satisfy
test
?
exists
(test:
FUNCTION
[
TUPLE
[TUPLE 1[E_]]]):
BOOLEAN
Does at least one item satisfy
test
?
aggregate
(action:
FUNCTION
[
TUPLE
[TUPLE 2[E_, E_], E_]], initial: E_): E_
Aggregate all the elements starting from the initial value.
Printing:
out_in_tagged_out_memory
Append terse printable representation of current object in
tagged_out_memory
.
generation
:
INTEGER_32
Counting:
count
:
INTEGER_32
Number of available items in the hoard.
is_empty
:
BOOLEAN
Is the hoard empty ?
See also
count
.
Agent-based features:
do_all
(action:
ROUTINE
[
TUPLE
[TUPLE 1[E_]]])
Apply
action
to every item of
Current
.
Indexing:
lower
:
INTEGER_32
Minimum index.
upper
:
INTEGER_32
Maximum index.
valid_index
(i:
INTEGER_32
):
BOOLEAN
True when
i
is valid (i.e., inside actual bounds).
Accessing:
item
(i:
INTEGER_32
): E_
Item at the corresponding index
i
.
first
: E_
The very
first
item.
last
: E_
The
last
item.
columns
:
INTEGER_32
writable attribute
top
the number of columns of each result row
set_columns_number
(a_number:
INTEGER_32
)
effective procedure
top
set
columns
to
a_number
enumerate
: ENUMERATE[E_]
effective function
top
new_iterator
: ITERATOR[E_]
deferred function
top
ensure
Result /= Void
Result.generation =
generation
get_new_iterator
: ITERATOR[E_]
frozen
effective function
top
This feature is obsolete:
Please use new_iterator instead. This SmartEiffel historic feature is badly named.
for_each
(action:
PROCEDURE
[
TUPLE
[TUPLE 1[E_]]])
effective procedure
top
Apply
action
to every item of
Current
.
See also
for_all
,
exists
,
aggregate
.
require
action /= Void
for_all
(test:
FUNCTION
[
TUPLE
[TUPLE 1[E_]]]):
BOOLEAN
effective function
top
Do all items satisfy
test
?
See also
for_each
,
exists
,
aggregate
.
require
test /= Void
exists
(test:
FUNCTION
[
TUPLE
[TUPLE 1[E_]]]):
BOOLEAN
effective function
top
Does at least one item satisfy
test
?
See also
for_each
,
for_all
,
aggregate
.
require
test /= Void
aggregate
(action:
FUNCTION
[
TUPLE
[TUPLE 2[E_, E_], E_]], initial: E_): E_
effective function
top
Aggregate all the elements starting from the initial value.
See also
for_each
,
for_all
,
exists
.
require
action /= Void
out_in_tagged_out_memory
effective procedure
top
Append terse printable representation of current object in
tagged_out_memory
.
generation
:
INTEGER_32
writable attribute
top
count
:
INTEGER_32
deferred function
top
Number of available items in the hoard.
See also
is_empty
ensure
Result >= 0
is_empty
:
BOOLEAN
deferred function
top
Is the hoard empty ?
See also
count
.
ensure
definition:
Result =
count
= 0
do_all
(action:
ROUTINE
[
TUPLE
[TUPLE 1[E_]]])
frozen
effective procedure
top
Apply
action
to every item of
Current
.
This feature is obsolete:
This feature is not secure because it accepts a FUNCTION, the result of which is lost. Plese use `for_each` instead.
lower
:
INTEGER_32
deferred function
top
Minimum index.
See also
upper
,
valid_index
,
item
.
upper
:
INTEGER_32
deferred function
top
Maximum index.
See also
lower
,
valid_index
,
item
.
valid_index
(i:
INTEGER_32
):
BOOLEAN
effective function
top
True when
i
is valid (i.e., inside actual bounds).
See also
lower
,
upper
,
item
.
ensure
definition:
Result =
lower
<= i and i <=
upper
item
(i:
INTEGER_32
): E_
deferred function
top
Item at the corresponding index
i
.
See also
lower
,
upper
,
valid_index
.
require
valid_index
(i)
first
: E_
deferred function
top
The very
first
item.
See also
last
,
item
.
require
not
is_empty
ensure
definition:
Result =
item
(
lower
)
last
: E_
deferred function
top
The
last
item.
See also
first
,
item
.
require
not
is_empty
ensure
definition:
Result =
item
(
upper
)