Index

Package: Lists

Description

package Values.Lists is
Copyright (c) 2012-2013 Kevin Wellwood All rights reserved. This source code is distributed under the Modified BSD License. For terms and conditions, see license.txt.

Classes

List_Value

type List_Value is new Value with private;

Ancestors:

Primitive operations:

Compare (overriding Values.Compare)
Delete (overriding Values.Delete)
Get_Type (overriding Values.Get_Type)
Value_Input (overriding Values.Value_Input)
Value_Read (overriding Values.Value_Read)
Value_Write (overriding Values.Value_Write)
Values.=."=" (Inherited)

List_Ptr

type List_Ptr is new Value_Ptr with private;

Ancestors:

Primitive operations:

Values.<."<" (Inherited)
Values.<=."<=" (Inherited)
Values.=."=" (Inherited)
Values.>.">" (Inherited)
Values.>=.">=" (Inherited)
Values.Adjust (Inherited)
Values.Clone (Inherited)
Values.Finalize (Inherited)
Values.Get (Inherited)
Values.Set (Inherited)
Values.To_Ptr (Inherited)
Values.Value_Ptr (Inherited)
Values.Value_Ptr_Input (Inherited)
Values.Value_Ptr_Output (Inherited)
Values.Value_Ptr_Read (Inherited)
Values.Value_Ptr_Write (Inherited)

Constants & Global variables

Subprograms & Entries

Create_List

function Create_List return List_Ptr;
Constructor

Clone

function Clone
( this: access List_Value ) return Value_Ptr'Class;

Compare

function Compare
( this: List_Value;
other: Value'Class ) return Integer;

Get

function Get
( this: List_Value;
index: Positive ) return Value_Ptr;

Get_Type

function Get_Type
( this: List_Value ) return Value_Type;

Image

function Image
( this: List_Value ) return String;

Append

procedure Append
( this: in out List_Value;
val: Value_Ptr'Class );

Length

function Length
( this: List_Value ) return Natural;

Set

procedure Set
( this: in out List_Value;
index: Positive;
val: Value_Ptr'Class );

As_List

function As_List
( ptr: Value_Ptr'Class ) return List_Ptr;
Casts a Value_Ptr down to a List_Value. Returns Nul on failure.

As_Value

function As_Value
( this: List_Ptr ) return Value_Ptr;
Casts a List_Value up to a Value_Ptr.

Get

function Get
( this: List_Ptr ) return access List_Value'Class;
Returns an access to the List_Value, or null if no target.