Hosted by
|
package body Music.Forwards is
function Create
(Duration : in Positive;
Voice : in Positive;
Staff : in Positive)
return Forward_Access
is
Result : Forward_Access := new Forward;
begin
Result.Duration := Duration;
Result.Voice := Voice;
Result.Staff := Staff;
return Result;
end Create;
function Get_Duration
(This : access Forward)
return Positive is
begin
return This.Duration;
end Get_Duration;
function Get_Voice
(This : access Forward)
return Positive is
begin
return This.Voice;
end Get_Voice;
function Get_Staff
(This : access Forward)
return Positive is
begin
return This.Staff;
end Get_Staff;
end Music.Forwards;
|