commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/geas/doc odmg.txt


From: Daniel E. Baumann
Subject: gnue/geas/doc odmg.txt
Date: Tue, 12 Feb 2002 08:02:38 -0500

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     Daniel E. Baumann <address@hidden>      02/02/12 08:02:36

Modified files:
        geas/doc       : odmg.txt 

Log message:
        Add Set and Bag collection type interfaces and notes.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/geas/doc/odmg.txt.diff?tr1=1.5&tr2=1.6&r1=text&r2=text

Patches:
Index: gnue/geas/doc/odmg.txt
diff -c gnue/geas/doc/odmg.txt:1.5 gnue/geas/doc/odmg.txt:1.6
*** gnue/geas/doc/odmg.txt:1.5  Mon Feb 11 02:35:53 2002
--- gnue/geas/doc/odmg.txt      Tue Feb 12 08:02:36 2002
***************
*** 431,437 ****
          // the argument object
          void      replace_element(in Object element)
                                    raises(InvalidCollectionType);
- 
        };
  
        interface BidirectionalIterator: Iterator
--- 431,436 ----
***************
*** 441,444 ****
          // Decrements the iterator to the previous element in the iteration
          void      previous_position() raises(NoMoreElements);
        };
!                 
--- 440,501 ----
          // Decrements the iterator to the previous element in the iteration
          void      previous_position() raises(NoMoreElements);
        };
! 
!     Set Objects
!     ===========
!     - set object is an unordered collection of elements, with no
!     duplicates allowed
!       interface SetFactory: ObjectFactory
!       {
!         Set      new_of_size(in long size);
!       };
! 
!       interface Set: Collection
!       {
!         attribute set<t> value;
! 
!         // These methods return a new result Set object after applying the
!         // mathematical operation     
!         Set       create_union(in Set other_set);
!         Set       create_intersection(in Set other_set);
!         Set       create_difference(in Set other_set);
! 
!         // Subsetting and supersetting boolean tests
!         boolean   is_subset_of(in Set other_set);
!         boolean   is_proper_subset_of(in Set other_set);
!         boolean   is_superset_of(in Set other_set);
!         boolean   is_proper_superset_of(in Set other_set);
!       };
! 
!     - Set refines semantics of 'insert_element' operation inherited
!       from Collection supertype, if object passed as argument to the
!       'insert_element' operation is not already a member of the set,
!       the object is added to the set, otherwise the set remains
!       unchanged
! 
!     Bag Objects
!     ===========
!     - an unordered collection of objects that may contain duplicates
! 
!       interface BagFactory: ObjectFactory
!       {
!         attribute     bag<t> value;
! 
!         // Calculates the number of times a specific element occurs in
!         // the Bag
!         unsigned long occurrences_of(in Object element);
! 
!         // These methods return a new result Bag object after applying the
!         // mathematical operation     
!         Bag           create_union(in Bag other_bag);
!         Bag           create_intersection(in Bag other_bag);
!         Bag           create_difference(in Bag other_bag);
!      };
!       
!     - Bag refines semantics of 'insert_element' and 'remove_element'
!       operation inherited from Collection supertype. 'insert_element'
!       operation inserts into the 'Bag' object the element passed as an
!       argument , if the element is already a member of the bag, it is
!       inserted another time increasing the multiplicity in the
!       bag. 'remove_element' operation removes one occurrence of the
!       specified element from the bag.
\ No newline at end of file



reply via email to

[Prev in Thread] Current Thread [Next in Thread]