abstract class $CONTAINER{ETP} < $ELT{ETP},$STR
****
The basic abstract container type Does not have a create:SAME method, since this does not make sense for arrays and other indexible types, where the create should take SAME as an argument Inherits: elt!, str


Ancestors
$STR $ELT{_} $ELT

Descendants
$RO_BAG{_} $BAG{_} BAG{_} $RO_MULTIMAP{_,_}
$VMULTIMAP{_,_} $VMAP{_,_} VMAP{_,_} VMULTIMAP{_,_}
$RO_MAP{_,_} $MAP{_,_} MAP{_,_} $VBAG{_}
VBAG{_} $VSET{_} VSET{_} $RO_SET{_}
$RO_ARR{_} $ARR{_} ARRAY{_} FLIST{_}
FSTR



Public


Features
copy: SAME;
**** Return a copy of the current container
elt!:ETP;
**** Yield all the elements of self. The order is not defined. From $ELT{ETP}
has(e: ETP): BOOL;
**** pre ~void(self) True if the container contains the element "e"
is_empty:BOOL;
**** Returns true if the size of the container = 0
size: INT;
**** Number of elements contained
str:STR;
**** Yield a string version of self From STR

The Sather Home Page