Index

Package: Associations

Description

package Associations is

Classes

Association

type Association is new Object with private;

Ancestors:

Primitive operations:

Adjust (overriding Objects.Adjust)
Delete (overriding Objects.Delete)
Object_Input
Object_Read (overriding Objects.Object_Read)
Object_Write (overriding Objects.Object_Write)
Objects.Construct (Inherited)
Objects.To_String (Inherited)

References:

associations.ads:14:10 (declaration)
associations.adb:10:46 (reference)
associations.adb:19:37 (reference)
associations.adb:36:40 (reference)
associations.adb:48:40 (reference)
associations.adb:60:39 (reference)
associations.adb:72:37 (reference)
associations.adb:88:41 (reference)
associations.adb:103:36 (reference)
associations.adb:111:76 (reference)
associations.adb:112:24 (reference)
associations.adb:115:9 (reference)
associations.adb:122:78 (reference)
associations.adb:143:75 (reference)
associations.adb:160:37 (reference)
associations.adb:174:40 (reference)
associations.adb:183:40 (reference)
associations.adb:192:40 (reference)
associations.adb:201:40 (reference)
associations.adb:240:20 (reference)
associations.adb:240:39 (reference)
associations.adb:255:10 (reference)
associations.ads:15:38 (reference)
associations.ads:24:40 (reference)
associations.ads:30:40 (reference)
associations.ads:35:39 (reference)
associations.ads:40:41 (reference)
associations.ads:44:36 (reference)
associations.ads:47:76 (reference)
associations.ads:50:37 (reference)
associations.ads:54:40 (reference)
associations.ads:58:40 (reference)
associations.ads:62:40 (reference)
associations.ads:66:40 (reference)
associations.ads:87:10 (full declaration)
associations.ads:92:37 (reference)
associations.ads:94:37 (reference)
associations.ads:96:9 (reference)
associations.ads:98:78 (reference)
associations.ads:99:9 (reference)
associations.ads:101:75 (reference)
associations.ads:102:9 (reference)
games.adb:59:33 (reference)
An Association is an ordered map of strings to Value objects. Names are case insensitive. Associations do not subclass the Value class to avoid the possibility of nesting.

Types

A_Association

type A_Association is access all Association'Class;

References:

associations.ads:15:10 (declaration)
associations.adb:9:40 (reference)
associations.adb:10:25 (reference)
associations.adb:217:83 (reference)
associations.adb:218:15 (reference)
associations.adb:221:13 (reference)
associations.adb:228:83 (reference)
associations.adb:232:13 (reference)
associations.adb:238:85 (reference)
associations.adb:253:82 (reference)
associations.adb:260:26 (reference)
associations.adb:260:49 (reference)
associations.adb:262:16 (reference)
associations.adb:267:37 (reference)
associations.ads:18:40 (reference)
associations.ads:72:26 (reference)
associations.ads:72:49 (reference)
associations.ads:76:37 (reference)
associations.ads:104:83 (reference)
associations.ads:105:9 (reference)
associations.ads:107:83 (reference)
associations.ads:108:9 (reference)
associations.ads:110:85 (reference)
associations.ads:111:9 (reference)
associations.ads:113:82 (reference)
associations.ads:114:9 (reference)
entities.adb:105:75 (reference)
entities.adb:422:17 (reference)
entities.adb:434:18 (reference)
entities.adb:456:9 (reference)
entities.ads:42:75 (reference)
entities.ads:204:21 (reference)
events-entities.adb:198:50 (reference)
events-entities.adb:219:52 (reference)
events-entities.adb:687:61 (reference)
events-entities.ads:90:52 (reference)
events-entities.ads:287:61 (reference)
events-entities.ads:427:28 (reference)
events-entities.ads:444:50 (reference)
games.ads:71:27 (reference)
widgets.ads:447:28 (reference)

Subprograms & Entries

Create_Association

function Create_Association return A_Association;

References:

associations.ads:18:14 (declaration)
associations.adb:9:14 (body)
associations.adb:14:9 (label)
associations.ads:19:27 (reference)
entities.adb:68:23 (reference)
widgets.adb:171:23 (reference)

Called by:

Entities.Construct defined at entities.ads:216:15
Widgets.Construct defined at widgets.ads:499:15
Creates a new empty association.

As_Boolean

function As_Boolean
( this: access Association;
name: String )
return Boolean;

References:

associations.ads:24:14 (declaration)
associations.adb:36:14 (body)
associations.adb:43:9 (label)

