Guitar
Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
GitObjectManager Class Reference

#include <GitObjectManager.h>

Collaboration diagram for GitObjectManager:
Collaboration graph
[legend]

Classes

struct  Private
 

Public Member Functions

 GitObjectManager (std::mutex *mutex)
 
 GitObjectManager (GitObjectManager const &other)
 
 GitObjectManager (GitObjectManager &&other)=delete
 
 ~GitObjectManager ()
 
GitObjectManageroperator= (GitObjectManager const &other)
 
void setup ()
 
bool catFile (GitRunner g, const GitHash &id, QByteArray *out, GitObject::Type *type)
 
void clearIndexes ()
 

Static Public Member Functions

static QStringList findObject (const QString &id, const QString &repo_local_dir)
 GitObjectManager::findObject. More...
 

Private Member Functions

bool extractObjectFromPackFile (std::shared_ptr< GitPackIdxV2 > const &idx, GitPackIdxItem const *item, GitPackObject *out)
 
bool extractObjectFromPackFile (GitRunner g, const GitHash &id, QByteArray *out, GitObject::Type *type, std::mutex *mutex)
 
void loadIndexes (GitRunner g, std::mutex *mutex)
 
QString findObjectPath (GitRunner g, const GitHash &id)
 
bool loadObject (GitRunner g, const GitHash &id, QByteArray *out, GitObject::Type *type)
 
void init ()
 

Static Private Member Functions

static void applyDelta (QByteArray const *base, QByteArray const *delta, QByteArray *out)
 
static bool loadPackedObject (std::shared_ptr< GitPackIdxV2 > const &idx, QIODevice *packfile, GitPackIdxItem const *item, GitPackObject *out)
 

Private Attributes

Privatem
 

Friends

class GitObjectCache
 

Constructor & Destructor Documentation

◆ GitObjectManager() [1/3]

GitObjectManager::GitObjectManager ( std::mutex *  mutex)
Here is the call graph for this function:

◆ GitObjectManager() [2/3]

GitObjectManager::GitObjectManager ( GitObjectManager const &  other)

◆ GitObjectManager() [3/3]

GitObjectManager::GitObjectManager ( GitObjectManager &&  other)
delete

◆ ~GitObjectManager()

GitObjectManager::~GitObjectManager ( )

Member Function Documentation

◆ applyDelta()

void GitObjectManager::applyDelta ( QByteArray const *  base,
QByteArray const *  delta,
QByteArray *  out 
)
staticprivate

◆ catFile()

bool GitObjectManager::catFile ( GitRunner  g,
const GitHash id,
QByteArray *  out,
GitObject::Type type 
)
Here is the call graph for this function:

◆ clearIndexes()

void GitObjectManager::clearIndexes ( )

◆ extractObjectFromPackFile() [1/2]

bool GitObjectManager::extractObjectFromPackFile ( GitRunner  g,
const GitHash id,
QByteArray *  out,
GitObject::Type type,
std::mutex *  mutex 
)
private
Here is the call graph for this function:

◆ extractObjectFromPackFile() [2/2]

bool GitObjectManager::extractObjectFromPackFile ( std::shared_ptr< GitPackIdxV2 > const &  idx,
GitPackIdxItem const *  item,
GitPackObject out 
)
private
Here is the call graph for this function:

◆ findObject()

QStringList GitObjectManager::findObject ( const QString &  id,
const QString &  repo_local_dir 
)
static

GitObjectManager::findObject.

Parameters
id
repo_local_dir
Here is the call graph for this function:

◆ findObjectPath()

QString GitObjectManager::findObjectPath ( GitRunner  g,
const GitHash id 
)
private
Here is the call graph for this function:

◆ init()

void GitObjectManager::init ( )
private

◆ loadIndexes()

void GitObjectManager::loadIndexes ( GitRunner  g,
std::mutex *  mutex 
)
private
Here is the call graph for this function:

◆ loadObject()

bool GitObjectManager::loadObject ( GitRunner  g,
const GitHash id,
QByteArray *  out,
GitObject::Type type 
)
private
Here is the call graph for this function:

◆ loadPackedObject()

bool GitObjectManager::loadPackedObject ( std::shared_ptr< GitPackIdxV2 > const &  idx,
QIODevice *  packfile,
GitPackIdxItem const *  item,
GitPackObject out 
)
staticprivate
Here is the call graph for this function:

◆ operator=()

GitObjectManager & GitObjectManager::operator= ( GitObjectManager const &  other)

◆ setup()

void GitObjectManager::setup ( )
Here is the call graph for this function:

Friends And Related Function Documentation

◆ GitObjectCache

friend class GitObjectCache
friend

Member Data Documentation

◆ m

Private* GitObjectManager::m
private

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