CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
catalog::DeltaCounters Class Reference

#include <catalog_counters.h>

Inheritance diagram for catalog::DeltaCounters:
Collaboration diagram for catalog::DeltaCounters:

Public Member Functions

void PopulateToParent (DeltaCounters *parent) const
 
void RemoveFromSubtree (const DeltaCounters &child)
 
void Increment (const DirectoryEntry &dirent)
 
void Decrement (const DirectoryEntry &dirent)
 
- Public Member Functions inherited from catalog::TreeCountersBase< DeltaCounters_t >
DeltaCounters_t Get (const std::string &key) const
 
bool ReadFromDatabase (const CatalogDatabase &database, const LegacyMode::Type legacy=LegacyMode::kNoLegacy)
 
bool WriteToDatabase (const CatalogDatabase &database) const
 
bool InsertIntoDatabase (const CatalogDatabase &database) const
 
void SetZero ()
 
std::map< std::string,
DeltaCounters_t
GetValues () const
 
std::string GetCsvMap () const
 

Private Member Functions

void ApplyDelta (const DirectoryEntry &dirent, const int delta)
 

Friends

class Counters
 

Additional Inherited Members

- Public Attributes inherited from catalog::TreeCountersBase< DeltaCounters_t >
Fields self
 
Fields subtree
 
- Protected Types inherited from catalog::TreeCountersBase< DeltaCounters_t >
typedef std::map< std::string,
const DeltaCounters_t * > 
FieldsMap
 
- Protected Member Functions inherited from catalog::TreeCountersBase< DeltaCounters_t >
FieldsMap GetFieldsMap () const
 

Detailed Description

Definition at line 135 of file catalog_counters.h.

Member Function Documentation

void catalog::DeltaCounters::ApplyDelta ( const DirectoryEntry dirent,
const int  delta 
)
private

Definition at line 12 of file catalog_counters.cc.

Referenced by Decrement(), and Increment().

Here is the call graph for this function:

Here is the caller graph for this function:

void catalog::DeltaCounters::Decrement ( const DirectoryEntry dirent)
inline

Definition at line 142 of file catalog_counters.h.

Referenced by catalog::WritableCatalog::RemoveEntry().

Here is the call graph for this function:

Here is the caller graph for this function:

void catalog::DeltaCounters::Increment ( const DirectoryEntry dirent)
inline

Definition at line 141 of file catalog_counters.h.

Here is the call graph for this function:

void catalog::DeltaCounters::RemoveFromSubtree ( const DeltaCounters child)

Definition at line 44 of file catalog_counters.cc.

Referenced by catalog::WritableCatalog::RemoveFromParent().

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class Counters
friend

Definition at line 136 of file catalog_counters.h.


The documentation for this class was generated from the following files: