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

#include <GitPackIdxV2.h>

Collaboration diagram for GitPackIdxV2:
Collaboration graph
[legend]

Classes

struct  Data
 
struct  header_t
 
struct  object_id_t
 
struct  trailer_t
 

Public Member Functions

 GitPackIdxV2 ()=default
 
 ~GitPackIdxV2 ()
 
QString pack_file_path () const
 
const GitPackIdxItemitem (Git::CommitID const &id) const
 
const GitPackIdxItemitem (size_t offset) const
 
void each (std::function< bool(GitPackIdxItem const *)> const &fn) const
 

Private Member Functions

const uint8_t * object (int i) const
 
void clear ()
 
bool parse (QIODevice *in, int ids_only)
 
bool parse (QString const &idxfile, int ids_only)
 
void fetch () const
 

Static Private Member Functions

static QString toString (const uint8_t *p)
 
static uint32_t read_uint32_be (void const *p)
 
static uint32_t get_fanout (header_t const *t, int i)
 

Private Attributes

QString pack_idx_path
 
struct GitPackIdxV2::Data d
 

Friends

class GitObjectManager
 

Constructor & Destructor Documentation

◆ GitPackIdxV2()

GitPackIdxV2::GitPackIdxV2 ( )
default

◆ ~GitPackIdxV2()

GitPackIdxV2::~GitPackIdxV2 ( )
Here is the call graph for this function:

Member Function Documentation

◆ clear()

void GitPackIdxV2::clear ( )
private

◆ each()

void GitPackIdxV2::each ( std::function< bool(GitPackIdxItem const *)> const &  fn) const
Here is the call graph for this function:

◆ fetch()

void GitPackIdxV2::fetch ( ) const
private
Here is the call graph for this function:

◆ get_fanout()

uint32_t GitPackIdxV2::get_fanout ( header_t const *  t,
int  i 
)
inlinestaticprivate
Here is the call graph for this function:

◆ item() [1/2]

const GitPackIdxItem * GitPackIdxV2::item ( Git::CommitID const &  id) const
Here is the call graph for this function:

◆ item() [2/2]

const GitPackIdxItem * GitPackIdxV2::item ( size_t  offset) const
Here is the call graph for this function:

◆ object()

const uint8_t * GitPackIdxV2::object ( int  i) const
private

◆ pack_file_path()

QString GitPackIdxV2::pack_file_path ( ) const

◆ parse() [1/2]

bool GitPackIdxV2::parse ( QIODevice *  in,
int  ids_only 
)
private
Here is the call graph for this function:

◆ parse() [2/2]

bool GitPackIdxV2::parse ( QString const &  idxfile,
int  ids_only 
)
private
Here is the call graph for this function:

◆ read_uint32_be()

uint32_t GitPackIdxV2::read_uint32_be ( void const *  p)
inlinestaticprivate

◆ toString()

QString GitPackIdxV2::toString ( const uint8_t *  p)
staticprivate

Friends And Related Function Documentation

◆ GitObjectManager

friend class GitObjectManager
friend

Member Data Documentation

◆ d

struct GitPackIdxV2::Data GitPackIdxV2::d
private

◆ pack_idx_path

QString GitPackIdxV2::pack_idx_path
private

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