Guitar
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Git::Hash Class Reference

#include <Git.h>

Public Member Functions

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

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

◆ Hash() [1/4]

Git::Hash::Hash ( )

◆ Hash() [2/4]

Git::Hash::Hash ( std::string_view const &  id)
explicit

◆ Hash() [3/4]

Git::Hash::Hash ( QString const &  id)
explicit

◆ Hash() [4/4]

Git::Hash::Hash ( char const *  id)
explicit

Member Function Documentation

◆ _assign()

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

◆ assign() [1/2]

void Git::Hash::assign ( const QString &  qid)

◆ assign() [2/2]

void Git::Hash::assign ( std::string_view const &  qid)

◆ compare()

int Git::Hash::compare ( Hash const &  other) const
inline

◆ isValid()

bool Git::Hash::isValid ( ) const

◆ operator bool()

Git::Hash::operator bool ( ) const
inline
Here is the call graph for this function:

◆ toQString()

QString Git::Hash::toQString ( int  maxlen = -1) const

Member Data Documentation

◆ id_

uint8_t Git::Hash::id_[GIT_ID_LENGTH/2]
private

◆ valid_

bool Git::Hash::valid_ = false
private

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