Calls:

Element defined at a-ciorma.ads:73:13
Find defined at a-ciorma.ads:145:13
Has_Element defined at a-ciorma.ads:155:13
Values.As_Boolean defined at values.ads:22:14
Returns the named value in the association as a boolean. An exception is raised if the value is not found or if it can't be converted to a boolean.

As_Integer

function As_Integer
( this: access Association;
name: String )
return Integer;

References:

associations.ads:30:14 (declaration)
associations.adb:48:14 (body)
associations.adb:55:9 (label)
games.adb:93:59 (dispatching call)
games.adb:94:49 (dispatching call)
games.adb:191:49 (dispatching call)
games.adb:202:49 (dispatching call)
widgets.adb:368:27 (dispatching call)
games-keen.adb:79:29 (dispatching call)

Called by:

Games.Game_Var_Add defined at games.ads:85:15
Games.Game_Var_Add defined at games.ads:85:15
Games.Keen.Handle defined at games-keen.ads:25:15
Games.Set_Game_Var defined at games.ads:103:15
Games.Set_Game_Var defined at games.ads:108:15
Widgets.Get_Attribute defined at widgets.ads:110:14

Calls:

Element defined at a-ciorma.ads:73:13
Find defined at a-ciorma.ads:145:13
Has_Element defined at a-ciorma.ads:155:13
Values.As_Integer defined at values.ads:25:14
Returns the named value in the association as an integer. An exception is raised if the value is not found or if it can't be converted to an integer.

As_String

function As_String
( this: access Association;
name: String )
return String;

References:

associations.ads:35:14 (declaration)
associations.adb:60:14 (body)
associations.adb:67:9 (label)
entities-triggers.adb:56:23 (dispatching call)
entities-triggers.adb:58:59 (dispatching call)
entities-triggers.adb:59:59 (dispatching call)
entities-triggers.adb:70:23 (dispatching call)
entities-triggers.adb:73:59 (dispatching call)
entities-triggers.adb:74:49 (dispatching call)
widgets.adb:376:27 (dispatching call)

Called by:

Entities.Triggers.On_Activate defined at entities-triggers.ads:35:15
Entities.Triggers.On_Activate defined at entities-triggers.ads:35:15
Entities.Triggers.On_Activate defined at entities-triggers.ads:35:15
Entities.Triggers.On_Collide defined at entities-triggers.ads:39:15
Entities.Triggers.On_Collide defined at entities-triggers.ads:39:15
Entities.Triggers.On_Collide defined at entities-triggers.ads:39:15
Widgets.Get_Attribute defined at widgets.ads:118:14

Calls:

Element defined at a-ciorma.ads:73:13
Find defined at a-ciorma.ads:145:13
Has_Element defined at a-ciorma.ads:155:13
Values.As_String defined at values.ads:28:14
Returns the named value in the association as a string. An exception is raised if the value is not found or if it can't be converted to a string.

Iterate

procedure Iterate
( this: access Association;
examine: not null access procedure( name : String;
value: A_Value )
);

References:

associations.ads:40:15 (declaration)
associations.adb:88:15 (body)
associations.adb:98:9 (label)

Calls:

Associations.Iterate.Local_Examine defined at associations.adb:91:19
Iterate defined at a-ciorma.ads:169:14
Iterate through the name/value pairs in the association. The iteration will be in alphabetical order of names.

Length

function Length
( this: access Association )
return Natural;

References:

associations.ads:44:14 (declaration)
associations.adb:103:14 (body)
associations.adb:106:9 (label)

Calls:

Length defined at a-ciorma.ads:65:13
Returns the number of name/value pairs in the assocation.

Object_Input

