| 275 | |
| 276 | [[Image(testclass_tree_mask_1or2.gif, 200, right)]] |
| 277 | {{{ |
| 278 | #!cpp |
| 279 | // or-operator: |
| 280 | |
| 281 | ClassTreeMask result = mask1 + mask2; |
| 282 | }}} |
| 283 | |
| 284 | [[br]] |
| 285 | [[br]] |
| 286 | [[br]] |
| 287 | [[br]] |
| 288 | |
| 289 | [[Image(testclass_tree_mask_1and2.gif, 200, right)]] |
| 290 | {{{ |
| 291 | #!cpp |
| 292 | // and-operator: |
| 293 | |
| 294 | ClassTreeMask result = mask1 * mask2; |
| 295 | }}} |
| 296 | |
| 297 | [[br]] |
| 298 | [[br]] |
| 299 | [[br]] |
| 300 | [[br]] |
| 301 | |
| 302 | [[Image(testclass_tree_mask_1minus2.gif, 200, right)]] |
| 303 | {{{ |
| 304 | #!cpp |
| 305 | // minus-operator: |
| 306 | |
| 307 | ClassTreeMask result = mask1 - mask2; |
| 308 | }}} |
| 309 | |
| 310 | [[br]] |
| 311 | [[br]] |
| 312 | [[br]] |
| 313 | [[br]] |
| 314 | |
| 315 | |
| 316 | [[Image(testclass_tree_mask_1xor2.gif, 200, right)]] |
| 317 | {{{ |
| 318 | #!cpp |
| 319 | // xor-operator: |
| 320 | |
| 321 | ClassTreeMask result = mask1 ^ mask2; |
| 322 | }}} |
| 323 | |
| 324 | [[br]] |
| 325 | [[br]] |
| 326 | [[br]] |
| 327 | [[br]] |
| 328 | |
| 329 | [[Image(testclass_tree_mask_not1.gif, 200, right)]] |
| 330 | {{{ |
| 331 | #!cpp |
| 332 | // not-operator: |
| 333 | |
| 334 | ClassTreeMask result = !mask1; |
| 335 | }}} |
| 336 | |
| 337 | [[br]] |
| 338 | [[br]] |
| 339 | [[br]] |
| 340 | [[br]] |