GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
tutorial
>
POOL_ALTERNATIVE
+
Point of view
All features
ANY
ABSTRACT_BACKTRACKING_POOL
ABSTRACT_BACKTRACKING
EXPAND_EXPRESSION
All features
class POOL_ALTERNATIVE
Summary
top
Direct parents
Inherit list:
ABSTRACT_BACKTRACKING_POOL
Overview
top
Creation features
Features
{
ANY
}
get_fresh_instance
:
EXPAND_ALTERNATIVE
Returns a freshly created instance.
{
ANY
}
get_instance
: X_
Returns an instance from the current pool.
release_instance
(inst: X_)
Records the instance 'inst' into the current pool.
clear
Removes all recorded instances from the current pool.
{}
pool_of_instances
: WEAK_REFERENCE[X_]
Head of the recorded instances
make
creation
get_fresh_instance
:
EXPAND_ALTERNATIVE
effective function
{
ANY
}
top
Returns a freshly created instance.
get_instance
: X_
effective function
{
ANY
}
top
Returns an instance from the current pool.
ensure
result_not_void:
Result /= Void
release_instance
(inst: X_)
effective procedure
{
ANY
}
top
Records the instance 'inst' into the current pool.
ensure
instance_on_top:
pool_of_instances
.item = inst
previous_top_chained:
inst.pool_link = old
pool_of_instances
.item
clear
effective procedure
{
ANY
}
top
Removes all recorded instances from the current pool.
pool_of_instances
: WEAK_REFERENCE[X_]
writable attribute
{}
top
Head of the recorded instances
make
effective procedure
{}
top
creation