ENH: allow use of FixedList<label,N> for bitSet construct/set/unset

- allows direct 'hashing' of fixed lists. Eg, triFace
This commit is contained in:
Mark Olesen
2018-08-01 13:01:43 +02:00
parent 35facb8208
commit 80f4ff87dd
3 changed files with 74 additions and 0 deletions

View File

@ -73,6 +73,20 @@ int main(int argc, char *argv[])
bitSet set2(100, { -1, 10, 25, 45});
Info<<"bitSet(label, labels): "; report(set2, true);
{
FixedList<label, 4> locs({ -1, 3, 4, 12});
bitSet set3a(20, locs);
Info<<"bitSet(FixedList<label>): "; report(set3a, true);
bitSet set3b(locs);
Info<<"bitSet(FixedList<label>): "; report(set3b, true);
set3b.unset(FixedList<label, 3>({ 1, 2, 3}));
Info<<"bitSet unset(FixedList<label>): "; report(set3b, true);
}
Info<< "End\n" << endl;
return 0;