Set of unsigned values, stored in compressed form. More...
#include <mi32/unsignedset.h>
Set of unsigned values, stored in compressed form.
| UNSIGNEDSET::UNSIGNEDSET | ( | ) |
Default constructor.
| UNSIGNEDSET::~UNSIGNEDSET | ( | ) |
Destructor.
Add range of 64-bit item numbers to set.
To maintain set in "compressed" form, items must be added in ascending order.
| min | Minimum item number | |
| max | Maximum item number |
Add range of 64-bit item numbers to set.
To maintain set in "compressed" form, items must be added in ascending order.
| min | Minimum item number | |
| max | Maximum item number |
Add range of item numbers to set.
To maintain set in "compressed" form, items must be added in ascending order.
| min | Minimum item number | |
| max | Maximum item number |
Add range of item numbers to set.
To maintain set in "compressed" form, items must be added in ascending order.
| min | Minimum item number | |
| max | Maximum item number |
Add single 64-bit item number to set.
To maintain set in "compressed" form, items must be added in ascending order.
| num | Item number to add |
Add single 64-bit item number to set.
To maintain set in "compressed" form, items must be added in ascending order.
| num | Item number to add |
Add single item number to set.
To maintain set in "compressed" form, items must be added in ascending order.
| num | Item number to add |
Add single item number to set.
To maintain set in "compressed" form, items must be added in ascending order.
| num | Item number to add |
Add single item number to set.
To maintain set in "compressed" form, items must be added in ascending order.
| num | Item number to add |
| ERRVALUE UNSIGNEDSET::Assign | ( | const BITSET_UNOWNED & | bitset | ) |
Assign from BITSET.
| bitset | Set to assign from |
| ERRVALUE UNSIGNEDSET::Assign | ( | const UNSIGNEDSET & | set | ) |
Assign set from another.
| set | Set to assign from |
| ERRVALUE UNSIGNEDSET::AttachCompressed | ( | SIMPLE_ARRAY< UINT8 > & | Data | ) |
Attach set to compressed data, taking ownership.
Any iterators referencing the set will become invalid.
| Data | Compressed data array, will be exchanged with existing data. |
Attach set to compressed data, taking ownership.
Any iterators referencing the set will become invalid.
| pData | Pointer to compressed data, returned as NULL | |
| BufSize | Size of data in bytes |
| void UNSIGNEDSET::Clear | ( | ) |
Clear the set.
Any iterators referencing the set will become invalid.
| ERRVALUE UNSIGNEDSET::Compress | ( | ) |
Compress this set if not already.
| bool UNSIGNEDSET::Contains | ( | INT64 | ItemNum | ) | const [inline] |
Determine if set contains specified 64-bit item number.
This may be very inefficient for compressed sets, use of iterator is generally faster if multiple items are being tested. If use of iterator is not practical and multiple calls to Contains might be made, using DecompressForContains can improve performance.
| bool UNSIGNEDSET::Contains | ( | UINT64 | ItemNum | ) | const |
Determine if set contains specified 64-bit item number.
This may be very inefficient for compressed sets, use of iterator is generally faster if multiple items are being tested. If use of iterator is not practical and multiple calls to Contains might be made, using DecompressForContains can improve performance.
| bool UNSIGNEDSET::Contains | ( | INT32 | ItemNum | ) | const [inline] |
Determine if set contains specified item number.
This may be very inefficient for compressed sets, use of iterator is generally faster if multiple items are being tested. If use of iterator is not practical and multiple calls to Contains might be made, using DecompressForContains can improve performance.
| bool UNSIGNEDSET::Contains | ( | UINT32 | ItemNum | ) | const |
Determine if set contains specified item number.
This may be very inefficient for compressed sets, use of iterator is generally faster if multiple items are being tested. If use of iterator is not practical and multiple calls to Contains might be made, using DecompressForContains can improve performance.
| bool UNSIGNEDSET::Contains | ( | UINT16 | ItemNum | ) | const [inline] |
Determine if set contains specified item number.
This may be very inefficient for compressed sets, use of iterator is generally faster if multiple items are being tested. If use of iterator is not practical and multiple calls to Contains might be made, using DecompressForContains can improve performance.
| UINT64 UNSIGNEDSET::CountItems | ( | ) | const |
Count number of items in set.
| ERRVALUE UNSIGNEDSET::Decompress | ( | ) |
Decompress this set if not already.
| ERRVALUE UNSIGNEDSET::DecompressForContains | ( | ) |
Decompress if will make more efficient for multiple calls to Contains().
| void UNSIGNEDSET::Exchange | ( | UNSIGNEDSET & | other | ) |
Exchange contents of two sets (efficiently).
Any iterators referencing either set will become invalid.
| other | Set to exchange with |
Get as BITSET.
| bitset | Bit set to contain results | |
| NumEntries | Number of entries to size bitset to |
| const SIMPLE_ARRAY<UINT8>& UNSIGNEDSET::GetCompressed | ( | ) |
Get compressed data array.
Returned array will be empty if set is not compressed.
| UINT64 UNSIGNEDSET::GetFirstItem | ( | ) | const [inline] |
Get first item in set.
| UINT64 UNSIGNEDSET::GetLastItem | ( | ) | const [inline] |
Get last item in set.
| ERRVALUE UNSIGNEDSET::Intersect | ( | const UNSIGNEDSET & | rhs | ) |
Intersect this set with another, resulting in set containing items that exist in BOTH sets.
This set may become decompressed as a result of this operation. Any iterators referencing this set will become invalid.
| bool UNSIGNEDSET::IsCompressed | ( | ) | const [inline] |
Determine if set is "compressed".
| bool UNSIGNEDSET::IsEmpty | ( | ) | const [inline] |
Determine if set is empty.
| ERRVALUE UNSIGNEDSET::LoadCompressed | ( | const SIMPLE_ARRAY< UINT8 > & | Data | ) | [inline] |
Load set from compressed data array.
Any iterators referencing the set will become invalid.
| Data | Array of compressed data |
Load set from compressed data.
Any iterators referencing the set will become invalid.
| pData | Pointer to compressed data | |
| BufSize | Size of data in bytes |
Remove range of 64-bit item numbers to set.
Any iterators referencing this set will become invalid.
| min | Minimum item number | |
| max | Maximum item number |
Remove range of 64-bit item numbers to set.
Any iterators referencing this set will become invalid.
| min | Minimum item number | |
| max | Maximum item number |
Remove range of item numbers to set.
Any iterators referencing this set will become invalid.
| min | Minimum item number | |
| max | Maximum item number |
Remove range of item numbers to set.
Any iterators referencing this set will become invalid.
| min | Minimum item number | |
| max | Maximum item number |
| ERRVALUE UNSIGNEDSET::RemoveSet | ( | const UNSIGNEDSET & | set | ) |
Remove set of items from this set.
Any iterators referencing this set will become invalid.
| set | Set of items to remove |
Remove single 64-bit item number to set.
Any iterators referencing this set will become invalid.
| num | Item number to remove |
Remove single 64-bit item number to set.
Any iterators referencing this set will become invalid.
| num | Item number to remove |
Remove single item number to set.
Any iterators referencing this set will become invalid.
| num | Item number to remove |
Remove single item number to set.
Any iterators referencing this set will become invalid.
| num | Item number to remove |
Set whether set contains specified 64-bit item.
Any iterators referencing this set may become invalid.
| num | Item number | |
| inset | True to add to set, false to remove |
Set whether set contains specified 32-bit item.
Any iterators referencing this set may become invalid.
| num | Item number | |
| inset | True to add to set, false to remove |
Toggle range of 64-bit item numbers to set.
Any iterators referencing this set will become invalid.
| min | Minimum item number | |
| max | Maximum item number |
Toggle range of item numbers to set.
Any iterators referencing this set will become invalid.
| min | Minimum item number | |
| max | Maximum item number |
| int UNSIGNEDSET::ToggleSingle | ( | UINT64 | num | ) |
Toggle single item number in set.
Any iterators referencing this set will become invalid.
| num | Item number to toggle |
| ERRVALUE UNSIGNEDSET::Union | ( | const UNSIGNEDSET & | rhs | ) |
Union this set with another, resulting in set containing items that exist in EITHER set.
This set may become decompressed as a result of this operation. Any iterators referencing this set will become invalid.
| ERRVALUE UNSIGNEDSET::UnionExclusive | ( | const UNSIGNEDSET & | rhs | ) |
Exclusive union of this set with another, resulting in set containint items that exist in EITHER set but not both.
This set may become decompressed as a result of this operation. Any iterators referencing this set will become invalid.
1.6.1