From 406758342ee046707e5426f804c7b381a0728335 Mon Sep 17 00:00:00 2001 From: Georg Holzmann Date: Thu, 3 Nov 2005 20:40:40 +0000 Subject: additional methods: [getall(, [keys(, [values( svn path=/trunk/externals/grh/; revision=3832 --- PDContainer/help/help-h_multimap.pd | 132 +++++++++++++++++++----------------- 1 file changed, 70 insertions(+), 62 deletions(-) (limited to 'PDContainer/help/help-h_multimap.pd') diff --git a/PDContainer/help/help-h_multimap.pd b/PDContainer/help/help-h_multimap.pd index 4895db8..fecfff3 100755 --- a/PDContainer/help/help-h_multimap.pd +++ b/PDContainer/help/help-h_multimap.pd @@ -1,71 +1,71 @@ -#N canvas 556 0 813 872 10; -#X msg 82 407 add ge; +#N canvas 556 0 813 845 10; +#X msg 82 375 add ge; #X obj 33 24 cnv 15 404 54 empty empty empty 22 25 0 18 -1 -66577 0 ; #X obj 35 26 cnv 15 400 50 empty empty PDContainer 22 25 0 18 -228992 -66577 0; #X text 295 36 help file of; #X text 40 98 init arg: namespace; -#X msg 479 373 print; -#X msg 479 417 clear; -#X msg 479 655 help; -#X msg 479 314 getnamespace; -#X msg 479 455 clearall; -#X obj 479 708 print BBB; -#X obj 82 495 print AAA; -#X text 590 339 <- change namespace; -#X msg 479 338 namespace grix; -#X text 526 374 <- print all the data of the; -#X text 545 389 current namespace; -#X text 527 417 <- clear all the data of the; -#X text 548 432 current namespace; -#X text 547 457 <- clear all the data in all; -#X text 568 472 same containers (maybe; -#X text 570 487 you shouldn't use this); -#X text 579 316 <- get current namespace; -#X text 478 262 general operations:; -#X msg 82 381 add bla bal tuff; -#X msg 82 431 add 4 f 3; -#X msg 82 356 add \$1; -#X floatatom 82 318 5 0 0 0 - - -; -#X symbolatom 129 320 10 0 0 0 - - -; -#X msg 232 429 list damm 4345 it; -#X floatatom 232 335 5 0 0 0 - - -; -#X symbolatom 232 353 10 0 0 0 - - -; -#X msg 232 405 hacka 45; -#X msg 232 382 3 4 krschi; -#X text 110 293 key:; -#X text 242 304 value:; -#X obj 79 749 print AAA; -#X floatatom 79 572 5 0 0 0 - - -; -#X symbolatom 126 574 10 0 0 0 - - -; -#X text 136 541 get \, remove data:; -#X msg 79 610 get \$1; -#X msg 79 635 get bla bal tuff; -#X msg 79 661 get ge; -#X msg 79 685 get 4 f 3; -#X floatatom 222 576 5 0 0 0 - - -; -#X symbolatom 269 578 10 0 0 0 - - -; -#X msg 222 614 remove \$1; -#X msg 222 639 remove bla bal tuff; -#X msg 222 665 remove ge; -#X msg 222 689 remove 4 f 3; +#X msg 479 341 print; +#X msg 479 455 clear; +#X msg 479 693 help; +#X msg 479 282 getnamespace; +#X msg 479 493 clearall; +#X obj 479 747 print BBB; +#X obj 82 463 print AAA; +#X text 590 307 <- change namespace; +#X msg 479 306 namespace grix; +#X text 526 342 <- print all the data of the; +#X text 545 357 current namespace; +#X text 527 455 <- clear all the data of the; +#X text 548 470 current namespace; +#X text 547 495 <- clear all the data in all; +#X text 568 510 same containers (maybe; +#X text 570 525 you shouldn't use this); +#X text 579 284 <- get current namespace; +#X text 478 230 general operations:; +#X msg 82 349 add bla bal tuff; +#X msg 82 399 add 4 f 3; +#X msg 82 324 add \$1; +#X floatatom 82 286 5 0 0 0 - - -; +#X symbolatom 129 288 10 0 0 0 - - -; +#X msg 232 397 list damm 4345 it; +#X floatatom 232 303 5 0 0 0 - - -; +#X symbolatom 232 321 10 0 0 0 - - -; +#X msg 232 373 hacka 45; +#X msg 232 350 3 4 krschi; +#X text 110 261 key:; +#X text 242 272 value:; +#X obj 79 717 print AAA; +#X floatatom 79 540 5 0 0 0 - - -; +#X symbolatom 126 542 10 0 0 0 - - -; +#X text 136 509 get \, remove data:; +#X msg 79 578 get \$1; +#X msg 79 603 get bla bal tuff; +#X msg 79 629 get ge; +#X msg 79 653 get 4 f 3; +#X floatatom 222 544 5 0 0 0 - - -; +#X symbolatom 269 546 10 0 0 0 - - -; +#X msg 222 582 remove \$1; +#X msg 222 607 remove bla bal tuff; +#X msg 222 633 remove ge; +#X msg 222 657 remove 4 f 3; #X text 40 131 Multimaps are just like maps except that a key can be associated with several values. Multimap is a Sorted Associative Container and also a Multiple Associative Container \, meaning that there is no limit on the number of elements with the same key. (see also Map) ; #X text 275 53 ::: h_multimap :::; -#X obj 82 472 h_multimap dampta; -#X obj 79 726 h_multimap dampta; -#X obj 479 686 h_multimap dampta; -#X floatatom 136 782 5 0 0 0 - - -; -#X text 111 263 add data to the multimap:; -#X text 180 783 <- nr of values at the specific key; -#X msg 479 600 getsize; -#X text 566 613 outlet); -#X text 544 599 <- get the size (at 3rd; -#X obj 593 709 print size; +#X obj 82 440 h_multimap dampta; +#X obj 79 694 h_multimap dampta; +#X obj 479 724 h_multimap dampta; +#X floatatom 136 750 5 0 0 0 - - -; +#X text 111 231 add data to the multimap:; +#X text 180 751 <- nr of values at the specific key; +#X msg 479 638 getsize; +#X text 566 651 outlet); +#X text 544 637 <- get the size (at 3rd; +#X obj 593 747 print size; #X obj 500 24 cnv 15 204 120 empty empty empty 20 12 0 14 -66577 -66577 0; #X obj 502 26 cnv 15 200 116 empty empty ReadMe: 65 15 0 14 -262131 @@ -377,13 +377,19 @@ it at the back (so the size will increase); #X connect 2 0 0 0; #X connect 7 0 0 0; #X connect 8 0 0 0; -#X restore 479 515 pd read_save_possibilities; -#X text 517 536 different possiblities to read; -#X text 517 550 and write from and to files; -#X text 516 564 (XML and textfiles); -#X text 260 835 htttp://grh.mur.at/software/pdcontainer.html; -#X text 220 819 =%)!(%= PDContainer \, by Georg Holzmann +#X restore 479 553 pd read_save_possibilities; +#X text 517 574 different possiblities to read; +#X text 517 588 and write from and to files; +#X text 516 602 (XML and textfiles); +#X text 241 815 htttp://grh.mur.at/software/pdcontainer.html; +#X text 201 799 =%)!(%= PDContainer \, by Georg Holzmann \, 2004; +#X text 540 392 at the first outlet; +#X msg 479 378 keys; +#X text 519 378 <- dumps out all keys sequentially; +#X text 554 428 at the first outlet; +#X msg 479 414 values; +#X text 533 414 <- dumps out all values sequentially; #X connect 0 0 51 0; #X connect 5 0 53 0; #X connect 6 0 53 0; @@ -420,3 +426,5 @@ it at the back (so the size will increase); #X connect 53 2 60 0; #X connect 57 0 53 0; #X connect 66 0 53 0; +#X connect 73 0 53 0; +#X connect 76 0 53 0; -- cgit v1.2.1