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

void clear ()
 
Git::Hash revParse (GitRunner g, QString const &name)
 
Git::Object catFile (GitRunner g, const Git::Hash &id)
 
Git::Hash const & item_id (int i) const
 

Private Types

using ItemPtr = std::shared_ptr< Item >
 

Private Member Functions

size_t size () const
 

Private Attributes

GitObjectManager object_manager_
 
std::vector< ItemPtritems_
 
std::map< QString, Git::Hashrev_parse_map_
 

Member Typedef Documentation

◆ ItemPtr

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

Member Function Documentation

◆ catFile()

Git::Object GitObjectCache::catFile ( GitRunner  g,
const Git::Hash id 
)
Here is the call graph for this function:

◆ clear()

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

◆ item_id()

Git::Hash const& GitObjectCache::item_id ( int  i) const
inline

◆ revParse()

Git::Hash 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

◆ object_manager_

GitObjectManager GitObjectCache::object_manager_
private

◆ rev_parse_map_

std::map<QString, Git::Hash> GitObjectCache::rev_parse_map_
private

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