Changeset 1003 for trunk/lib/Stats.h


Ignore:
Timestamp:
Jan 2, 2010, 3:35:57 AM (12 years ago)
Author:
Peter Johansson
Message:

merging release 0.7.2. Delta 0.7.2 - 0.7.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Stats.h

    r978 r1003  
    77  Copyright (C) 2005 Peter Johansson
    88  Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
     9  Copyright (C) 2009, 2010 Peter Johansson
    910
    1011  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    218219    // that all old cache files are obsolete.
    219220    inline std::string cache_check_str(void) const
     221    {return "CACHE FILE VERSION 7";}
     222
     223    inline std::string prev_cache_check_str(void) const
    220224    {return "CACHE FILE VERSION 6";}
    221225
     
    225229    unsigned int get_back(const Author2Vector&, std::string user) const;
    226230    void load(std::istream& is, Author2Vector& m);
     231    /**
     232       Finds the largets element by iterating through the entire
     233       vector. Inherited classes should implement their own version
     234       when it is possible to get the largest element in faster than
     235       in linear time.
     236
     237       \return the largest largest element in \a v.
     238    */
     239    virtual unsigned int max_element(const std::vector<unsigned int>& v) const;
     240
    227241    void print(std::ostream& os, const Author2Vector& m) const;
    228242
Note: See TracChangeset for help on using the changeset viewer.