ubit
Public Member Functions | Static Public Attributes | List of all members
ubit::UFlag Class Reference

Flagging conditions. More...

#include <uflag.hpp>

Inheritance diagram for ubit::UFlag:
ubit::UCond

Public Member Functions

virtual bool verifies (const UUpdateContext &, const UElem &) const
 
- Public Member Functions inherited from ubit::UCond
virtual bool operator== (const UCond &c) const
 
virtual bool operator!= (const UCond &c) const
 
virtual const UCondmatches (const UCond &c) const
 
virtual UOntoOn ()
 
virtual const UOntoOn () const
 
virtual void setParentModes (UElem &parent) const
 

Static Public Attributes

static const UFlag none
 

Detailed Description

Flagging conditions.

for specifying conditional objets that are only active when this condition is verified. Works in conbination with UFlagdef. Example:

const UFlag showStores, showMuseums;
  UBox& stores = ...;  // whatever
  UBox& museums = ...; // whatever
  UBox& scene = ubox( showStores/stores + showMuseums/museums );
  // the stores appear in this box (the museums are ignored)
  UBox& scene_with_stores  = ubox( uflagdef(showStores) + scene);
  // the museums appear in this box (the stores are ignored)
  UBox& scene_with_museums = ubox( uflagdef(showMuseums) + scene);

!Warning: UFlag objects must not be deleted! See also: UFlagdef, UPropdef.


The documentation for this class was generated from the following files: