Changeset f2e972 in git


Ignore:
Timestamp:
Sep 8, 1997, 1:13:43 PM (26 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
8e6674ec04c524b77f3d7fdc1570fddadfaa16c3
Parents:
62b35b6166c3ecaaa5f8435ff487c59e7c5533d1
Message:
	* cf_map.h: doc fix


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

Legend:

Unmodified
Added
Removed
  • factory/cf_map.h

    r62b35b6 rf2e972  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: cf_map.h,v 1.8 1997-08-28 07:22:39 schmidt Exp $ */
     2/* $Id: cf_map.h,v 1.9 1997-09-08 11:13:43 schmidt Exp $ */
    33
    44#ifndef INCL_CF_MAP_H
     
    4040//{{{ inline method docu
    4141//
    42 // Variable var() const
    43 // CanonicalForm subst() const
     42// Variable var () const
     43// CanonicalForm subst () const
    4444//
    4545// var(), subst() - selectors, return V and P, resp.
     
    5252    CanonicalForm S;
    5353public:
    54     MapPair( const Variable & v, const CanonicalForm & s ) : V(v), S(s) {}
    55     MapPair() : V(), S(1) {}
    56     MapPair( const MapPair & p ) : V(p.V), S(p.S) {}
    57     ~MapPair() {}
    58     MapPair& operator = ( const MapPair & p );
    59     Variable var() const { return V; }
    60     CanonicalForm subst() const { return S; }
     54    MapPair ( const Variable & v, const CanonicalForm & s ) : V(v), S(s) {}
     55    MapPair () : V(), S(1) {}
     56    MapPair ( const MapPair & p ) : V(p.V), S(p.S) {}
     57    ~MapPair () {}
     58    MapPair & operator = ( const MapPair & p );
     59    Variable var () const { return V; }
     60    CanonicalForm subst () const { return S; }
    6161#ifndef NOSTREAMIO
    62     friend ostream& operator << ( ostream& s, const MapPair & p );
     62    friend ostream & operator << ( ostream & s, const MapPair & p );
    6363#endif /* NOSTREAMIO */
    6464};
     
    7575// Use an object of class CFMap to insert 'values' into canonical
    7676// form.  Such a mapping is defined by a list of MapPairs (V -> S)
    77 // describing which canonical form S to insert for variable v.
     77// describing which canonical form S to insert for variable V.
    7878// Hereby, the substituted canonical forms are not subject to
    7979// further substitutions.
     
    8787  MPList P;
    8888public:
    89   CFMap() {}
    90   CFMap( const CanonicalForm & s ) : P( MapPair( Variable(), s ) ) {}
    91   CFMap( const Variable & v ) : P( MapPair( v, 1 ) ) {}
    92   CFMap( const Variable & v, const CanonicalForm & s ) : P( MapPair( v, s ) ) {}
    93   ~CFMap() {}
    94   CFMap( const CFList & L );
    95   CFMap( const CFMap & m ) : P( m.P ) {}
     89  CFMap () {}
     90  CFMap ( const CanonicalForm & s ) : P( MapPair( Variable(), s ) ) {}
     91  CFMap ( const Variable & v ) : P( MapPair( v, 1 ) ) {}
     92  CFMap ( const Variable & v, const CanonicalForm & s ) : P( MapPair( v, s ) ) {}
     93  ~CFMap () {}
     94  CFMap ( const CFList & L );
     95  CFMap ( const CFMap & m ) : P( m.P ) {}
    9696  CFMap & operator = ( const CFMap & m );
    97   void newpair( const Variable & v, const CanonicalForm & s );
     97  void newpair ( const Variable & v, const CanonicalForm & s );
    9898  CanonicalForm operator () ( const CanonicalForm & f ) const;
    9999#ifndef NOSTREAMIO
    100   friend ostream& operator << ( ostream& s, const CFMap & m );
     100  friend ostream & operator << ( ostream & s, const CFMap & m );
    101101#endif /* NOSTREAMIO */
    102102};
Note: See TracChangeset for help on using the changeset viewer.