Class encapsulating a set of DBMDatabase::Id and an integer count for the number of such things within the set.
This package is part of the DBMDatabase manpage. For more information on the database see the DBMDatabase::Overview.
Copyright ©
1997 Curtis
E. Dyreson. All rights reserved. Please be aware of
the DBMDatabase::Licence and DBMDatabase::Version.
An IdSetWithCount is a data type for columns in a database DBMDatabase::Table. An IdSetWithCount cannot be used as a key.
- A reference to a list of Ids.
Construct a Set from a list of Ids
- The string to convert from (a byte image of an IdSetWithCount or DBMDatabase::IdList).
Construct a new IdSetWithCount from a byte image of an DBMDatabase::IdList or IdSetWithCount.
- An DBMDatabase::IdList
Construct a new IdSetWithCount from an DBMDatabase::IdList (basically, convert the list to a set).
Return the number of Ids in the set.
- Check if this DBMDatabase::Id is in the set.
Returns true if it is, false otherwise.
- The DBMDatabase::Id to remove from the set.
Delete an Id from the set.
- The DBMDatabase::Id to insert.
Inserts an DBMDatabase::Id into this set.
- The DBMDatabase::Id to insert.
- The count for this item.
Inserts an DBMDatabase::Id into this set with the indicated count. Careful, it overwrites existing count for element!
Return an enumeration of the IdSetWithCount. OK, we have to fake it in Perl since this is a Java concept (although now that I understand hash tables I think I can do it with each). So we will return the list of values in the table. Currently, only small sets should be enumerated.
Return an enumeration of the IdSetWithCount. OK, we have to fake it in Perl since this is a Java concept (although now that I understand hash tables I think I can do it with each). So we will return the list of values in the table. Currently, only small sets should be enumerated. We do this by sorting the list prior to enumerating it.
- The other DBMDatabase::IdSetWithCount.
Union this set with the other set, and update this set with the result.
- The other DBMDatabase::IdSetWithCount.
Union this set with the other set, and update this set with the result.
- The other DBMDatabase::IdSetWithCount.
Intersect this set with the other set, and return the result.
- The other DBMDatabase::IdSetWithCount.
Intersect this set with the other set, and update this set with the result.
Returns a reference to an array of Ids from the Set. Replicates an id for each count.
Create a formatted string of all the elements in the set
Convert to a byte array
Is this still needed? Just for requires.