ENH: topoSetSource::SUBTRACT enum action (#1060)

- old 'DELETE' enum was easily confused with 'REMOVE', which removes
  the set, not the elements from the set.

- provide corresponding subtractSet() method

STYLE: HashSet set/unset instead of insert/erase methods in topoSetSource

- simplifies switching to/from bitSet storage
This commit is contained in:
Mark Olesen
2018-10-30 15:09:44 +00:00
parent 9b638f9a71
commit 7325e3ac7d
79 changed files with 288 additions and 283 deletions

View File

@ -1,6 +1,6 @@
cellSet c0 new
cellSet c0 invert
cellSet c0 delete boxToCell (0.4 0.1 0.1) (0.6 0.3 0.3)
cellSet c0 delete boxToCell (0.4 0.1 0.4) (0.6 0.3 0.6)
cellSet c0 delete boxToCell (0.4 0.4 0.1) (0.6 0.6 0.3)
cellSet c0 delete boxToCell (0.4 0.4 0.4) (0.6 0.6 0.6)
cellSet c0 subtract boxToCell (0.4 0.1 0.1) (0.6 0.3 0.3)
cellSet c0 subtract boxToCell (0.4 0.1 0.4) (0.6 0.3 0.6)
cellSet c0 subtract boxToCell (0.4 0.4 0.1) (0.6 0.6 0.3)
cellSet c0 subtract boxToCell (0.4 0.4 0.4) (0.6 0.6 0.6)

View File

@ -30,7 +30,7 @@ actions
{
name c0;
type cellSet;
action delete;
action subtract;
source boxToCell;
sourceInfo
{
@ -40,7 +40,7 @@ actions
{
name c0;
type cellSet;
action delete;
action subtract;
source boxToCell;
sourceInfo
{
@ -50,7 +50,7 @@ actions
{
name c0;
type cellSet;
action delete;
action subtract;
source boxToCell;
sourceInfo
{
@ -60,7 +60,7 @@ actions
{
name c0;
type cellSet;
action delete;
action subtract;
source boxToCell;
sourceInfo
{