Added RGAbstractContainer>>addElements:
authorJan Vrany <jan.vrany@fit.cvut.cz>
Wed, 02 Sep 2015 09:18:30 +0100
changeset 4 90637b709fa9
parent 3 ed5aae792d24
child 5 5cc2caa88b23
Added RGAbstractContainer>>addElements:
RGAbstractContainer.st
--- a/RGAbstractContainer.st	Mon Aug 31 14:01:56 2015 +0100
+++ b/RGAbstractContainer.st	Wed Sep 02 09:18:30 2015 +0100
@@ -12,6 +12,7 @@
 RGAbstractContainer comment:'This is the abstract class for container-based elements.
Elements are separated in groups by kind (e.g classes, methods, pools, etc.)
Subclasses have to define the kind of collection for a particular group of entities.
For a container the use of a dictionary or another collection (e.g. SortedCollection) to store group of elements is independent.

'
 !
 
+
 !RGAbstractContainer methodsFor:'accessing'!
 
 elements
@@ -34,6 +35,12 @@
         ifFalse:[ aCollection add: anObject ]
 !
 
+addElements: aCollection
+    aCollection do:[:each | each addElement: each ]
+
+    "Created: / 01-09-2015 / 21:39:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
 removeElement: anObject
 
     anObject removeFromContainer: self
@@ -127,3 +134,10 @@
         ifFalse:[ aCollection anySatisfy: [ :each| each name = elementName asSymbol ] ]
 ! !
 
+!RGAbstractContainer class methodsFor:'documentation'!
+
+version_HG
+
+    ^ '$Changeset: <not expanded> $'
+! !
+