SlHelpers
Loading...
Searching...
No Matches
SlGit::TypedObject< T > Class Template Reference

Git Object class – base for Blob, Commit, Tag, Tree. More...

#include <Object.h>

Inheritance diagram for SlGit::TypedObject< T >:
SlGit::Object

Public Member Functions

git_object * object () const noexcept override
 Get a pointer to the generic git_object.
 operator T* () const noexcept
 Alias for typed().
Public Member Functions inherited from SlGit::Object
const git_oid * id () const noexcept
 Get OID (SHA) of this Object.
std::string idStr () const noexcept
 Get OID (SHA) of this Object – as a string.
git_object_t type () const noexcept
 Get Type of this Object.
std::string typeStr () const noexcept
 Get Type of this Object – as a string.
const Reporepo () const
 Get the Repo this Object lives in.
bool operator== (const Object &other) const noexcept
 Compare two Objects (their SHAs).
bool operator!= (const Object &other) const noexcept
 Compare two Objects (their SHAs).

Protected Member Functions

 TypedObject (const Repo &repo, T *typed) noexcept
 Construct a new TypedObject.
T * typed () const noexcept
 Get the stored pointer typed to one of libgit2's types.
Protected Member Functions inherited from SlGit::Object
 Object (const Repo &repo)
 Constuct a new Object.

Detailed Description

template<typename T>
class SlGit::TypedObject< T >

Git Object class – base for Blob, Commit, Tag, Tree.

This one contains the real libgit2 pointer to one of the above.

Member Function Documentation

◆ object()

template<typename T>
git_object * SlGit::TypedObject< T >::object ( ) const
inlineoverridevirtualnoexcept

Get a pointer to the generic git_object.

Reimplemented from SlGit::Object.


The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/slhelpers-20260428.f233ce9-build/slhelpers-20260428.f233ce9/include/git/Object.h