Guitar
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
GitObjectCache Class Reference

#include <GitObjectManager.h>

Collaboration diagram for GitObjectCache:
Collaboration graph
[legend]

Classes

struct  Item
 

Public Member Functions

 GitObjectCache (std::mutex *mutex=nullptr)
 
void clear ()
 
GitHash revParse (GitRunner g, QString const &name)
 
GitObject catFile (GitRunner g, const GitHash &id)
 
GitHash const & item_id (int i) const
 

Private Types

using ItemPtr = std::shared_ptr< Item >
 

Private Member Functions

size_t size () const
 

Private Attributes

std::mutex * mutex_ = nullptr
 
GitObjectManager object_manager_
 
std::vector< ItemPtritems_
 
std::map< QString, GitHashrev_parse_map_
 

Member Typedef Documentation

◆ ItemPtr

using GitObjectCache::ItemPtr = std::shared_ptr<Item>
private

Constructor & Destructor Documentation

◆ GitObjectCache()

GitObjectCache::GitObjectCache ( std::mutex *  mutex = nullptr)
inline

Member Function Documentation

◆ catFile()

GitObject GitObjectCache::catFile ( GitRunner  g,
const GitHash id 
)
Here is the call graph for this function:

◆ clear()

void GitObjectCache::clear ( )
Here is the call graph for this function:

◆ item_id()

GitHash const& GitObjectCache::item_id ( int  i) const
inline

◆ revParse()

GitHash GitObjectCache::revParse ( GitRunner  g,
QString const &  name 
)
Here is the call graph for this function:

◆ size()

size_t GitObjectCache::size ( ) const
private

Member Data Documentation

◆ items_

std::vector<ItemPtr> GitObjectCache::items_
private

◆ mutex_

std::mutex* GitObjectCache::mutex_ = nullptr
private

◆ object_manager_

GitObjectManager GitObjectCache::object_manager_
private

◆ rev_parse_map_

std::map<QString, GitHash> GitObjectCache::rev_parse_map_
private

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