IF Computer > MINERVA > Manual > Reference > Predicates > Blackboards > bb_clear/2

bb_clear/2

MINERVA
ifcomputer logo
f
Expert Services on the Web

Clears a blackboard.

bb_clear(+Board, +Key)

bb_clear/2 removes all elements from the inner blackboard identified with Key, belonging to the outer blackboard Board. This predicate is equivalent to:

bb_get(Board, Key, SubBoard) -> bb_clear(SubBoard) ; true

Arguments

Board              blackboard
Key                ground term

Examples

    bb_create(SparseArray),
    bb_put(SparseArray, 7, 563, 10),
    % elements: 7 -> { 365 -> 10 }
    bb_put(SparseArray, 7, 43, 15),
    % elements: 7 -> { 365 -> 10, 43 -> 15 }
    bb_put(SparseArray, 365, 5, 20),
    % elements: 7 -> { 365 -> 10, 43 -> 15 }, 365 -> { 5 -> 20 }
    bb_clear(SparseArray, 7)
    % elements: 7 -> {} , 365 -> { 5 -> 20 }

Standard

This predicate is not part of the ISO-Prolog Standard.

See also

bb_clear/1, bb_clear_2/2, bb_create/1, bb_contains/2, bb_contains_key/2, bb_get/3, bb_get_4/4, bb_put/3, bb_put_4/4, bb_remove/2. bb_keys/2. bb_elements/2.

document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/blackboard/bb_clear_2/print_de.html
published 2008/11/17 update 2001/2/7 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 start (AT) ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
Back> managed with ubiCMS