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 (char const *id)
 
void assign (std::string_view const &id)
 
std::string toString (int maxlen=-1) const
 
bool isValid () const
 
int compare (GitHash const &other) const
 
 operator bool () const
 
 operator std::string () const
 
size_t _std_hash () const
 

Static Public Member Functions

static bool isValidID (std::string 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/3]

GitHash::GitHash ( )

◆ GitHash() [2/3]

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

◆ GitHash() [3/3]

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()

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 ( std::string const &  id)
static

◆ operator bool()

GitHash::operator bool ( ) const
explicit

◆ operator std::string()

GitHash::operator std::string ( ) const
inline
Here is the call graph for this function:

◆ toString()

std::string GitHash::toString ( 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: