COIN-OR::LEMON - Graph Library

Changeset 121:91c0fed3181e in lemon-main


Ignore:
Timestamp:
04/12/08 20:41:48 (17 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Change SubNoCounter? to NoSubCounter?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/counter.h

    r119 r121  
    3030{
    3131
    32   template<class P> class _SubNoCounter;
     32  template<class P> class _NoSubCounter;
    3333
    3434  template<class P>
     
    4242
    4343    typedef _SubCounter<_SubCounter<P> > SubCounter;
    44     typedef _SubNoCounter<_SubCounter<P> > SubNoCounter;
     44    typedef _NoSubCounter<_SubCounter<P> > NoSubCounter;
    4545
    4646    _SubCounter(P &parent)
     
    6565
    6666  template<class P>
    67   class _SubNoCounter
     67  class _NoSubCounter
    6868  {
    6969    P &_parent;
    7070  public:
    71     typedef _SubNoCounter<_SubNoCounter<P> > SubCounter;
    72     typedef _SubNoCounter<_SubNoCounter<P> > SubNoCounter;
     71    typedef _NoSubCounter<_NoSubCounter<P> > SubCounter;
     72    typedef _NoSubCounter<_NoSubCounter<P> > NoSubCounter;
    7373 
    74     _SubNoCounter(P &parent) :_parent(parent) {}
    75     _SubNoCounter(P &parent,std::string,std::ostream &)
     74    _NoSubCounter(P &parent) :_parent(parent) {}
     75    _NoSubCounter(P &parent,std::string,std::ostream &)
    7676      :_parent(parent) {}
    77     _SubNoCounter(P &parent,std::string)
     77    _NoSubCounter(P &parent,std::string)
    7878      :_parent(parent) {}
    79     _SubNoCounter(P &parent,const char *,std::ostream &)
     79    _NoSubCounter(P &parent,const char *,std::ostream &)
    8080      :_parent(parent) {}
    81     _SubNoCounter(P &parent,const char *)
     81    _NoSubCounter(P &parent,const char *)
    8282      :_parent(parent) {}
    83     ~_SubNoCounter() {}
    84     _SubNoCounter &operator++() { ++_parent; return *this;}
     83    ~_NoSubCounter() {}
     84    _NoSubCounter &operator++() { ++_parent; return *this;}
    8585    int operator++(int) { _parent++; return 0;}
    86     _SubNoCounter &operator--() { --_parent; return *this;}
     86    _NoSubCounter &operator--() { --_parent; return *this;}
    8787    int operator--(int) { _parent--; return 0;}
    88     _SubNoCounter &operator+=(int c) { _parent+=c; return *this;}
    89     _SubNoCounter &operator-=(int c) { _parent-=c; return *this;}
     88    _NoSubCounter &operator+=(int c) { _parent+=c; return *this;}
     89    _NoSubCounter &operator-=(int c) { _parent-=c; return *this;}
    9090    void reset(int) {}
    9191    void reset() {}
     
    118118    ///\todo document please.
    119119    ///
    120     typedef _SubNoCounter<Counter> SubNoCounter;
     120    typedef _NoSubCounter<Counter> NoSubCounter;
    121121
    122122    ///\e
     
    157157  {
    158158  public:
    159     typedef _SubNoCounter<NoCounter> SubCounter;
    160     typedef _SubNoCounter<NoCounter> SubNoCounter;
     159    typedef _NoSubCounter<NoCounter> SubCounter;
     160    typedef _NoSubCounter<NoCounter> NoSubCounter;
    161161
    162162    NoCounter() {}
Note: See TracChangeset for help on using the changeset viewer.