| 54 | ClassTreeMask mymask; |
| 55 | }}} |
| 56 | |
| 57 | [[br]] |
| 58 | [[br]] |
| 59 | [[br]] |
| 60 | [[br]] |
| 61 | |
| 62 | [[Image(example2.gif, 200, right)]] |
| 63 | {{{ |
| 64 | #!cpp |
| 65 | // Now exclude A2 |
| 66 | |
| 67 | mymask.exclude(Class(A2)); |
| 68 | }}} |
| 69 | |
| 70 | |
| 71 | [[br]] |
| 72 | [[br]] |
| 73 | [[br]] |
| 74 | [[br]] |
| 75 | |
| 76 | [[Image(example3.gif, 200, right)]] |
| 77 | {{{ |
| 78 | #!cpp |
| 79 | // Include A2B1C1, A2B2C1 and A3B2 |
| 80 | |
| 81 | mymask.include(Class(A2B1C1)); |
| 82 | mymask.include(Class(A2B2C1)); |
| 83 | mymask.include(Class(A3B2)); |
| 84 | }}} |
| 85 | |
| 86 | [[br]] |
| 87 | [[br]] |
| 88 | |
| 89 | === Include single and exclude single === |
| 90 | |
| 91 | [[Image(example4.gif, 200, right)]] |
| 92 | {{{ |
| 93 | #!cpp |
| 94 | // Create a new mask and exclude only A2 but noth the following classes |
| 95 | |
| 96 | ClassTreeMask mymask; |
| 97 | mymask.excludeSingle(Class(A2)); |
| 98 | }}} |
| 99 | |