Index

Package: Alog.Maps

Description

package Alog.Maps is
Alog maps package. Provides map data types.

Classes

Wildcard_Level_Map

type Wildcard_Level_Map is tagged private;

References:

alog-maps.ads:30:9 (declaration)
alog-helpers.adb:80:35 (reference)
alog-helpers.ads:41:35 (reference)
alog-maps.adb:30:34 (reference)
alog-maps.adb:38:13 (reference)
alog-maps.adb:56:13 (reference)
alog-maps.adb:67:21 (reference)
alog-maps.adb:87:27 (reference)
alog-maps.adb:95:13 (reference)
alog-maps.ads:42:13 (reference)
alog-maps.ads:51:13 (reference)
alog-maps.ads:58:13 (reference)
alog-maps.ads:76:21 (reference)
alog-maps.ads:82:34 (reference)
alog-maps.ads:85:27 (reference)
alog-maps.ads:100:9 (full declaration)
alog-policy_db.adb:29:24 (reference)
alog-policy_db.adb:124:47 (reference)
alog-policy_db.ads:61:47 (reference)
A map of loglevels with string as key type.

Types

Cursor

type Cursor is private;

References:

alog-maps.ads:33:9 (declaration)
alog-maps.adb:48:33 (reference)
alog-maps.adb:58:14 (reference)
alog-maps.adb:61:14 (reference)
alog-maps.adb:97:14 (reference)
alog-maps.adb:99:18 (reference)
alog-maps.ads:36:26 (reference)
alog-maps.ads:47:33 (reference)
alog-maps.ads:53:14 (reference)
alog-maps.ads:60:14 (reference)
alog-maps.ads:104:9 (full declaration)
alog-maps.ads:106:26 (reference)
alog-maps.ads:106:36 (reference)
alog-policy_db.adb:39:26 (reference)
alog-policy_db.adb:40:23 (reference)
alog-policy_db.adb:84:26 (reference)
alog-policy_db.adb:85:23 (reference)
Index for a map element.

Constants & Global variables

No_Element (Cursor)

No_Element : constant Cursor;

References:

alog-maps.ads:36:4 (declaration)
alog-maps.adb:106:22 (reference)
alog-maps.adb:118:28 (reference)
alog-maps.adb:130:14 (reference)
alog-maps.ads:106:4 (full declaration)
alog-policy_db.adb:44:27 (reference)
alog-policy_db.adb:89:27 (reference)

Wildcard (character)

Wildcard   : constant Character := '*';

References:

alog-maps.ads:38:4 (declaration)
alog-maps.adb:116:63 (reference)
Character used as wildcard indicator in lookups.

Subprograms & Entries

Element

function Element     
(Map: Wildcard_Level_Map;
Key: String)
return Log_Level;

References:

alog-maps.ads:41:13 (declaration)
alog-maps.adb:37:13 (body)
alog-maps.adb:44:8 (label)
alog-policy_db.adb:73:27 (reference)

Calls:

Element defined at a-cohama.ads:235:13
To_Unbounded_String defined at a-strunb.ads:57:13
Returns the loglevel element for given key.

Element

function Element 
(Position: Cursor)
return Log_Level;

References:

alog-maps.ads:47:13 (declaration)
alog-maps.adb:48:13 (body)
alog-maps.adb:51:8 (label)
alog-policy_db.adb:45:31 (reference)
alog-policy_db.adb:90:22 (reference)

Calls:

Element defined at a-cohama.ads:101:13
Returns the loglevel element at given position.

Find

function Find     
(Map: Wildcard_Level_Map;
Key: String)
return Cursor;

References:

alog-maps.ads:50:13 (declaration)
alog-maps.adb:55:13 (body)
alog-maps.adb:62:8 (label)
alog-maps.adb:104:23 (reference)
alog-maps.adb:115:29 (reference)

Called by:

Lookup defined at alog-maps.ads:57:13

Calls:

Find defined at a-cohama.ads:226:13
To_Unbounded_String defined at a-strunb.ads:57:13
Returns the position for an element with specified key. If no element is found No_Element is returned.

Lookup

function Lookup     
(Map: Wildcard_Level_Map;
Key: String)
return Cursor;

References:

alog-maps.ads:57:13 (declaration)
alog-maps.adb:94:13 (body)
alog-maps.adb:131:8 (label)
alog-policy_db.adb:42:32 (reference)
alog-policy_db.adb:87:32 (reference)

Calls:

Find defined at alog-maps.ads:50:13
Returns the position of the element with the closest match to given key. This function considers wildcards when searching for an element. Example: Key | Element ------------------- Foo.* | Debug Foo.Bar | Alert A lookup for "Foo.Foo" has no exact match. The next closest match is "Foo.*" which will return the Debug element. Looking for "Foo" will return Debug since it matches the wildcard "Foo.*". If no exact and wildcard match is found No_Element is returned.

Insert

procedure Insert     
(Map: in out Wildcard_Level_Map;
Key: String;
Item: Log_Level);

References:

alog-maps.ads:75:14 (declaration)
alog-helpers.adb:146:37 (reference)
alog-maps.adb:66:14 (body)
alog-maps.adb:83:8 (label)
alog-policy_db.adb:118:20 (reference)

Calls:

Insert defined at a-cohama.ads:129:14
Replace_Element defined at a-cohama.ads:104:14
To_Unbounded_String defined at a-strunb.ads:57:13
Insert given key/item pair into map. If given key is already present the associated item is replaced.

Clear

procedure Clear 
(Map: in out Wildcard_Level_Map);

References:

alog-maps.ads:82:14 (declaration)
alog-maps.adb:30:14 (body)
alog-maps.adb:33:8 (label)
alog-policy_db.adb:101:20 (reference)

Calls:

Clear defined at a-cohama.ads:95:14
Clears the wildcard map.

Length

function Length 
(Map: Wildcard_Level_Map)
return Natural;

References:

alog-maps.ads:85:13 (declaration)
alog-maps.adb:87:13 (body)
alog-maps.adb:90:8 (label)

Calls:

Length defined at a-cohama.ads:89:13
Return the number of elements in the map.