14 self.regular_files += delta;
15 self.file_size += delta * dirent.
size();
17 self.chunked_files += delta;
18 self.chunked_file_size += delta * dirent.
size();
21 self.externals += delta;
22 self.external_file_size += delta * dirent.
size();
24 }
else if (dirent.
IsLink()) {
25 self.symlinks += delta;
27 self.specials += delta;
29 self.directories += delta;
62 parent_delta->
self.Add(
self);
63 parent_delta->
subtree.Subtract(
self);
68 return self.regular_files +
self.symlinks +
self.specials +
self.directories;
bool IsExternalFile() const
bool IsChunkedFile() const
void ApplyDelta(const DeltaCounters &delta)
static DeltaCounters Diff(const Counters &from, const Counters &to)
Counters_t GetSelfEntries() const
void AddAsSubtree(DeltaCounters *delta) const
void PopulateToParent(DeltaCounters *parent) const
Counters_t GetSubtreeEntries() const
void ApplyDelta(const DirectoryEntry &dirent, const int delta)
Counters_t GetAllEntries() const
void MergeIntoParent(DeltaCounters *parent_delta) const
void RemoveFromSubtree(const DeltaCounters &child)