Changeset 14 for trunk/lib/Directory.cc


Ignore:
Timestamp:
Dec 30, 2005, 3:57:47 PM (17 years ago)
Author:
Peter Johansson
Message:

adding Stats class and removed pointer from node to its mother(dir), which enforced some changes here and there

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Directory.cc

    r10 r14  
    5858
    5959
    60   bool Directory::parse(void)
     60  const Stats& Directory::parse(void)
    6161  {
    62     // Jari, where is the include for for_each?
    63     for_each(daughters_.begin(),daughters_.end(), std::mem_fun(&Node::parse));
    64     return true;
     62    // calling svn info;
     63    info();
     64    stats_.reset();
     65
     66    for (size_t i = 0; i<daughters_.size(); i++)
     67      stats_ += daughters_[i]->parse();
     68    return stats_;
    6569  }
    6670
Note: See TracChangeset for help on using the changeset viewer.