Hosted by
|
package body Lists is
function Push
(This : access List)
return Item_Access
renames Inner_Lists.Push;
function Unshift
(This : access List)
return Item_Access
renames Inner_Lists.Unshift;
function Insert_Before_Current
(This : access List)
return Item_Access
renames Inner_Lists.Insert_Before_Current;
function Insert_After_Current
(This : access List)
return Item_Access
renames Inner_Lists.Insert_After_Current;
procedure Push
(This : access List;
Content : in Content_Type) is
begin
Push(This).Content := Content;
end Push;
procedure Unshift
(This : access List;
Content : in Content_Type) is
begin
Unshift(This).Content := Content;
end Unshift;
procedure Update_Current
(This : access List;
Content : in Content_Type) is
begin
Current_Item(This).Content := Content;
end Update_Current;
procedure Insert_Before_Current
(This : access List;
Content : in Content_Type) is
begin
Insert_Before_Current(This).Content := Content;
end Insert_Before_Current;
procedure Insert_After_Current
(This : access List;
Content : in Content_Type) is
begin
Insert_After_Current(This).Content := Content;
end Insert_After_Current;
procedure Update_Item
(This : access Item;
Content : in Content_Type) is
begin
This.Content := Content;
end Update_Item;
end Lists;
|