Changeset a2952c in git


Ignore:
Timestamp:
Feb 10, 1998, 10:51:02 AM (26 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
a31a46c44b0893d78ff72ccce3006d4282514d1f
Parents:
abc625ea7218c401cfe020a534d5f30c28d85f75
Message:
	* cf_switches.h: doc fix


git-svn-id: file:///usr/local/Singular/svn/trunk@1139 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/cf_switches.h

    rabc625 ra2952c  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: cf_switches.h,v 1.6 1998-01-16 18:08:44 schmidt Exp $ */
     2/* $Id: cf_switches.h,v 1.7 1998-02-10 09:51:02 schmidt Exp $ */
    33
    44#ifndef INCL_CF_SWITCHES_H
     
    2727// class CFSwitches - manages boolean switches.
    2828//
    29 // An object of type CFSwitches is simply an array of booleans
    30 // with some comfortable access methods (On, Off).  Each object
    31 // may contain CFSwitchesMax switches.  When a new object of type
    32 // CFSwitches is created, all its switches are turned off.
     29// An object of class `CFSwitches' is simply an array of booleans
     30// with some comfortable access methods (`On()', `isOn()', etc.).
     31// Each object may contain `CFSwitchesMax' switches.  When a new
     32// object of type `CFSwitches' is created, all its switches are
     33// turned off.
    3334//
    3435// Note: No range checking is done when accessing switches.
     
    4445// bool isOff ( int s ) const
    4546//
    46 // On(), Off() - switch s on or off, resp.
     47// On(), Off() - switch `s' on or off, resp.
    4748//
    48 // isOn(), isOff() - return true iff s is on or off, resp.
     49// isOn(), isOff() - return true iff `s' is on or off, resp.
    4950//
    5051//}}}
     
    5354private:
    5455    bool switches [CFSwitchesMax];
     56
    5557public:
     58    // constructors, destructors
    5659    CFSwitches ();
    5760    ~CFSwitches () {}
    5861
     62    // selectors
    5963    void On ( int s ) { switches[s] = true; }
    6064    void Off ( int s ) { switches[s] = false; }
Note: See TracChangeset for help on using the changeset viewer.