function Object_Input
( stream: access Root_Stream_Type'Class )
return Association;

References:

associations.ads:47:14 (declaration)
associations.adb:111:14 (body)
associations.adb:117:9 (label)
Reads an Association from a stream. This should not be called directly.

Remove

procedure Remove
( this: access Association;
name: String );

References:

associations.ads:50:15 (declaration)
associations.adb:160:15 (body)
associations.adb:169:9 (label)
entities.adb:317:28 (dispatching call)

Calls:

Delete defined at a-ciorma.ads:119:14
Element defined at a-ciorma.ads:73:13
Find defined at a-ciorma.ads:145:13
Has_Element defined at a-ciorma.ads:155:13
Values.Delete defined at values.ads:35:15
Removes the named value from the association.

Set_Value

procedure Set_Value
( this: access Association;
name: String;
val: Boolean );

References:

associations.ads:54:15 (declaration)
associations.adb:174:15 (body)
associations.adb:178:9 (label)
games.adb:201:26 (dispatching call)
games-keen.adb:132:26 (dispatching call)

Called by:

Games.Keen.New_Game defined at games-keen.ads:37:15
Games.Set_Game_Var defined at games.ads:108:15
Sets a value in the association by name.

Set_Value

procedure Set_Value
( this: access Association;
name: String;
val: Integer );

References:

associations.ads:58:15 (declaration)
associations.adb:183:15 (body)
associations.adb:187:9 (label)
games.adb:93:26 (dispatching call)
games.adb:190:26 (dispatching call)
widgets.adb:1039:20 (dispatching call)

Called by:

Games.Game_Var_Add defined at games.ads:85:15
Games.Set_Game_Var defined at games.ads:103:15
Widgets.Set_Attribute defined at widgets.ads:185:15
Sets a value in the association by name.

Set_Value

procedure Set_Value
( this: access Association;
name: String;
val: String );

References:

associations.ads:62:15 (declaration)
associations.adb:192:15 (body)
associations.adb:196:9 (label)
entities-triggers.adb:28:20 (dispatching call)
entities-triggers.adb:29:20 (dispatching call)
entities-triggers.adb:30:20 (dispatching call)
widgets.adb:1048:20 (dispatching call)

Called by:

Entities.Triggers.Construct defined at entities-triggers.ads:24:15
Entities.Triggers.Construct defined at entities-triggers.ads:24:15
Entities.Triggers.Construct defined at entities-triggers.ads:24:15
Widgets.Set_Attribute defined at widgets.ads:192:15
Sets a value in the association by name.

Set_Value

procedure Set_Value
( this: access Association;
name: String;
val: in out A_Value );

References:

associations.ads:66:15 (declaration)
associations.adb:128:17 (reference)
associations.adb:177:14 (reference)
associations.adb:186:14 (reference)
associations.adb:195:14 (reference)
associations.adb:201:15 (body)
associations.adb:213:9 (label)
entities.adb:320:28 (dispatching call)
widgets.adb:1057:20 (dispatching call)

Called by:

Associations.Object_Read.Read_Pair defined at associations.adb:124:19
Entities.Set_Attribute defined at entities.ads:95:15
Set_Value defined at associations.ads:58:15
Set_Value defined at associations.ads:54:15
Set_Value defined at associations.ads:62:15
Widgets.Set_Attribute defined at widgets.ads:654:15

Calls:

Element defined at a-ciorma.ads:73:13
Find defined at a-ciorma.ads:145:13
Has_Element defined at a-ciorma.ads:155:13
Insert defined at a-ciorma.ads:100:14
Replace_Element defined at a-ciorma.ads:75:14
Values.Delete defined at values.ads:35:15
Sets a value in the association by name, consuming 'val'.

Copy

function Copy
( src: A_Association )
return A_Association;

References:

associations.ads:72:14 (declaration)
associations.adb:260:14 (body)
associations.adb:263:9 (label)
events-entities.adb:180:27 (reference)
events-entities.adb:213:28 (reference)
events-entities.adb:222:23 (reference)

Called by:

Events.Entities.Adjust defined at events-entities.ads:430:15
Events.Entities.Construct defined at events-entities.ads:432:15
Events.Entities.Copy_Attributes defined at events-entities.ads:89:15

Calls:

Objects.Copy defined at objects.ads:42:14
Returns a deep copy of the assocation.

Delete

procedure Delete
( this: in out A_Association );

References:

associations.ads:76:15 (declaration)
associations.adb:267:15 (body)
associations.adb:270:9 (label)
entities.adb:90:9 (reference)
entities.adb:436:13 (reference)
events-entities.adb:221:9 (reference)
events-entities.adb:230:9 (reference)
games.adb:80:9 (reference)
widgets.adb:247:9 (reference)

Called by:

Entities.Delete defined at entities.ads:224:15
Entities.Object_Read defined at entities.ads:260:15
Events.Entities.Copy_Attributes defined at events-entities.ads:89:15
Events.Entities.Delete defined at events-entities.ads:446:15
Games.Delete defined at games.ads:81:15
Widgets.Delete defined at widgets.ads:509:15

Calls:

Objects.Delete defined at objects.ads:46:15
Deletes the association.