Changeset 308a766 in git for Singular/Cache.h


Ignore:
Timestamp:
Nov 29, 2012, 11:02:36 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
05c3b87378ab3e8310b306f10a0eec4bd579ca9c894604cd8e2bd80d9c29cfc35d194404eaa0d476
Parents:
4b5098278b256cb9f73dc0b32dedd20101972d76
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-11-29 23:02:36+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-11-29 23:08:28+01:00
Message:
Fixing Frank's Minor stuff

add: forward declarations
fix: includes
fix: assert -> assume
fix: cout, printf -> use Print(S)
fix: removed using namespace std: in headers use std::
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/Cache.h

    r4b5098 r308a766  
    44#include <string>
    55#include <list>
    6 #include <assert.h>
    7 
    8 using namespace std;
     6
     7// #include <assert.h>
     8// using namespace std;
    99
    1010/*! \class Cache
     
    7575     * as long as the pair <c>key(_rank(i)) -->  value(_rank(i))</c>.
    7676     */
    77      list<int> _rank;
     77   std::list<int> _rank;
    7878 
    7979     /**
     
    8383     * in KeyClass.
    8484     */
    85      list<KeyClass> _key;
     85     std::list<KeyClass> _key;
    8686 
    8787     /**
     
    9191     * argument \c _key[i]).
    9292     */
    93      list<ValueClass> _value;
     93     std::list<ValueClass> _value;
    9494     
    9595     /**
    9696     * container for the weights of all cached values
    9797     */
    98      list<int> _weights;
     98     std::list<int> _weights;
    9999 
    100100     /**
     
    104104     * const, as the user would expect for these methods.
    105105     */
    106      mutable typename list<KeyClass>::const_iterator _itKey;
     106     mutable typename std::list<KeyClass>::const_iterator _itKey;
    107107     
    108108     /**
     
    112112     * const, as the user would expect for these methods.
    113113     */
    114      mutable typename list<ValueClass>::const_iterator _itValue;
     114     mutable typename std::list<ValueClass>::const_iterator _itValue;
    115115 
    116116     /**
     
    314314     *         string
    315315     */
    316      string toString () const;
     316   std::string toString () const;
    317317 
    318318     /**
     
    324324};
    325325
    326 #include <CacheImplementation.h>
     326#include "CacheImplementation.h"
    327327
    328328#endif
Note: See TracChangeset for help on using the changeset viewer.