Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 5 and Version 6 of code/doc/ClassTreeMask


Ignore:
Timestamp:
Feb 27, 2008, 10:35:49 PM (17 years ago)
Author:
landauf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/doc/ClassTreeMask

    v5 v6  
    111111ClassTreeMask mymask;
    112112mymask.exclude(Class(A1));
    113 mymask.include(Class(A1));
     113mymask.include(Class(A1B1));
    114114}}}
    115115
     
    136136//  -> A1B1 stays included
    137137
     138ClassTreeMask mymask;
     139mymask.exclude(Class(A1));
     140mymask.include(Class(A1B1));
    138141mymask.exclude(Class(BaseObject), false);
     142}}}
     143
     144=== Clean true and false ===
     145
     146[[Image(example1.gif, 200, right)]]
     147{{{
     148#!cpp
     149// Create a new mask and explicitly include BaseObject
     150// Then include A2 too with clean = true (this is default)
     151// The resulting mask includes everything - the include rule of A2 had no effect
     152
     153ClassTreeMask mymask;
     154mymask.include(Class(BaseObject))
     155mymask.include(Class(A2), true, true)
     156}}}
     157
     158[[Image(example6.gif, 200, right)]]
     159{{{
     160#!cpp
     161// Now exclude the BaseObject without overwrite
     162// This excludes everything, because only the include rule of of BaseObject was
     163// saved, and now this rule was changed to exclude.
     164
     165mymask.exclude(Class(BaseObject), false)
    139166}}}
    140167
    141168[[br]]
    142169[[br]]
     170
     171[[Image(example8.gif, 200, right)]]
     172{{{
     173#!cpp
     174// Instead of this we create a new mask again and explicitly include BaseObject
     175// This time include A2 with clean = false
     176// The resulting mask includes still everything, but the include rule of
     177// A2 is saved
     178
     179ClassTreeMask mymask;
     180mymask.include(Class(BaseObject))
     181mymask.include(Class(A2), true, false)
     182}}}
     183
     184[[Image(example9.gif, 200, right)]]
     185{{{
     186#!cpp
     187// Now exclude the BaseObject without overwrite
     188// This excludes everything except A2, because the include rule of A2 was saved
     189// and not overwritten
     190
     191mymask.exclude(Class(BaseObject), false)
     192}}}
     193
     194[[br]]
    143195[[br]]
    144196
    145 === Clean true and false ===
    146 
     197=== Inclusion and exclusion of interfaces ===