Changeset 202 for trunk/lib/Stats.h


Ignore:
Timestamp:
Sep 10, 2006, 9:39:53 AM (15 years ago)
Author:
Peter Johansson
Message:

refs #70 added Map containing empty line stats in Stats class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Stats.h

    r198 r202  
    7777
    7878    ///
     79    ///
     80    ///
     81    inline u_int empty(void) const { return accumulated(empty_).back(); }
     82
     83    ///
     84    ///
     85    ///
     86    inline u_int empty(const std::string& user) const
     87    { return accumulated(empty_, user).back(); }
     88
     89    ///
    7990    ///
    8091    ///
     
    92103    ///
    93104    inline void reset(void)
    94     { code_.clear(); comments_.clear(); total_.clear(); authors_.clear();}
     105    {
     106      code_.clear(); comments_.clear(); empty_.clear(); total_.clear();
     107      authors_.clear();}
    95108
    96109    ///
     
    156169    Map_ code_;
    157170    Map_ comments_;
     171    Map_ empty_;
    158172    Map_ total_;
    159173  };
Note: See TracChangeset for help on using the changeset viewer.