Copyright (C) 2020-2022, AdaCore
SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
function "="
(Left : Stream_Element_Vector;
Right : Stream_Element_Vector) return Boolean
procedure Append
(Self : in out Stream_Element_Vector'Class;
Item : Ada.Streams.Stream_Element)
Append stream element to the end of the buffer
procedure Append
(Self : in out Stream_Element_Vector'Class;
Item : Stream_Element_Vector'Class)
Append stream element vector to the end of the buffer
type Cursor is private;
function Element
(Self : Stream_Element_Vector'Class;
Index : Ada.Streams.Stream_Element_Count)
return Ada.Streams.Stream_Element
Return element at given index (starting from 1).
function Element
(Self : Stream_Element_Vector'Class;
Position : Cursor)
return Ada.Streams.Stream_Element
function First (Self : Reversible_Iterator) return Cursor
function Has_Element (Self : Cursor) return Boolean
function Is_Empty (Self : Stream_Element_Vector'Class) return Boolean
Return True when stream element vector doesn't contain any elements.
function Iterate
(Self : Stream_Element_Vector'Class) return Reversible_Iterator
package Iterator_Interfaces is new Ada.Iterator_Interfaces
(Cursor, Has_Element);
function Last (Self : Reversible_Iterator) return Cursor
function Length
(Self : Stream_Element_Vector'Class)
return Ada.Streams.Stream_Element_Count
Return size of accumulated data.
function Next
(Self : Reversible_Iterator;
Position : Cursor) return Cursor
function Previous
(Self : Reversible_Iterator;
Position : Cursor) return Cursor
type Reversible_Iterator is
limited new Iterator_Interfaces.Reversible_Iterator with private;
procedure Set_Capacity
(Self : in out Stream_Element_Vector'Class;
Capacity : Ada.Streams.Stream_Element_Count)
Request to pre-allocate memory to store given number of stream elements.
type Stream_Element_Vector is tagged private
with
Constant_Indexing => Element,
Default_Iterator => Iterate,
Iterator_Element => Ada.Streams.Stream_Element;