Go to Overview over all GrAL packages.
Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

FlipOnReadMutator Class Reference

toggles the boolean value of v. More...

#include <mutator.h>

Inheritance diagram for FlipOnReadMutator:

Inheritance graph
[legend]
Collaboration diagram for FlipOnReadMutator:

Collaboration graph
[legend]
List of all members.

Public Methods

 FlipOnReadMutator (bool &flag)
virtual void read (std::istream &)
virtual void print (std::ostream &out) const
virtual void print (std::ostream &out, const std::string &name) const

Detailed Description

toggles the boolean value of v.

examples:

  Ctrl.add("toggle-binary", new FlipOnReadMutator(bin_flag));
  will flip the value of bin_flag if "toggle-binary" is read.

Definition at line 105 of file mutator.h.


Constructor & Destructor Documentation

FlipOnReadMutator::FlipOnReadMutator bool &    flag [inline]
 

Definition at line 108 of file mutator.h.


Member Function Documentation

virtual void FlipOnReadMutator::read std::istream &    [inline, virtual]
 

Reimplemented from TypedMutator< bool >.

Definition at line 109 of file mutator.h.

References TypedMutator< bool >::v.

virtual void FlipOnReadMutator::print std::ostream &    out const [inline, virtual]
 

Reimplemented from TypedMutator< bool >.

Definition at line 110 of file mutator.h.

References TypedMutator< bool >::v.

virtual void FlipOnReadMutator::print std::ostream &    out,
const std::string &    name
const [inline, virtual]
 

Reimplemented from TypedMutator< bool >.

Definition at line 111 of file mutator.h.


The documentation for this class was generated from the following file:
Copyright (c) Guntram Berti 1997-2002. See the GrAL Homepage for up-to-date information.

Generated at Tue Feb 26 15:57:09 2002 for External control by doxygen 1.2.11-20011104 written by Dimitri van Heesch, © 1997-2000