Guitar
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
GitHash Class Reference

#include <GitTypes.h>

Public Member Functions

 GitHash ()
 
 GitHash (std::string_view const &id)
 
 GitHash (QString const &id)
 
 GitHash (char const *id)
 
void assign (std::string_view const &id)
 
void assign (const QString &id)
 
QString toQString (int maxlen=-1) const
 
bool isValid () const
 
int compare (GitHash const &other) const
 
 operator bool () const
 
size_t _std_hash () const
 

Static Public Member Functions

static bool isValidID (QString const &id)
 
static bool isValidID (GitHash const &id)
 

Private Member Functions

template<typename VIEW >
void _assign (VIEW const &id)
 

Private Attributes

bool valid_ = false
 
uint8_t id_ [GIT_ID_LENGTH/2]
 

Constructor & Destructor Documentation

◆ GitHash() [1/4]

GitHash::GitHash ( )

◆ GitHash() [2/4]

GitHash::GitHash ( std::string_view const &  id)
explicit
Here is the call graph for this function:

◆ GitHash() [3/4]

GitHash::GitHash ( QString const &  id)
explicit
Here is the call graph for this function:

◆ GitHash() [4/4]

GitHash::GitHash ( char const *  id)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ _assign()

template<typename VIEW >
void GitHash::_assign ( VIEW const &  id)
private

◆ _std_hash()

size_t GitHash::_std_hash ( ) const
Here is the call graph for this function:

◆ assign() [1/2]

void GitHash::assign ( const QString &  id)
Here is the call graph for this function:

◆ assign() [2/2]

void GitHash::assign ( std::string_view const &  id)
Here is the call graph for this function:

◆ compare()

int GitHash::compare ( GitHash const &  other) const

◆ isValid()

bool GitHash::isValid ( ) const

◆ isValidID() [1/2]

static bool GitHash::isValidID ( GitHash const &  id)
inlinestatic

◆ isValidID() [2/2]

bool GitHash::isValidID ( QString const &  id)
static

◆ operator bool()

GitHash::operator bool ( ) const

◆ toQString()

QString GitHash::toQString ( int  maxlen = -1) const

Member Data Documentation

◆ id_

uint8_t GitHash::id_[GIT_ID_LENGTH/2]
private

◆ valid_

bool GitHash::valid_ = false
private

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